Closed happy-man closed 5 months ago
Hi! If you don't mind, could you edit your issue to include a minimal reproducible example (without the use to dependencies?).
Also, please keep in mind that Node.js v16 is no longer supported, so if possible, please try upgrading to at least v18.
Hi! If you don't mind, could you edit your issue to include a minimal reproducible example (without the use to dependencies?).
Hello! It's kind of hard to reproduce, because it makes requests to the trading platform server, which others won't be able to run at their local machines easily. But it seems there could be the problem with the server itself, even when it responses 200 in the python example. I'm investigating on it, will keep it updated. Thanks for the interest to the problem.
I'm closing this issue, as you said it may be a problem with the server.
If you can reproduce with a Node.js client and server, please open a new issue with a reproducible example.
Version
v16.20.2
Platform
Microsoft Windows NT 10.0.22631.0 x64
Subsystem
No response
What steps will reproduce the bug?
Hello community. I know this question has been asked a lot of times, but as topic says - none helped me.
Here is the simple code I run:
tickers.json
is the JSON array file which contain stock market tickers:When I run this code I get the error ECONNREFUSED. Server is a trading platform which provides API hosted at http://127.0.0.1:8080 so client can get some data or register to get UDP updates. Server is running during the time I run the code, I can confirm it just by onening 127.0.0.1:8080 in the browser. Host in the request url is set to 127.0.0.1:8080 not localhost. Tried it with node 16, 17, 18, 20, latest and getting the same result always.
Below is code i run for node versions which support
fetch
:and the result:
I tried to run the same requests using curl and python and it work well with the same inputs:
The result:
Hopefully I explained everything in details. If you need some more - I'm open to provide anything. I have never faced this issue before and this feels really annoying.
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
Additional information
No response