Replies: 2 comments 3 replies
-
|
Hello, i still have this issue, could someone help me out? |
Beta Was this translation helpful? Give feedback.
-
|
Many modules assume the TextEncoder object to be available by default, which is the case in recent Node versions, but not in Bruno (Bug? By design?) Workaround: import the object into the global scope before requiring any module that depends on it: global.TextEncoder = require('util').TextEncoderThe util module is shipped with Bruno. It does not need to be added via npm. This should also work with other symbols that are missing in the Bruno environment. The key is to put those symbols in the global scope. Importing into the current script would work for Bruno scripts only, but not for third party modules. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i want to connect to database using:
so i did a setup, added this:
to my bruno.json
i also needed to add this line:
to utils-webcrypto.js
and this line:
to pg-connection-string/index.js because i got TextEncoder is not defined or URL is not defined...
But i still cannot run query correctly. I get error:
"Error invoking remote method 'send-http-request': TypeError: 'set' on proxy: trap returned falsish for property 'connectionParameters'"
What can i do? I need to run some scripts on database before and after some of my tests.
Beta Was this translation helpful? Give feedback.
All reactions