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

Unknown error TypeError: _internal_on_disconnect() missing 1 required positional argument: 'rc' #43746

Closed
ghost opened this issue Nov 29, 2020 · 5 comments
Assignees

Comments

@ghost
Copy link

ghost commented Nov 29, 2020

The problem

Hey, I have this unknown (for me) error showing up like more than 1000 times after a while. Since 108.x

Environment

Version 0.118.4
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
Virtual Environment false
Python Version 3.8.6
Operating System Family Linux
Operating System Version 4.19.127-v7l
CPU Architecture armv7l
Timezone Europe/Amsterdam
Host Operating System HassOS 4.17
Update Channel stable
Supervisor Version 2020.11.0
Docker Version 19.03.12
Disk Total 116.5 GB
Disk Used 17.4 GB
Healthy true
Supported true
Board rpi4
Supervisor API ok
Version API ok
Installed Add-ons File editor (5.2.0), Samba share (9.3.0)
  • Home Assistant Core release with the issue: 118.x
  • Last working Home Assistant Core release (if known): 117
  • Operating environment (OS/Container/Supervised/Core): see above
  • Integration causing this issue: unknown
  • Link to integration documentation on our website: unkown

Problem-relevant configuration.yaml

Traceback/Error logs

Logger: root
Source: /usr/src/homeassistant/homeassistant/bootstrap.py:318
First occurred: 5:07:22 PM (36 occurrences)
Last logged: 5:14:27 PM
Uncaught thread exception

Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3452, in _thread_main
self.loop_forever(retry_first_connection=True)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1779, in loop_forever
rc = self.loop(timeout, max_packets)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1197, in loop
rc = self.loop_write(max_packets)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1598, in loop_write
rc = self._packet_write()
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2374, in _packet_write
self._do_on_disconnect(0)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3360, in _do_on_disconnect
self.on_disconnect(self, self._userdata, rc)
TypeError: _internal_on_disconnect() missing 1 required positional argument: 'rc'

Additional information

Don't know what it means. But it's clogging my logs.

@probot-home-assistant
Copy link

mqtt documentation
mqtt source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @home-assistant/core, @emontnemery, mind taking a look at this issue as its been labeled with an integration (mqtt) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@emontnemery
Copy link
Contributor

emontnemery commented Nov 30, 2020

Do you use the Roomba integration?

@ghost
Copy link
Author

ghost commented Nov 30, 2020

Yes, I do. I also posted an error with that integration by the way: #43761

@emontnemery
Copy link
Contributor

OK, this is then a duplicate of #43388, which should be corrected in the upcoming 0.119 release.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants