Unexpected error fetching dahua data
Traceback (most recent call last):
File "/config/custom_components/dahua/client.py", line 758, in get_bytes
response = await auth.request("GET", self._base + url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dahua/digest.py", line 50, in request
return await self._handle_401(response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dahua/digest.py", line 46, in request
response = await self.session.request(method, url, headers=headers, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request
await resp.start(conn)
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 999, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 640, in read
await self._waiter
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/dahua/init.py", line 225, in _async_update_data
await self.client.async_get_snapshot(0)
File "/config/custom_components/dahua/client.py", line 74, in async_get_snapshot
return await self.get_bytes(url)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dahua/client.py", line 754, in get_bytes
async with async_timeout.timeout(TIMEOUT_SECONDS):
File "/usr/local/lib/python3.12/site-packages/async_timeout/init.py", line 141, in aexit
self._do_exit(exc_type)
File "/usr/local/lib/python3.12/site-packages/async_timeout/init.py", line 228, in _do_exit
raise asyncio.TimeoutError
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dahua/init.py", line 293, in _async_update_data
raise PlatformNotReady("Dahua device at " + self._address + " isn't fully initialized yet")
homeassistant.exceptions.PlatformNotReady: Dahua device at 192.168.2.110 isn't fully initialized yet
Failed to initialize device at 192.168.2.110
Traceback (most recent call last):
File "/config/custom_components/dahua/client.py", line 758, in get_bytes
response = await auth.request("GET", self._base + url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dahua/digest.py", line 50, in request
return await self._handle_401(response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dahua/digest.py", line 151, in _handle_401
return await self.request(
^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dahua/digest.py", line 46, in request
response = await self.session.request(method, url, headers=headers, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request
await resp.start(conn)
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 999, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 640, in read
await self._waiter
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/dahua/init.py", line 225, in _async_update_data
await self.client.async_get_snapshot(0)
File "/config/custom_components/dahua/client.py", line 74, in async_get_snapshot
return await self.get_bytes(url)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dahua/client.py", line 754, in get_bytes
async with async_timeout.timeout(TIMEOUT_SECONDS):
File "/usr/local/lib/python3.12/site-packages/async_timeout/init.py", line 141, in aexit
self._do_exit(exc_type)
File "/usr/local/lib/python3.12/site-packages/async_timeout/init.py", line 228, in _do_exit
raise asyncio.TimeoutError
TimeoutError
After upgrade to 0.9.60 i got the following error massages and the my doorbell stoped working.
My system: Core: 2024.8.1 Supervisor: 2024.08.0 Operating System: 13.0 Frontend: 20240809.0
Logger: custom_components.dahua Quelle: helpers/update_coordinator.py:354 Integration: Dahua (Dokumentation, Probleme) Erstmals aufgetreten: 10:14:00 (4 Vorkommnisse) Zuletzt protokolliert: 10:15:37
Unexpected error fetching dahua data Traceback (most recent call last): File "/config/custom_components/dahua/client.py", line 758, in get_bytes response = await auth.request("GET", self._base + url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dahua/digest.py", line 50, in request return await self._handle_401(response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dahua/digest.py", line 46, in request response = await self.session.request(method, url, headers=headers, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request await resp.start(conn) File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 999, in start message, payload = await protocol.read() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 640, in read await self._waiter asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/config/custom_components/dahua/init.py", line 225, in _async_update_data await self.client.async_get_snapshot(0) File "/config/custom_components/dahua/client.py", line 74, in async_get_snapshot return await self.get_bytes(url) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dahua/client.py", line 754, in get_bytes async with async_timeout.timeout(TIMEOUT_SECONDS): File "/usr/local/lib/python3.12/site-packages/async_timeout/init.py", line 141, in aexit self._do_exit(exc_type) File "/usr/local/lib/python3.12/site-packages/async_timeout/init.py", line 228, in _do_exit raise asyncio.TimeoutError TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dahua/init.py", line 293, in _async_update_data raise PlatformNotReady("Dahua device at " + self._address + " isn't fully initialized yet") homeassistant.exceptions.PlatformNotReady: Dahua device at 192.168.2.110 isn't fully initialized yet
And:
Logger: custom_components.dahua Quelle: custom_components/dahua/init.py:225 Integration: Dahua (Dokumentation, Probleme) Erstmals aufgetreten: 10:14:00 (4 Vorkommnisse) Zuletzt protokolliert: 10:15:37
Failed to initialize device at 192.168.2.110 Traceback (most recent call last): File "/config/custom_components/dahua/client.py", line 758, in get_bytes response = await auth.request("GET", self._base + url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dahua/digest.py", line 50, in request return await self._handle_401(response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dahua/digest.py", line 151, in _handle_401 return await self.request( ^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dahua/digest.py", line 46, in request response = await self.session.request(method, url, headers=headers, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request await resp.start(conn) File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 999, in start message, payload = await protocol.read() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 640, in read await self._waiter asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/config/custom_components/dahua/init.py", line 225, in _async_update_data await self.client.async_get_snapshot(0) File "/config/custom_components/dahua/client.py", line 74, in async_get_snapshot return await self.get_bytes(url) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dahua/client.py", line 754, in get_bytes async with async_timeout.timeout(TIMEOUT_SECONDS): File "/usr/local/lib/python3.12/site-packages/async_timeout/init.py", line 141, in aexit self._do_exit(exc_type) File "/usr/local/lib/python3.12/site-packages/async_timeout/init.py", line 228, in _do_exit raise asyncio.TimeoutError TimeoutError