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
"RangeError: Invalid WebSocket frame: invalid payload length" error on server #33
Comments
Thanks for reporting @serjek, seems to be related with https://discuss.colyseus.io/topic/351/invalid-websocket-frame-invalid-payload-length-126 Not sure what's the cause of it though |
This seems to be happening in native environments somehow (the issue reported on the forum was React Native) Do you see this error on a specific platform @serjek? |
Indeed, client is react native running in iOS simulator (13.3). Where do I start debugging this? |
I'm inspecting the
Also, the state is not being broadcasted back to the client. |
Sorry, this error I've seen is probably because I had a cached version of |
I'd appreciate if you can share something that is possible to reproduce, I've been trying to send a lot of messages back and forth and couldn't reproduce the error it myself. 😢 |
hey sure, I will try to nail down the problem. To think of it, I believe this more like is an edge case related to hot reload feature in RN: when you reload the application it still retains old socket connections and it might happen that there are some stale messages still passing through old socket which can cause the error. |
Most likely it's related to how colyseus tries to preserve session/client. Got it reproduced after app reload: |
Apparently it's not an edge case as my server error log is full of these errors after I opened public beta. Still investigating what might be a problem here. |
here are bytes that are coming from client [138, 254]. @endel any ideas what this might be? Problem is that server immediately closes connection after that so, may be server can be configured so that it don't drop connection if some rubbish sometimes is coming from client? |
seem to be react native issue: facebook/react-native#30020 |
Following error occurs randomly on server side (0.13.0-0.13.5) with latest haxe client (0.13.1):
As suggested on help channel this might be related to server and client incompatibility, this is why I believe haxe client is missing something.
The text was updated successfully, but these errors were encountered: