Advertisement
schergr

Untitled

Dec 22nd, 2022
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.32 KB | None | 0 0
  1. iohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://192.168.7.125:443/cgi-bin/snapshot.cgi?channel=2')
  2. 2022-12-22 09:24:44.073 ERROR (MainThread) [aiohttp.server] Error handling request
  3. Traceback (most recent call last):
  4. File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
  5. resp = await request_handler(request)
  6. File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
  7. resp = await handler(request)
  8. File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
  9. return await handler(request)
  10. File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
  11. return await handler(request)
  12. File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 94, in forwarded_middleware
  13. return await handler(request)
  14. File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
  15. return await handler(request)
  16. File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
  17. return await handler(request)
  18. File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
  19. return await handler(request)
  20. File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
  21. result = await result
  22. File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 724, in get
  23. return await self.handle(request, camera)
  24. File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 742, in handle
  25. image = await _async_get_image(
  26. File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 170, in _async_get_image
  27. if image_bytes := await camera.async_camera_image(
  28. File "/config/custom_components/dahua/camera.py", line 233, in async_camera_image
  29. return await self._coordinator.client.async_get_snapshot(self._channel_number)
  30. File "/config/custom_components/dahua/client.py", line 74, in async_get_snapshot
  31. return await self.get_bytes(url)
  32. File "/config/custom_components/dahua/client.py", line 722, in get_bytes
  33. response.raise_for_status()
  34. File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
  35. raise ClientResponseError(
  36. aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://192.168.7.125:443/cgi-bin/snapshot.cgi?channel=2')
  37. 2022-12-22 09:24:44.234 ERROR (MainThread) [aiohttp.server] Error handling request
  38. Traceback (most recent call last):
  39. File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
  40. resp = await request_handler(request)
  41. File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
  42. resp = await handler(request)
  43. File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
  44. return await handler(request)
  45. File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
  46. return await handler(request)
  47. File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 94, in forwarded_middleware
  48. return await handler(request)
  49. File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
  50. return await handler(request)
  51. File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
  52. return await handler(request)
  53. File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
  54. return await handler(request)
  55. File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
  56. result = await result
  57. File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 724, in get
  58. return await self.handle(request, camera)
  59. File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 742, in handle
  60. image = await _async_get_image(
  61. File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 170, in _async_get_image
  62. if image_bytes := await camera.async_camera_image(
  63. File "/config/custom_components/dahua/camera.py", line 233, in async_camera_image
  64. return await self._coordinator.client.async_get_snapshot(self._channel_number)
  65. File "/config/custom_components/dahua/client.py", line 74, in async_get_snapshot
  66. return await self.get_bytes(url)
  67. File "/config/custom_components/dahua/client.py", line 722, in get_bytes
  68. response.raise_for_status()
  69. File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
  70. raise ClientResponseError(
  71. aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://192.168.7.125:443/cgi-bin/snapshot.cgi?channel=2')
  72. 2022-12-22 09:24:44.389 ERROR (MainThread) [aiohttp.server] Error handling request
  73. Traceback (most recent call last):
  74. File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
  75. resp = await request_handler(request)
  76. File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
  77. resp = await handler(request)
  78. File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
  79. return await handler(request)
  80. File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
  81. return await handler(request)
  82. File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 94, in forwarded_middleware
  83. return await handler(request)
  84. File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
  85. return await handler(request)
  86. File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
  87. return await handler(request)
  88. File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
  89. return await handler(request)
  90. File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
  91. result = await result
  92. File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 724, in get
  93. return await self.handle(request, camera)
  94. File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 742, in handle
  95. image = await _async_get_image(
  96. File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 170, in _async_get_image
  97. if image_bytes := await camera.async_camera_image(
  98. File "/config/custom_components/dahua/camera.py", line 233, in async_camera_image
  99. return await self._coordinator.client.async_get_snapshot(self._channel_number)
  100. File "/config/custom_components/dahua/client.py", line 74, in async_get_snapshot
  101. return await self.get_bytes(url)
  102. File "/config/custom_components/dahua/client.py", line 722, in get_bytes
  103. response.raise_for_status()
  104. File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
  105. raise ClientResponseError(
  106. aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://192.168.7.125:443/cgi-bin/snapshot.cgi?channel=2')
  107. 2022-12-22 09:24:54.053 ERROR (SyncWorker_10) [roombapy.remote_client] Can't connect to 192.168.7.222, error: [Errno 113] Host is unreachable
  108. 2022-12-22 09:24:56.577 DEBUG (MainThread) [custom_components.dahua] ClientError fetching information from http://192.168.7.125:80/cgi-bin/configManager.cgi?action=getConfig&name=MotionDetect
  109. 2022-12-22 09:24:56.788 DEBUG (MainThread) [custom_components.dahua] ClientError fetching information from http://192.168.7.125:80/cgi-bin/configManager.cgi?action=getConfig&name=DisableLinkage
  110. 2022-12-22 09:24:56.983 DEBUG (MainThread) [custom_components.dahua] ClientError fetching information from http://192.168.7.125:80/cgi-bin/configManager.cgi?action=getConfig&name=Lighting[1][0]
  111. 2022-12-22 09:24:56.985 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 4.666 seconds (success: True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement