You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I would like to write a JavaScript script. I've downloaded the npm ODBC driver inside my bruno project and tested my script with Bruno, but I received an error message like this:
Error invoking remote method 'send-http-request': VMError: Module 'C:\Users\s\AppData\Local\Programs\bruno\fs' is not allowed to be required. The path is outside the border!
It seems that Bruno doesn't have the necessary permissions, even when running it in admin mode. I'm still encountering the same error message.
So, I've created an independent JavaScript file to check. I've copied and pasted the code and ran the script, andmy connection is successful.
Can you please advise on how I can use ODBC with Bruno?
constconnectionConfig={connectionString: 'DSN=Local_epp',connectionTimeout: 10,loginTimeout: 10,};// Fonction pour tester la connexion ODBCasyncfunctiontestODBCConnection(){try{console.log('La connexion ODBC est établie avec succès.');constconnection=odbc.connect(connectionConfig,(error,connection)=>{connection.query('SELECT count(*) FROM log',(error,result)=>{if(error){console.error(error)}console.log(result);});});awaitconnection.close();}catch(error){console.error('Erreur lors de la connexion à la source de données ODBC :',error);}}testODBCConnection();
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I would like to write a JavaScript script. I've downloaded the npm ODBC driver inside my bruno project and tested my script with Bruno, but I received an error message like this:
It seems that Bruno doesn't have the necessary permissions, even when running it in admin mode. I'm still encountering the same error message.
So, I've created an independent JavaScript file to check. I've copied and pasted the code and ran the script, andmy connection is successful.
Can you please advise on how I can use ODBC with Bruno?
Beta Was this translation helpful? Give feedback.
All reactions