Hi,
I recently updated HASS to version 2021.3.3 and I start getting this error when I try to run scripts involving the Blink camera component.
Can someone help me?
Thanks in advance
Logger: aiohttp.server
Source: components/blink/camera.py:92
First occurred: 22:20:24 (67 occurrences)
Last logged: 22:53:31
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/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 56, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 71, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 129, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 496, in get
return await self.handle(request, camera)
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 531, in handle
return await camera.handle_async_mjpeg_stream(request)
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 396, in handle_async_mjpeg_stream
return await self.handle_async_still_stream(request, self.frame_interval)
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 386, in handle_async_still_stream
return await async_get_still_stream(
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 192, in async_get_still_stream
img_bytes = await image_cb()
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 382, in async_camera_image
return await self.hass.async_add_executor_job(self.camera_image)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/blink/camera.py", line 92, in camera_image
return self._camera.image_from_cache.content
AttributeError: 'NoneType' object has no attribute 'content'
Upgrading to 2021.3.4 and then removing and reinstalling Blink fixed it for me as well.
Oddly enough, I was able to trigger the camera and turn on motion detection from HA with no problem (verified using the app). It was just updating the picture in HA that didn’t work.
I’m running into the same issue. I upgraded from 2021.3.2 to 2021.3.4 and have removed/readded Blink several times with various combinations of restarting core and the whole host to no avail.
I’m able to get camera data but camera images on my dashboard aren’t loading:
Logger: aiohttp.server
Source: components/blink/camera.py:92
First occurred: 7:10:19 PM (11 occurrences)
Last logged: 7:10:29 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/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 56, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 129, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 496, in get
return await self.handle(request, camera)
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 513, in handle
image = await camera.async_camera_image()
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 382, in async_camera_image
return await self.hass.async_add_executor_job(self.camera_image)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/blink/camera.py", line 92, in camera_image
return self._camera.image_from_cache.content
AttributeError: 'NoneType' object has no attribute 'content'
Yeah looks like there’s currently an issue with image retrieval. Blink probably changed an API endpoint again (shocking…) so a fix will have to be found and rolled into the library.
seems like this is happening again one year later. I never experienced this issue for the last 6 Month but it started last night. Are you having the issue as well?
As far as I understand the relevant GitHub repos this issue has been fixed a few days ago and waits to be integrated into a Home Assistant update. The problem was caused by a change on Blink’s side.