I don't think it has much to do with the issue, but I'm running a react app in development environment, after terminating (i think) the node process with ctrl + c
, I keep getting these requests.
Any clues? Thank's in advance.
Its happens when you use socket in your application. When your server loads in the browser, your socket client establishes a connection between the socket client and socket.io on server side. When you stop node application (CTRL + C) you just stop the server side loop, while the client side loop try to connect/reconnect to server and you get this error.
It looks like your browser is trying to connect to Node and it gets connection refused errors, which seems reasonable if you stopped the server.
What did you expect to get when you stop your server?
I had this error when I mistakenly added a loop between two required javascript / typescript resources. On a resource "A", when the resource was loading, it was making a remote call to get a resource B. When the resource B required something from A, a require/import was added and it ended up in a loop, what it was solved splitting the file A to extract the required constant to another file removing the loop.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With