Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.loop_forever() error !!!!! #11

Open
knsg0d opened this issue Nov 28, 2017 · 2 comments
Open

client.loop_forever() error !!!!! #11

knsg0d opened this issue Nov 28, 2017 · 2 comments

Comments

@knsg0d
Copy link

knsg0d commented Nov 28, 2017

Traceback (most recent call last):
File "test.py", line 26, in
client.loop_forever()
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 1481, in loop_forever
rc = self.loop(timeout, max_packets)
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 1003, in loop
rc = self.loop_read(max_packets)
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 1284, in loop_read
rc = self._packet_read()
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 1849, in _packet_read
rc = self._packet_handle()
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 2305, in _packet_handle
return self._handle_publish()
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 2500, in _handle_publish
self._handle_on_message(message)
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 2647, in _handle_on_message
self.on_message(self, self._userdata, message)
File "test.py", line 14, in on_message
print(msg.topic+" "+str(msg.payload))
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 360, in topic
return self._topic.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe7 in position 31: invalid continuation byte

@knsg0d
Copy link
Author

knsg0d commented Nov 28, 2017

File "test123.py", line 24, in
client.loop_forever()
File "/usr/local/lib/python2.7/dist-packages/paho_mqtt-1.3.1-py2.7.egg/paho/mqtt/client.py", line 1481, in loop_forever
rc = self.loop(timeout, max_packets)
File "/usr/local/lib/python2.7/dist-packages/paho_mqtt-1.3.1-py2.7.egg/paho/mqtt/client.py", line 1003, in loop
rc = self.loop_read(max_packets)
File "/usr/local/lib/python2.7/dist-packages/paho_mqtt-1.3.1-py2.7.egg/paho/mqtt/client.py", line 1284, in loop_read
rc = self._packet_read()
File "/usr/local/lib/python2.7/dist-packages/paho_mqtt-1.3.1-py2.7.egg/paho/mqtt/client.py", line 1849, in _packet_read
rc = self._packet_handle()
File "/usr/local/lib/python2.7/dist-packages/paho_mqtt-1.3.1-py2.7.egg/paho/mqtt/client.py", line 2305, in _packet_handle
return self._handle_publish()
File "/usr/local/lib/python2.7/dist-packages/paho_mqtt-1.3.1-py2.7.egg/paho/mqtt/client.py", line 2500, in _handle_publish
self._handle_on_message(message)
File "/usr/local/lib/python2.7/dist-packages/paho_mqtt-1.3.1-py2.7.egg/paho/mqtt/client.py", line 2647, in _handle_on_message
self.on_message(self, self._userdata, message)
File "test123.py", line 12, in on_message
print(msg.topic+" "+str(msg.payload))
File "/usr/local/lib/python2.7/dist-packages/paho_mqtt-1.3.1-py2.7.egg/paho/mqtt/client.py", line 360, in topic
return self._topic.decode('utf-8')
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe7 in position 31: invalid continuation byte

@knsg0d
Copy link
Author

knsg0d commented Nov 28, 2017

I am facing with these error Please help me to fix this :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant