slazarov / python-bittrex-websocket

Python websocket for Bittrex (non async).
http://python-bittrex-websocket-docs.readthedocs.io/en/latest/index.html
MIT License
103 stars 38 forks source link

Unhandled Exception <[Errno 104] Connection reset by peer> #86

Closed LiangpingLi closed 5 years ago

LiangpingLi commented 5 years ago

I saw this error randomly, it can't handled by auto reconnection. Do you have some ideas how to fix this?

ERROR: [2019-01-17 10:33:14,569][websocket_client.py:169][20797:SocketConnectionThread] Unhandled Exception = <class '_socket.error'>, Message = <[Errno 104] Connection reset by peer>. Auto-reconnection is disabled for unhandled exceptions. Report to https://github.com/slazarov/python-bittrex-websocket.

slazarov commented 5 years ago

The exception should be added to def _connection_handler in websocket_client.py. By default new exceptions are not auto reconnected until the reason for their occurrence is found.

Unhandled Exception = <class '_socket.error'>, Message = <[Errno 104] Connection reset by peer>.

LiangpingLi commented 5 years ago

I see, thanks a lot!