I recently installed Home Assistant OS 8.2 on an Odroid-C4, and I have not been able to figure out the following issue.
Every time I try to import a blueprint from the Blueprint Exchange, I get “unknown error” on the dialog.
Checking the logs, it appears to be a WebSocket issue. Any ideas?
Logger: homeassistant.components.websocket_api.http.connection
Source: components/blueprint/importer.py:183
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: July 2, 2022, 8:06:50 AM (2 occurrences)
Last logged: 8:16:06 PM
[281472635377600] Error handling message: Unknown error (unknown_error)
[281472627967504] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1154, in _create_direct_connection
hosts = await asyncio.shield(host_resolved)
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 880, in _resolve_host
addrs = await self._resolver.resolve(host, port, family=self._family)
File "/usr/local/lib/python3.9/site-packages/aiohttp/resolver.py", line 33, in resolve
infos = await self._loop.getaddrinfo(
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 861, in getaddrinfo
return await self.run_in_executor(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/socket.py", line 954, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/blueprint/websocket_api.py", line 68, in ws_import_blueprint
imported_blueprint = await importer.fetch_blueprint_from_url(hass, msg["url"])
File "/usr/src/homeassistant/homeassistant/components/blueprint/importer.py", line 225, in fetch_blueprint_from_url
imported_bp = await func(hass, url)
File "/usr/src/homeassistant/homeassistant/components/blueprint/importer.py", line 183, in fetch_blueprint_from_github_gist_url
resp = await session.get(
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 535, in _request
conn = await self._connector.connect(
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 542, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 907, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1166, in _create_direct_connection
raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:default [Try again]