gevent-socketio icon indicating copy to clipboard operation
gevent-socketio copied to clipboard

Seeing some strange errors in the log. From Websocket layer?

Open vivekhub opened this issue 11 years ago • 3 comments

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 390, in run result = self._run(_self.args, *_self.kwargs) File "/usr/local/lib/python2.7/dist-packages/socketio/transports.py", line 230, in read_from_ws message = websocket.receive() File "/usr/local/lib/python2.7/dist-packages/geventwebsocket/websocket.py", line 296, in receive result = self._receive() File "/usr/local/lib/python2.7/dist-packages/geventwebsocket/websocket.py", line 244, in _receive frame = self.receive_frame() File "/usr/local/lib/python2.7/dist-packages/geventwebsocket/websocket.py", line 183, in receive_frame fin, opcode, has_mask, length = self._parse_header(data0) File "/usr/local/lib/python2.7/dist-packages/geventwebsocket/websocket.py", line 137, in _parse_header raise WebSocketError('Received frame with non-zero reserved bits: %r' % str(data)) WebSocketError: Received frame with non-zero reserved bits: '\x17\x03' <Greenlet at 0xa756b6c: read_from_ws> failed with WebSocketError

vivekhub avatar Apr 07 '13 23:04 vivekhub

@vivekhub Do you have an example of how to reproduce this error?

sontek avatar Apr 13 '13 23:04 sontek

@sontek no unfortunately. Seems to be random. I am raising the issue in socketio-client project as well. Will keep you posted if I hear anything.

https://github.com/LearnBoost/socket.io-client/issues/536

vivekhub avatar Apr 14 '13 04:04 vivekhub

Hi,

I'm seeing the same error on my production server. I've tried everything on my localhost and staging environments to reproduce the error but I had no success so far.

The error log:

Traceback (most recent call last):
  File "/root/radar/python/toro_platform/prod/local/lib/python2.7/site-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/root/radar/python/toro_platform/prod/local/lib/python2.7/site-packages/socketio/transports.py", line 259, in read_from_ws
    message = websocket.receive()
  File "/root/radar/python/toro_platform/prod/local/lib/python2.7/site-packages/geventwebsocket/websocket.py", line 296, in receive
    result = self._receive()
  File "/root/radar/python/toro_platform/prod/local/lib/python2.7/site-packages/geventwebsocket/websocket.py", line 244, in _receive
    frame = self.receive_frame()
  File "/root/radar/python/toro_platform/prod/local/lib/python2.7/site-packages/geventwebsocket/websocket.py", line 183, in receive_frame
    fin, opcode, has_mask, length = self._parse_header(data0)
  File "/root/radar/python/toro_platform/prod/local/lib/python2.7/site-packages/geventwebsocket/websocket.py", line 137, in _parse_header
    raise WebSocketError('Received frame with non-zero reserved bits: %r' % str(data))
WebSocketError: Received frame with non-zero reserved bits: 'GE'
<Greenlet at 0x7f59bba84eb0: read_from_ws> failed with WebSocketError

Anyone else seeing this error? Can I catch this exception anywhere in my code?

Thanks

joaomaciel avatar Aug 08 '14 19:08 joaomaciel