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

Error:when I use paho.mqtt send message with SSL,sometimes it would be raise error like this: #691

Closed
lowmanisbusy opened this issue Dec 2, 2022 · 2 comments
Labels
Status: Available No one has claimed responsibility for resolving this issue. Status: More info needed More information needed from issue author

Comments

@lowmanisbusy
Copy link

Traceback (most recent call last):
File "/app/extensions/mqtt_clients.py", line 344, in another_one_publish
msg_info = self.client.publish(topic, payload, qos, retain)
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 1257, in publish
rc = self._send_publish(
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 2693, in _send_publish
return self._packet_queue(PUBLISH, packet, mid, qos, info)
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 3016, in _packet_queue
return self.loop_write()
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 1577, in loop_write
rc = self._packet_write()
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 2464, in _packet_write
write_length = self._sock_send(
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 649, in _sock_send
return self._sock.send(buf)
File "/usr/local/lib/python3.8/dist-packages/gevent/_ssl3.py", line 501, in send
return self._sslobj.write(data)
ssl.SSLError: [SSL: BAD_LENGTH] bad length (_ssl.c:2410)

PS: If the payload more bigger (or bad network),it would be raise more frequently

@github-actions github-actions bot added the Status: Available No one has claimed responsibility for resolving this issue. label Dec 2, 2022
@lowmanisbusy lowmanisbusy changed the title Error:when I use paho.mqtt send message with ssl,some times it would be raise error like this: Error:when I use paho.mqtt send message with SSL,sometimes it would be raise error like this: Dec 2, 2022
@MattBrittan
Copy link
Contributor

Apologies for the (very) delayed response. Can you please confirm if you are still seeing this and, if so, what version of the library you are using.

@MattBrittan MattBrittan added the Status: More info needed More information needed from issue author label Jan 8, 2024
@MattBrittan
Copy link
Contributor

I'm going to close this as without more info there is little that can be done. It's possible that issue #853 has the same root cause (and there is some more info on that issue - have not traced a root cause at this point so any info you can add to that issue would be helpful).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Available No one has claimed responsibility for resolving this issue. Status: More info needed More information needed from issue author
Projects
None yet
Development

No branches or pull requests

2 participants