You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The socket.io-client would enter an infinite reconnect loop, where each time it would get a parse error. Our backend server was receiving each connection successfully and it did not seem like the client was disconnecting properly when it hit the parse error (because it didn't realize it was connected?).
We traced it and we think the root cause was that we were passing an Error object from @grpc/grpc-js library through socket.io and that it contained a Map<string, Buffer>, but socket.io-client doesn't provide much detail on what's causing the parse error so it's hard for us to concretely say. Having a fix for #1554 would make it easier for us to provide more detail here.
To Reproduce
Please fill the following code example:
Socket.IO server version: 4.5.2
Socket.IO client version: 4.5.2
Expected behavior
A clear and concise description of what you expected to happen.
Platform:
Device: [e.g. Samsung S8] macbook
OS: [e.g. Android 9.2] macOS
Browser: chrome
Additional context
I will try to update this ticket in the next week or so with additional details and code to reproduce that's separate from @grpc/grpc-js.
The text was updated successfully, but these errors were encountered:
Following [1], any exception in a user-provided event listener would
get caught in the try...catch of the decoder and result in the
reconnection of the socket.
[1]: c597023
Related:
- #1551
- #1554
- #1557
Describe the bug
The socket.io-client would enter an infinite reconnect loop, where each time it would get a
parse error
. Our backend server was receiving each connection successfully and it did not seem like the client was disconnecting properly when it hit the parse error (because it didn't realize it was connected?).We traced it and we think the root cause was that we were passing an
Error
object from@grpc/grpc-js
library through socket.io and that it contained aMap<string, Buffer>
, but socket.io-client doesn't provide much detail on what's causing theparse error
so it's hard for us to concretely say. Having a fix for #1554 would make it easier for us to provide more detail here.To Reproduce
Please fill the following code example:
Socket.IO server version:
4.5.2
Socket.IO client version:
4.5.2
Expected behavior
A clear and concise description of what you expected to happen.
Platform:
Additional context
I will try to update this ticket in the next week or so with additional details and code to reproduce that's separate from
@grpc/grpc-js
.The text was updated successfully, but these errors were encountered: