Closed jvinolas closed 2 years ago
worked well till now
What changed when the problem started? This package doesn't really do anything low-level regarding WebSocket, it just uses the facilities provided by the underlying implementation, which I assume in this case is eventlet. So if there is a problem related to corruption of WS packets, it could be something there that causes it.
I'll focus on eventlet and try to see what is happening. Thanks!
Indeed it was eventlet, wireshark at server side showed that the message was coming out in incorrect format. I upgraded from 0.31 to 0.33 and this bug disappeared.
Had this same problem with incomplete/mangled/corrupt messages arriving in Firefox - upgrading from eventlet 0.26.1 to 0.33 seems to have solved the issue.
We are receving some strange websocket messages that does'nt seem to be handled correctly in Firefox (but correctly by Chromium). The message throws a JSON.parse error at Firefox:
As you can see it starts with an strange 000} and also the dictionary keys and values have some characters added/modified. I've added logs in python to see what is being send with json.dumps and all seem to be correct.
The thing is that some events arrive well and others not, but only fails to be decoded by Firefox, not in Chromium, as you can see with both clients connected and receiving the same events:
The library versions used are:
And the js client socketio tested are 4.1.3 and 4.4.0, with same behaviour.
The app is starting multiple threads that can send events and worked well till now. Any hints on what can be the cause of the randomly bad formatted messages received?