websockets throwing error

anandneeli
Hi All,
I was collecting ticks and it was running without any issue.
After sometime i see the following errors and ticks collection stops.
Can anyone please help, this is a rare issue, but happens atleast once in a week.
When i restart my program it works fine.

2018-08-07 12:50:03,237 Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
2018-08-07 12:50:03,238 Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
2018-08-07 12:50:03,238 Connection closed: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
2018-08-07 12:50:03,238 Connection closed: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
2018-08-07 12:50:06,775 Successfully connected. Response: {"peer": "tcp4:13.126.184.153:443", "headers": {"date": "Tue, 07 Aug 2018 07:20:06 GMT", "connection": "upgrade", "upgrade": "websocket", "sec-websocket-accept": "FukuH4xOSbwXkqpiFt573wHCLpk="}, "version": 18, "protocol": null, "extensions": []}
2018-08-07 12:50:06,776 Subscribe to tokens in FULL mode: [53801223, 12118018, 9561346, 12235266, 53768199, 53847815, 53767943, 53800455, 53784071, 12263938, 53510919, 12253442, 9564162, 53801991, 53500679, 53800967, 53801479, 53801735, 53511175, 53783815, 53841415]
  • rakeshr
    @anandneeli
    It looks like your program is closing the thread.
    If you don't want WebSocket thread to stop, in case of above error, you can remove on_close implementation call.
Sign In or Register to comment.