Python Client exits with SSL error very frequently

Avi
Traceback (most recent call last):
File "/home/avinash/trading/lib/python3.8/site-packages/kiteconnect/ticker.py", line 615, in set_mode
self.ws.sendMessage(
File "/home/avinash/trading/lib/python3.8/site-packages/autobahn/websocket/protocol.py", line 2266, in sendMessage
self.sendFrame(opcode=opcode, payload=payload, sync=sync, rsv=4 if sendCompressed else 0)
File "/home/avinash/trading/lib/python3.8/site-packages/autobahn/websocket/protocol.py", line 1880, in sendFrame
self.sendData(raw, sync, chopsize)
File "/home/avinash/trading/lib/python3.8/site-packages/autobahn/websocket/protocol.py", line 1336, in sendData
self.transport.write(data)
File "/home/avinash/trading/lib/python3.8/site-packages/twisted/protocols/tls.py", line 460, in write
self._write(bytes)
File "/home/avinash/trading/lib/python3.8/site-packages/twisted/protocols/tls.py", line 537, in _write
self._flushSendBIO()
File "/home/avinash/trading/lib/python3.8/site-packages/twisted/protocols/tls.py", line 254, in _flushSendBIO
bytes = self._tlsConnection.bio_read(2 ** 15)
File "/home/avinash/trading/lib/python3.8/site-packages/OpenSSL/SSL.py", line 1945, in bio_read
self._handle_bio_errors(self._from_ssl, result)
File "/home/avinash/trading/lib/python3.8/site-packages/OpenSSL/SSL.py", line 1923, in _handle_bio_errors
_raise_current_error()
File "/home/avinash/trading/lib/python3.8/site-packages/OpenSSL/_util.py", line 55, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: []

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./zerodha-client.py", line 1009, in
kws.set_mode(kws.MODE_FULL, tokens)
File "/home/avinash/trading/lib/python3.8/site-packages/kiteconnect/ticker.py", line 625, in set_mode
self._close(reason="Error while setting mode: {}".format(str(e)))
File "/home/avinash/trading/lib/python3.8/site-packages/kiteconnect/ticker.py", line 547, in _close
self.ws.sendClose(code, reason)
File "/home/avinash/trading/lib/python3.8/site-packages/autobahn/websocket/protocol.py", line 1991, in sendClose
raise Exception("close reason without close code")
Exception: close reason without close code
Sign In or Register to comment.