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

"No route to host" when hub is lost #9

Closed
echoromeo opened this issue Jun 18, 2018 · 8 comments · Fixed by #18
Closed

"No route to host" when hub is lost #9

echoromeo opened this issue Jun 18, 2018 · 8 comments · Fixed by #18
Assignees

Comments

@echoromeo
Copy link
Owner

I get this error message when testing overnight in Home Assistant.
I guess this happens when the hub restarts:
Catch this exception as well?

Log Details (ERROR)
Sun Jun 17 2018 23:19:57 GMT+0200 (Central European Summer Time)

Unhandeled exception: [Errno 113] No route to host
Traceback (most recent call last):
  File "/config/custom_components/climate/nobo_hub.py", line 536, in socket_receive
    resp = self.get_response(True)
  File "/config/custom_components/climate/nobo_hub.py", line 507, in get_response
    response += self.client.recv(bufsize)
OSError: [Errno 113] No route to host
@echoromeo echoromeo self-assigned this Jun 18, 2018
@capelevy
Copy link
Collaborator

We need to catch some sort of OSError, maybe handle the network exception here:

pynobo/nobo.py

Line 397 in e6e5786

except Exception as e:

I guess this is a retry'able error :)

@sturlahallas

This comment has been minimized.

@echoromeo

This comment has been minimized.

@echoromeo

This comment has been minimized.

@capelevy
Copy link
Collaborator

@echoromeo, I have rewritten the reconnect logic a bit, and started catching the OSError you were seeing. I cannot reproduce the "No route to host" by playing with network connections, could you check the dev_better_reconnect_stability branch, and see if that solves the problem?

@echoromeo
Copy link
Owner Author

@capelevy nice! will do

@echoromeo
Copy link
Owner Author

Unfortunately I still get the same "No route to host". It looks like I will have to set up the dev environment and get some more detailed debug output.

@bubbzy

This comment has been minimized.

@capelevy capelevy linked a pull request Apr 28, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

4 participants