hi, I am running python client the ticker.py . It stops daily at around 2:30 pm it gives following error. Can you please help.
File "C:ProgramData Anaconda3/libsite-packages\autobahn twisted websocket.py", line 159, in _onMessageEnd lf.onMessageEndo ne "C:ProgramData Anaconda3/lib\site-packages\autobahn\websocket \protocol.py", line 627, in onMessageEnd 1f.conMessage(payload, self:message_is_binary). File "C:\ProgramData Anaconda3/libsite-packages Sautobahn twisted websocket.py", line 162, in _onMessage _self.onMessage payload, is Binary) File "C:\ProgramData Anaconda3\lib site-packages\kiteconnect-3.7. ob 10-Py3.6.egg\kiteconnect ticker.py", line 71, in onMessage File "C: ProgramData\Anaconda3\lib\site-packages \kiteconnect-3.7.0b10-py3.6.egg\kiteconnectSticker.py", line 657. in _on_message File "C:ProgramData Anaconda3\lib\site-packages\kiteconnect-3.7.0b10-py3.6. egg\kiteconnect Sticker.py", line 781. in _parse_binary builtins.OSError: [Errno 22) Invalid argument
Unhandled Error Traceback (most recent call last): File "C: ProgramData Anaconda3\lib\site-packages kiteconnect-3.7.%b10-Py3.6.egg\kiteconnect ticker.py", line 521. in connect File "C:\ProgramData Anaconda3\lib\site-packages twisted internet base.py", line 1243, in run self.mainLoop File "C:\ProgramData Anaconda3\lib site-packages twisted internet base.py", line 1255, in mainLoop _selfdoIteration(t) File "C:ProgramData Anaconda3lib _te-packages twisted internet select reactor.py", line 143, in doSelect logrun selectable. _draw, selectable, method)
exception caught here> ---. File "C:ProgramData Anaconda3\lib\site-packages twisted python log.py", line 103. in callWithLogger return callWithContext("system": 1p), func, xargs, **kw) File "C:\ProgramData Anaconda3\lib site-packages twisted \python\log.py", line 86, in callWithContext return context.call(CILogContext: newCtx), Func, Wargs, **kw) File "C! ProgramData Anaconda3/libsite-packages twisted python\context.py", line 122. in callWithContext return self.current Context().callWithContext(ctx, func, *args, **kw File "C:\ProgramData Anaconda3/lib\site-packages twisted python\context.py", line 85, in callwithContext return func(*args, **kw) . File "C:\ProgramData Anaconda3\lib site-packages twisted internet\select reactor.py", line 154, in _doReadOrwrite self-disconnect Selectable(selectable, why, method=="doRead") File "C:\ProgramData Anaconda3/lib\site-packages twisted internet posixbase.py", line 258, in _disconnectSelectable selectable.connectionLost failure. Failure (why)) File "C:\ProgramData Anaconda311b site-packages twisted internet\tcp.py", line 475. in connectionLost self. commonConnection.connectionLost (self, reason) File "C:\ProgramData Anaconda3\lib site-packages \twisted internet Ntcp.py", line 289, in connectionLost - protocol.connectionLost Creason! File "C! ProgramData Anaconda3/11b\site-packages twisted protocols \tls.py", line 398. in connectionLost self-flushReceiveBIOO File ProgramData Anaconda3\lib\site-packages \twisted\protocols\tls.py", line 295, in _flushReceiveBio Protocol Wrapper.dataReceived self. bytes) File "C:\ProgramData Anaconda3lib site-packages twisted \protocols policies.py", line 120. in dataReceived lf. wrappedProtocol. dataReceived(data) CIProgramData Anaconda3\iIbsite-packages\autobahn\twisted websocket.py", line 131, in dataReceived _dataReceived(data) File. "C:\ProgramData Anaconda3/lib\site-packages\autobahn\websocket\protocol.py", line 1175, in dataReceived self.consumeData File "C:\ProgramData Anaconda3/lib/site-packages\autobahn\websocket\protocol.py", line 1187, in consumeData ERIT. ProsessData and self.state Edebsacket Beat TSUNADER..PY"11 ne 1187, in consumeData bSocket Protocol.STATE CLOSED: File "C:\ProgramData Anaconda31b\site-packages \autobahn\websocket\protocol.py", line 1545, in processData self.onFrameData payload) File "C: ProgramData Anaconda3\libsite-packages \autobahn\websocket\protocol.py", line 1639. in onFrameData -onMessage Frame Data payload) File "C:\ProgramData Anaconda3\lib\site-packages\autobahn\twisted\websocket.py", line 150. in _onMessageFrameData self.onMessageFrameData(payload) File "C:\ProgramData Anaconda3\lib\site-packages\autobahn\websocket\protocol.py", line 601, in onMessageFrameData .frame data. append(payload) builtins. AttributeError: 'None Type' object has no attribute 'append
Python Ticker again stopped today with following error.
builtins.OSError: [Errno 22] Invalid argument
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake) ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake) Unhandled Error Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\python\log.py", line 103, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\python\log.py", line 86, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\python\context.py", line 122, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\python\context.py", line 85, in callWithContext return func(*args,**kw) --- --- File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\internet\selectreactor.py", line 149, in _doReadOrWrite why = getattr(selectable, method)() File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\internet\tcp.py", line 205, in doRead return self._dataReceived(data) File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\internet\tcp.py", line 211, in _dataReceived rval = self.protocol.dataReceived(data) File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\protocols\tls.py", line 330, in dataReceived self._flushReceiveBIO() File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\protocols\tls.py", line 295, in _flushReceiveBIO ProtocolWrapper.dataReceived(self, bytes) File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\protocols\policies.py", line 120, in dataReceived self.wrappedProtocol.dataReceived(data) File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\twisted\websocket.py", line 131, in dataReceived self._dataReceived(data) File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\websocket\protocol.py", line 1175, in _dataReceived self.consumeData() File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\websocket\protocol.py", line 1187, in consumeData while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED: File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\websocket\protocol.py", line 1553, in processData fr = self.onFrameEnd() File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\websocket\protocol.py", line 1674, in onFrameEnd self._onMessageEnd() File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\twisted\websocket.py", line 159, in _onMessageEnd self.onMessageEnd() File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\websocket\protocol.py", line 627, in onMessageEnd self._onMessage(payload, self.message_is_binary) File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\twisted\websocket.py", line 162, in _onMessage self.onMessage(payload, isBinary) File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect-3.7.0b10-py3.6.egg\kiteconnect\ticker.py", line 71, in onMessage
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect-3.7.0b10-py3.6.egg\kiteconnect\ticker.py", line 657, in _on_message
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect-3.7.0b10-py3.6.egg\kiteconnect\ticker.py", line 781, in _parse_binary
builtins.OSError: [Errno 22] Invalid argument
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
Unhandled Error
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\python\log.py", line 103, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\python\log.py", line 86, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\python\context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\python\context.py", line 85, in callWithContext
return func(*args,**kw)
--- ---
File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\internet\selectreactor.py", line 149, in _doReadOrWrite
why = getattr(selectable, method)()
File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\internet\tcp.py", line 205, in doRead
return self._dataReceived(data)
File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\internet\tcp.py", line 211, in _dataReceived
rval = self.protocol.dataReceived(data)
File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\protocols\tls.py", line 330, in dataReceived
self._flushReceiveBIO()
File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\protocols\tls.py", line 295, in _flushReceiveBIO
ProtocolWrapper.dataReceived(self, bytes)
File "C:\ProgramData\Anaconda3\lib\site-packages\twisted\protocols\policies.py", line 120, in dataReceived
self.wrappedProtocol.dataReceived(data)
File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\twisted\websocket.py", line 131, in dataReceived
self._dataReceived(data)
File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\websocket\protocol.py", line 1175, in _dataReceived
self.consumeData()
File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\websocket\protocol.py", line 1187, in consumeData
while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED:
File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\websocket\protocol.py", line 1553, in processData
fr = self.onFrameEnd()
File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\websocket\protocol.py", line 1674, in onFrameEnd
self._onMessageEnd()
File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\twisted\websocket.py", line 159, in _onMessageEnd
self.onMessageEnd()
File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\websocket\protocol.py", line 627, in onMessageEnd
self._onMessage(payload, self.message_is_binary)
File "C:\ProgramData\Anaconda3\lib\site-packages\autobahn\twisted\websocket.py", line 162, in _onMessage
self.onMessage(payload, isBinary)
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect-3.7.0b10-py3.6.egg\kiteconnect\ticker.py", line 71, in onMessage
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect-3.7.0b10-py3.6.egg\kiteconnect\ticker.py", line 657, in _on_message
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect-3.7.0b10-py3.6.egg\kiteconnect\ticker.py", line 781, in _parse_binary