Describe the bug
Sometimes when loading my dashboard the camera view doesn't load and I find this error in my logs. Refreshing the page usually resolves the issue.
To Reproduce
Steps to reproduce the behavior:
Go to Dashboard with camera view
Check whether the camera view loads or not
If it didn't load, check the logs
Expected behavior
The camera view should load every time
Log
If applicable, add error logs.
This error originated from a custom integration.
Logger: aiohttp.server
Source: custom_components/tapo_control/camera.py:253
Integration: Tapo: Cameras Control (documentation, issues)
First occurred: 14:15:26 (1 occurrences)
Last logged: 14:15:26
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 211, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 24, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 144, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 135, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 517, in get
return await self.handle(request, camera)
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 552, in handle
stream = await camera.handle_async_mjpeg_stream(request)
File "/config/custom_components/tapo_control/camera.py", line 253, in handle_async_mjpeg_stream
await stream.close()
File "/usr/local/lib/python3.9/site-packages/haffmpeg/core.py", line 158, in close
await self._loop.run_in_executor(None, _close)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/haffmpeg/core.py", line 153, in _close
self._proc.stdin.write(b"q")
BrokenPipeError: [Errno 32] Broken pipe
Camera (please complete the following information):
Device Model: C200
FW: 1.1.8 Build 210425 Rel.66776n(4555)
Using stream component
no
Camera works through onvif component OR different cameras work in general
my only camera and it seems to work otherwise
Camera has all attributes filled out properly in developer tools
yes
Describe the bug Sometimes when loading my dashboard the camera view doesn't load and I find this error in my logs. Refreshing the page usually resolves the issue.
To Reproduce Steps to reproduce the behavior:
Expected behavior The camera view should load every time
Log If applicable, add error logs.
Camera (please complete the following information):
Using stream component no
Camera works through onvif component OR different cameras work in general my only camera and it seems to work otherwise
Camera has all attributes filled out properly in developer tools yes
HASS Environment Docker on Unraid
Additional context This is the card I'm using: