KiteTicker did not reconnect after disconnection

algonauts
algonauts edited October 14 in Python client
Our application got an unclean disconnection today. And following that there was an Unhandled error and KiteTicker did not reconnect. Usually it does reconnect without a problem. The on_close callback just prints a log statement so I believe it should not be blocking reconnection. Could you help us to identify the problem?
Copying the traceback here:
[Wed Oct 14 03:45:20.360784 2020] [wsgi:error] [pid 1468:tid 140011114067712] Connection error: 1006 - connection was closed uncleanly (None)
Connection closed: 1006 - connection was closed uncleanly (None)
Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/twisted/internet/base.py", line 1261, in run
self.mainLoop()
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/twisted/internet/base.py", line 1270, in mainLoop
self.runUntilCurrent()
--- ---
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/twisted/internet/base.py", line 896, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/twisted/internet/tcp.py", line 519, in connectionLost
self._commonConnection.connectionLost(self, reason)
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/twisted/internet/tcp.py", line 327, in connectionLost
protocol.connectionLost(reason)
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/twisted/protocols/tls.py", line 403, in connectionLost
ProtocolWrapper.connectionLost(self, reason)
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/twisted/protocols/policies.py", line 125, in connectionLost
self.wrappedProtocol.connectionLost(reason)
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/autobahn/twisted/websocket.py", line 128, in connectionLost
self._connectionLost(reason)
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/autobahn/websocket/protocol.py", line 3358, in _connectionLost
WebSocketProtocol._connectionLost(self, reason)
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/autobahn/websocket/protocol.py", line 1096, in _connectionLost
self._onClose(self.wasClean, WebSocketProtocol.CLOSE_STATUS_CODE_ABNORMAL_CLOSE, "connection was closed uncleanly (%s)" % self.wasNotCleanReason)
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/autobahn/twisted/websocket.py", line 171, in _onClose
self.onClose(wasClean, code, reason)
File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/kiteconnect-3.7.6-py3.6.egg/kiteconnect/ticker.py", line 88, in onClose

File "/var/www/algonauts.in/venv/lib64/python3.6/site-packages/twisted/internet/base.py", line 99, in cancel
raise error.AlreadyCalled
twisted.internet.error.AlreadyCalled: Tried to cancel an already-called event.
Sign In or Register to comment.