Replies: 5 comments
-
I did my own internal research and produced this document. There are some bad jokes in there and vague / inaccurate statements. From SockJSCan't connect to serverThe info request failed. This is a few reasons
Server lost sessionWe get an open message from the server when we are already open. SockJS then closes this connection and expects us to manually
All transports failedSockJS has tried to connect with all transports and they all Almost all the time the reason is that the last transport
Transport timeoutedSockJS tried to open a transport but it timedout. This happens Normal closureSockJS closed cleanly because someone called Iframe transportUnable to load an iframe ( reason )
JSONP polling transportFrom the poller JSONP User aborted readThe JSONP polling transport was closed cleanly. Probably because From the receiver JSONP script loaded abnormally (onerror)The JSONP polling transport tried to load a script tag into the JSONP script loaded abnormally (onload)The JSONP transport loaded a script tag but it did not behave
JSONP script loaded abnormally (onreadstatechange)The JSONP transport loaded a script tag but the IE This may be because:
XHR Polling transportPolling error (permanent)The polling transport was closed permanently by something. Sender (Either JSONP or XHR)Sending Error ( abort reason )The sender tried to send a message but it was aborted on the Websocket transportWebSocket connection brokenThe websocket connection was closed without receiving a clean
|
Beta Was this translation helpful? Give feedback.
-
Great! Did you read the source code, or just grep for May I ask why you need such detailed info? Also, are you interested in error code numbers? |
Beta Was this translation helpful? Give feedback.
-
@majek I read the source code. I need this information to debug why about 8% of our users can't load our data over sockJS and understand how to make sockJS work more stably. |
Beta Was this translation helpful? Give feedback.
-
8% is a huge number! Please let me know of the results of your investigation! |
Beta Was this translation helpful? Give feedback.
-
How do we actually console log these client side errors? |
Beta Was this translation helpful? Give feedback.
-
The one line description is too ambigious.
Can we have a verbose document explaining what all the close messages mean and what are the possible causes of them included likelyness of each cause.
For example does "server lost session" mean that I restarted the server or could it also be a browser / proxy / ws bug/issue?
Beta Was this translation helpful? Give feedback.
All reactions