No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
General Tech 10 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 9 Answers
manpreet
Best Answer
2 years ago
I m running an Express js application with socket.io for a chat webapp and I get the following error randomly around 5 times during 24h. The node process is wrapped in forever and it restarts itself immediately.
Problem is that restarting express kicks my users out of their rooms and nobody wants that.
The web server is proxied by HAProxy. There are no socket stability issues, just using websockets and flashsockets transports. I cannot reproduce this on https://forum.tuteehub.com/tag/purpose">purpose.
This is the error with node v0.10.11:
EDIT (2013-07-22)
Added both socket.io client error handler and the uncaught https://forum.tuteehub.com/tag/exception">exception handler. Seems that this one catches the error:
So I suspect it's not a socket.io issue but an http request to another server that I do or a mysql/redis connection. Problem is that the error stack doesn't help me identify my code issue. Here is the log output:
How do I know what causes this? How do I get more out of the error?
Ok, not very verbose but here s the stacktrace with "longjohn":