Closed sand3r closed 2 years ago
Closing this myself. I have downgraded node-fetch locally to the previous major (2.6.7) which resolves the issue. Root cause still unknown.
Took a lot of time to find out my usual fetch request in another library is failing because of this exact same bug. node-binance-api is using socks-proxy-agent internally which is causing other fetch requests to fail. as demonstrated by @sand3r Please fix this bug.
Edit: closing this myself. I have downgraded node-fetch locally to the previous major (2.6.7) which resolves the issue. Root cause still unknown.
Hi,
It took me a while to find this issue and now I'm stuck. Below is my test file which demonstrates what goes wrong.
Basically 'fetch' from node-fetch stops working as soon as an instance of node-binance-api has been made.
Can anyone see or explain why? I have also included my package.json and tsconfig.json file below. At the bottom is the test file. To run it, you need to have a test API key, and then run it with
yarn; yarn test
tsconfig.json
package.json
test.ts