trace backs on what look like basic connection error
See original GitHub issueVersion of the custom_component
0.9.36
Logs
2022-02-12 23:35:50 WARNING (MainThread) [custom_components.dahua] Failed to sync device state
Traceback (most recent call last):
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 1056, in create_connection
raise exceptions[0]
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
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 537, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.103.8', 80)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/dahua/__init__.py", line 279, in _async_update_data
results = await asyncio.gather(*coros)
File "/config/custom_components/dahua/client.py", line 187, in async_get_config_lighting
return await self.async_get_config("Lighting[{0}][{1}]".format(channel, profile_mode))
File "/config/custom_components/dahua/client.py", line 172, in async_get_config
return await self.get(url)
File "/config/custom_components/dahua/client.py", line 675, in get
raise exception
File "/config/custom_components/dahua/client.py", line 660, in get
response = await auth.request("GET", url)
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.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 1206, in _create_direct_connection
raise last_exc
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 992, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 192.168.103.8:80 ssl:default [Connect call failed ('192.168.103.8', 80)]
Describe the bug
AD110 is slow and sometimes drops off WiFi if it roams APs etc… This looks like a simple connection failure causes a unstrapped error.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Understanding the Python Traceback
A traceback is a report containing the function calls made in your code at a specific point. Tracebacks are known by many names,...
Read more >How to Run a Traceroute to Troubleshoot Connection and ...
Run in concert with local traceroutes, using a service or tool like this one can help diagnose precisely where the connection issues are...
Read more >How to Use TRACERT to Troubleshoot TCP/IP Problems in ...
This article describes TRACERT (Trace Route), a command-line utility that you can use to trace the path that an Internet Protocol (IP) packet...
Read more >13 Tips to Troubleshoot Your Internet Connection | PCMag
Start with the obvious: is the problem only happening on one device or all your devices? If your computer's having problems, see if...
Read more >Home Network Problems? 8 Diagnostic Tricks and Fixes to Try
Learn how to troubleshoot network connectivity problems and get back online! ... network issues right away, as the fix to your problem might...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got it. I will only log a single line going forward but log the full stack trace as a debug log. Those who want the full stack trace can enable debug logs if they need it.
Got the following after rebooting and letting it run for a few hours…