I am facing this issue webtortc sometimes fails to load
and in logs.
Logger: homeassistant.config_entries
Source: config_entries.py:366
First occurred: 1:52:57 PM (2 occurrences)
Last logged: 1:53:02 PM
Config entry 'RTSPtoWeb - WebRTC' for rtsp_to_webrtc integration not ready yet: RTSPtoWeb server communication failure: Cannot connect to host 127.0.0.1:8083 ssl:default [Connect call failed ('127.0.0.1', 8083)]; Retrying in background
Config entry 'WLED' for wled integration not ready yet: Invalid response from API: Error occurred while communicating with WLED device at 192.168.18.224; Retrying in background
Source: components/rtsp_to_webrtc/__init__.py:49
First occurred: 1:53:32 PM (1 occurrences)
Last logged: 1:53:32 PM
Error setting up entry RTSPtoWeb - WebRTC for rtsp_to_webrtc
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/rtsp_to_webrtc/__init__.py", line 49, in async_setup_entry
client = await get_adaptive_client(
File "/usr/local/lib/python3.9/site-packages/rtsp_to_webrtc/client.py", line 48, in get_adaptive_client
await webrtc_heartbeat
File "/usr/local/lib/python3.9/site-packages/rtsp_to_webrtc/webrtc_client.py", line 74, in heartbeat
await self._request("get", HEARTBEAT_PATH, label="heartbeat")
File "/usr/local/lib/python3.9/site-packages/rtsp_to_webrtc/webrtc_client.py", line 89, in _request
resp = await self._session.request(method, url, **kwargs)
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 1175, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 986, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1041, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 955, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 502, in sock_connect
return await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/rtsp_to_webrtc/__init__.py", line 49, in async_setup_entry
client = await get_adaptive_client(
File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 129, in __aexit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 212, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError