kiteconnect.ticker - ERROR - Connection error: 1006

RP3436
What does it really mean if I get the following error "
06:54,759 - root - INFO - Connecting to WebSocket...
2018-04-09 21:06:59,760 - root - INFO - Connecting to WebSocket...
2018-04-09 21:07:01,166 - kiteconnect.ticker - ERROR - Connection error: 1006 - connection was closed uncleanly (WebSocket opening handshake timeout (peer did not finish the opening handshake in time))
"
I do get this error when I restart the kernel , but not always. All I do then, is restart the kite.generate_session with a new request token. (sometimes I find new access and public token in that process - which surprises me).

I have placed ws.stop() inside on_close(ws, code, reason) method and no where else.

Need help to close the connection cleanly.
Sign In or Register to comment.