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

Exception in mqtt thread after reconnection #851

Closed
szymonk211 opened this issue Jun 14, 2024 · 1 comment
Closed

Exception in mqtt thread after reconnection #851

szymonk211 opened this issue Jun 14, 2024 · 1 comment
Labels
Status: Available No one has claimed responsibility for resolving this issue.

Comments

@szymonk211
Copy link

Exception in thread paho-mqtt-client-:
2024-06-14T07:08:44.080628233Z Traceback (most recent call last):
2024-06-14T07:08:44.080694538Z File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
2024-06-14T07:08:44.094547567Z self.run()
2024-06-14T07:08:44.094622812Z File "/usr/lib/python3.10/threading.py", line 953, in run
2024-06-14T07:08:44.095497317Z self._target(*self._args, **self._kwargs)
2024-06-14T07:08:44.095548976Z File "/var/lib/odoo/.local/lib/python3.10/site-packages/paho/mqtt/client.py", line 4523, in _thread_main
2024-06-14T07:08:44.099756872Z self.loop_forever(retry_first_connection=True)
2024-06-14T07:08:44.099840414Z File "/var/lib/odoo/.local/lib/python3.10/site-packages/paho/mqtt/client.py", line 2318, in loop_forever
2024-06-14T07:08:44.101517517Z self._reconnect_wait()
2024-06-14T07:08:44.101577877Z File "/var/lib/odoo/.local/lib/python3.10/site-packages/paho/mqtt/client.py", line 4534, in _reconnect_wait
2024-06-14T07:08:44.104545127Z self._reconnect_delay = min(
2024-06-14T07:08:44.104579453Z TypeError: '<' not supported between instances of 'str' and 'int'

I disonnected from the mqtt broker, after I reconnected I had this bug. It looks like something easy to fix, so I post it here. It is not a big problem for me (not high priority).

@github-actions github-actions bot added the Status: Available No one has claimed responsibility for resolving this issue. label Jun 14, 2024
@szymonk211
Copy link
Author

nvm, I put str inside self._client.reconnect_delay_set, this probably caused the error.

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.
Projects
None yet
Development

No branches or pull requests

1 participant