Blink component issues after update 2021.3.3

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'

2 Likes

Hi,

I have same issue, my Script is not more working, so no more pictures of my blink cameras will be created.

I had also issues with Blink and 2021.3.3. Upgrading to 2021.3.4 did the trick for me.

1 Like

Did the trick for you means it works again?

Unfortunately upgrading to 2021.3.4 did not solve my issue

I upgraded to 2021.3.4, removed and installed “blink” integration again, works fine for me now. thx.

1 Like

Yes, I removed Blink, upgraded to 2021.3.4 and reinstalled Blink. This solved my issues.

1 Like

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:

image

I’m getting the same error:

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…:roll_eyes:) so a fix will have to be found and rolled into the library.

1 Like

Ugh! @fronzbot any idea when you think this might get fixed?

No clue unfortunately. I’ve been light on free time lately

Understood… these breaks seem to come way too often :frowning: If there’s anything I can do to help, let me know.

@fronzbot … find any time lately? :slight_smile:

BTW why don’t I see a “buy me coffee” or Patreon link for you!!

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?

Regards,

Doemer

I’m experiencing the same issue

experiencing the same issue here.

Has anyone found a solution by chance?
I am still experiencing this issue.

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.

Picked up a new blink doorbell on prime day and have this issue. Does anyone know if it was addressed and a fix merged in April ?

Update - answered my own question https://github.com/fronzbot/blinkpy/issues/568