Please check this error I got in Kite connect 3.7.0 in KiteTicker
File "/home/ubuntu/.local/lib/python3.5/site-packages/kiteconnect/ticker.py", line 71, in onMessage self.factory.on_message(self, payload, is_binary) File "/home/ubuntu/.local/lib/python3.5/site-packages/kiteconnect/ticker.py", line 649, in _on_message self._parse_text_message(payload) File "/home/ubuntu/.local/lib/python3.5/site-packages/kiteconnect/ticker.py", line 673, in _parse_text_message data = json.loads(payload) File "/usr/lib/python3.5/json/__init__.py", line 312, in loads s.__class__.__name__)) builtins.TypeError: the JSON object must be str, not 'bytes'
@vivek again I got error today builtins.TypeError: the JSON object must be str, not 'bytes'
self.onMessageEnd() File "/home/ubuntu/.local/lib/python3.5/site-packages/autobahn/websocket/protocol.py", line 627, in onMessageEnd self._onMessage(payload, self.message_is_binary) File "/home/ubuntu/.local/lib/python3.5/site-packages/autobahn/twisted/websocket.py", line 162, in _onMessage self.onMessage(payload, isBinary) File "/home/ubuntu/.local/lib/python3.5/site-packages/kiteconnect/ticker.py", line 71, in onMessage self.factory.on_message(self, payload, is_binary) File "/home/ubuntu/.local/lib/python3.5/site-packages/kiteconnect/ticker.py", line 649, in _on_message self._parse_text_message(payload) File "/home/ubuntu/.local/lib/python3.5/site-packages/kiteconnect/ticker.py", line 673, in _parse_text_message data = json.loads(payload) File "/usr/lib/python3.5/json/__init__.py", line 312, in loads s.__class__.__name__)) builtins.TypeError: the JSON object must be str, not 'bytes'
ERROR:kiteconnect.ticker:WebSocket connection lost: [Failure instance: Traceback: : the JSON object must be str, not 'bytes' /home/ubuntu/.local/lib/python3.5/site-packages/twisted/python/log.py:86:callWithContext
pip install kiteconnect --upgrade --pre
builtins.TypeError: the JSON object must be str, not 'bytes'
self.onMessageEnd()
File "/home/ubuntu/.local/lib/python3.5/site-packages/autobahn/websocket/protocol.py", line 627, in onMessageEnd
self._onMessage(payload, self.message_is_binary)
File "/home/ubuntu/.local/lib/python3.5/site-packages/autobahn/twisted/websocket.py", line 162, in _onMessage
self.onMessage(payload, isBinary)
File "/home/ubuntu/.local/lib/python3.5/site-packages/kiteconnect/ticker.py", line 71, in onMessage
self.factory.on_message(self, payload, is_binary)
File "/home/ubuntu/.local/lib/python3.5/site-packages/kiteconnect/ticker.py", line 649, in _on_message
self._parse_text_message(payload)
File "/home/ubuntu/.local/lib/python3.5/site-packages/kiteconnect/ticker.py", line 673, in _parse_text_message
data = json.loads(payload)
File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
s.__class__.__name__))
builtins.TypeError: the JSON object must be str, not 'bytes'
/home/ubuntu/.local/lib/python3.5/site-packages/twisted/python/log.py:86:callWithContext