KiteTicker did not reconnect after disconnection

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/", line 916, in _bootstrap_inner
File "/usr/lib/python3.6/", line 864, in run
self._target(*self._args, **self._kwargs)
File "/var/www/", line 1261, in run
File "/var/www/", line 1270, in mainLoop
--- ---
File "/var/www/", line 896, in runUntilCurrent
call.func(*call.args, **
File "/var/www/", line 519, in connectionLost
self._commonConnection.connectionLost(self, reason)
File "/var/www/", line 327, in connectionLost
File "/var/www/", line 403, in connectionLost
ProtocolWrapper.connectionLost(self, reason)
File "/var/www/", line 125, in connectionLost
File "/var/www/", line 128, in connectionLost
File "/var/www/", line 3358, in _connectionLost
WebSocketProtocol._connectionLost(self, reason)
File "/var/www/", line 1096, in _connectionLost
self._onClose(self.wasClean, WebSocketProtocol.CLOSE_STATUS_CODE_ABNORMAL_CLOSE, "connection was closed uncleanly (%s)" % self.wasNotCleanReason)
File "/var/www/", line 171, in _onClose
self.onClose(wasClean, code, reason)
File "/var/www/", line 88, in onClose

File "/var/www/", line 99, in cancel
raise error.AlreadyCalled
twisted.internet.error.AlreadyCalled: Tried to cancel an already-called event.
Sign In or Register to comment.