-
Notifications
You must be signed in to change notification settings - Fork 3k
Can´t catch ERR_CONNECTION_REFUSED #1023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi!
I don't understand... Aren't the events 'reconnect_error' and 'connect_error' properly emitted? |
I have the same issue. Have you found any solution to this bug? |
I have the exact same issue |
May I ask what behaviour you are expecting? |
Short: That error doesnt come from socket.io its a "No route to host" from chrome I'm pretty sure you try to include the socket.io.js from your node-server, which isn't running. |
Closed due to inactivity, please reopen if needed. |
What if we haven't included script tag for socket.io.js? Then how to solve this error? so.
By the above statement i was able to catch the connection error when server isn't started. Kindly specify the section in which you've written the code. |
@kayzeeparacha This event catch the error however the error message is still displaying in console. I read in this post the message is not sending from socket.io and make sense. 😣 |
Current behaviour
I cant catch the "ERR_CONNECTION_REFUSED" error when the socket connection is killed.
I have the following Event-Listener in my Code:
and got this Error on Chrome console:
socket connected
socket.io.service.ts:69 Disconnect from server
socket.io.service.ts:83 Reconnect Attempt
socket.io.service.ts:90 Reconnecting to server 1
zone.js:1382 GET https://XXX:3000/socket.io/?auth_token=XXX&EIO=3&transport=polling&t=LXY2NwI net::ERR_CONNECTION_REFUSEDscheduleTask @ zone.js:1382ZoneDelegate.scheduleTask @ ...
socket.io.service.ts:111 connect_error
socket.io.service.ts:97 Reconnect Error Error: xhr poll error(…)
socket.io.service.ts:83 Reconnect Attempt
socket.io.service.ts:90 Reconnecting to server 2
...
Steps to reproduce (if the current behaviour is a bug)
Start a working app and stop the socket-server.
Setup
The text was updated successfully, but these errors were encountered: