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

Unhandled exception when internet goes down (traceback provided) #29217

Closed
mrand opened this issue Nov 29, 2019 · 4 comments
Closed

Unhandled exception when internet goes down (traceback provided) #29217

mrand opened this issue Nov 29, 2019 · 4 comments

Comments

@mrand
Copy link

mrand commented Nov 29, 2019

Home Assistant release with the issue:
0.102.2

Last working Home Assistant release (if known):
n/a

Operating environment (Hass.io/Docker/Windows/etc.):

Hass.io on Ubuntu 16.04

Integration:

homeassistant.core

Description of problem:

Unhandled exception generates the below traceback when internet goes down

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):


Traceback (if applicable):

2019-11-29 00:58:56 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 830, in _resolve_host
    self._resolver.resolve(host, port, family=self._family)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/resolver.py", line 30, in resolve
    host, port, type=socket.SOCK_STREAM, family=family)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 784, in getaddrinfo
    None, getaddr_func, host, port, family, type, proto, flags)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again
2019-11-29 00:58:57 WARNING (MainThread) [hass_nabucasa.iot] Unable to connect: Cannot connect to host cloud.nabucasa.com:443 ssl:None [Try again]

Additional information:

@frenck
Copy link
Member

frenck commented Nov 29, 2019

To be honest, this is kinda expected, since well, the internet is down 🤷‍♂

@probot-home-assistant
Copy link

Hey there @home-assistant/cloud, mind taking a look at this issue as its been labeled with a integration (cloud) you are listed as a codeowner for? Thanks!

@bullmoose20
Copy link

I am seeing the same error and as far as I can tell.... the internet is up right now as I write this. Can this happen when specific sites become unavailable?

@balloob
Copy link
Member

balloob commented Feb 18, 2020

it's expected to not work, but it shouldn't print a stacktrace. We should be able to process the exception properly. This is an issue in hass_nabucasa package so I have opened an issue for it there NabuCasa/hass-nabucasa#129

@balloob balloob closed this as completed Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants