core: 0.110.3: Fritzbox logs "CancelledError"
The problem
Logged below error
Environment
- Home Assistant Core release with the issue: 0.110.3
- Last working Home Assistant Core release (if known): 0.110.1
- Operating environment (Home Assistant/Supervised/Docker/venv): Docker
- Integration causing this issue: fritzbox
- Link to integration documentation on our website:
Problem-relevant configuration.yaml
-
Traceback/Error logs
2020-05-28 19:40:23 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry InternetGatewayDeviceV2 - FRITZ!Box 7590 for upnp
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/async_upnp_client/aiohttp.py", line 103, in async_do_http_request
async with self._session.request(method, url, headers=headers, data=body) as response:
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 1012, in __aenter__
self._resp = await self._coro
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 483, in _request
timeout=real_timeout
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 523, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 859, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 986, in _create_direct_connection
req=req, client_error=client_error)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 936, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 949, in create_connection
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 473, in sock_connect
return await fut
concurrent.futures._base.CancelledError
Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (18 by maintainers)
Commits related to this issue
- Ensure all async_track_state_change_event callbacks run if one throws (#37179) — committed to home-assistant/core by bdraco 4 years ago
Right, so what is happening here is that the CancelledError is not the problem. That error is caught and then re-raised as TimeoutError, which is not caught. There is a 5 second default timeout for upnp
AiohttpSessionRequester.Could it be that your previous logs, you omitted the “During handling of the above exception, another exception occurred:” and extra stack trace part?
Fixed your last log in #38794
Our Docker image has been migrated to Python 3.8. Python 3.7 support will be dropped in 6 months. I think it’s ok to ignore this issue.