question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preview of Blink mini thumbnail

See original GitHub issue

Describe the bug When trying to preview the thumbnail of a blink mini in a picture card, no image is shown and errors are generated. image

To Reproduce Steps to reproduce the behavior:

  1. Add a picture card with blink mini thumbnail to your dashboard image

Expected behavior Show the last picture of the camera.

Home Assistant version (if applicable): Home Assistant 2022.4.0b3

blinkpy version (not needed if filling out Home Assistant version): 0.19.0

Log Output/Additional Information I was hoping to be able to show images of the camera in my dashboard (as I already know, that i live view is not possible?)

I already updated Home Assistant, because of all the reports of a similar bug, but in my personal case (maybe I did anything wrong, as it never worked before and I just started with Home Assistant) it does not work.

Error when looking at the dashboard with the preview card: Logger: aiohttp.server Source: components/blink/camera.py:88 First occurred: 14:11:24 (124 occurrences) Last logged: 14:50:45

Error handling request `Logger: aiohttp.server Source: components/blink/camera.py:88 First occurred: 14:11:24 (124 occurrences) Last logged: 14:50:45

Error handling request Traceback (most recent call last): File “/home/homeassistant/.local/lib/python3.9/site-packages/aiohttp/web_protocol.py”, line 435, in _handle_request resp = await request_handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/aiohttp/web_app.py”, line 504, in _handle resp = await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/aiohttp/web_middlewares.py”, line 117, in impl return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/security_filter.py”, line 60, in security_filter_middleware return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/forwarded.py”, line 100, in forwarded_middleware return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/request_context.py”, line 28, in request_context_middleware return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/ban.py”, line 79, in ban_middleware return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/auth.py”, line 219, in auth_middleware return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/view.py”, line 137, in handle result = await result File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py”, line 724, in get return await self.handle(request, camera) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py”, line 742, in handle image = await _async_get_image( File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py”, line 163, in _async_get_image if image_bytes := await camera.async_camera_image( File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py”, line 569, in async_camera_image return await self.hass.async_add_executor_job( File “/usr/lib/python3.9/concurrent/futures/thread.py”, line 52, in run result = self.fn(*self.args, **self.kwargs) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/blink/camera.py”, line 88, in camera_image return self._camera.image_from_cache.content AttributeError: ‘NoneType’ object has no attribute ‘content’ `

Sometimes, but not when clicking on the button to trigger the camera, another error appears: 2022-04-03 13:48:52 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42e10d90>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:52 WARNING (SyncWorker_5) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42a1df40>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:52 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5a4df8b0>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:54 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42836670>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:54 WARNING (SyncWorker_5) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42e35850>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:54 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42e35ca0>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f41fe2af0>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 ERROR (SyncWorker_8) [blinkpy.auth] Connection error. Endpoint https://rest-e006.immedia-semi.com1648989584.jpg possibly down or throttled. 2022-04-03 13:48:58 WARNING (SyncWorker_5) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f41fe2f40>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f41fbeb80>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 ERROR (SyncWorker_5) [blinkpy.auth] Connection error. Endpoint https://rest-e006.immedia-semi.com1648989584.jpg possibly down or throttled. 2022-04-03 13:48:58 ERROR (SyncWorker_2) [blinkpy.auth] Connection error. Endpoint https://rest-e006.immedia-semi.com1648989584.jpg possibly down or throttled. 2022-04-03 13:50:40 ERROR (MainThread) [aiohttp.server] Error handling request

seems a bit like this?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sungilakacommented, Jun 11, 2022

well, as far as I can see, the problem is still there

1reaction
pmartifcommented, Apr 7, 2022

Same problem but in 2022.3.8 I already removed the blink integration and re-installed it, but it also did not help. My camera is Blink Outdoor. Logger: blinkpy.auth Source: /usr/local/lib/python3.9/site-packages/blinkpy/auth.py:195 First occurred: 3 de abril de 2022, 22:16:58 (397 occurrences) Last logged: 09:13:36 Error 1: Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 367, in _async_step await getattr(self, handler)() File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 573, in _async_call_service_step await self._async_run_long_action(service_task) File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 534, in _async_run_long_action long_task.result() File “/usr/src/homeassistant/homeassistant/core.py”, line 1636, in async_call task.result() File “/usr/src/homeassistant/homeassistant/core.py”, line 1673, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File “/usr/src/homeassistant/homeassistant/components/script/init.py”, line 282, in service_handler await script_entity.async_turn_on( File “/usr/src/homeassistant/homeassistant/components/script/init.py”, line 386, in async_turn_on await coro File “/usr/src/homeassistant/homeassistant/components/script/init.py”, line 412, in _async_run return await self.script.async_run(script_vars, context) File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 1243, in async_run await asyncio.shield(run.async_run()) File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 349, in async_run await self._async_step(log_exceptions=False) File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 367, in _async_step await getattr(self, handler)() File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 570, in _async_call_service_step await service_task File “/usr/src/homeassistant/homeassistant/core.py”, line 1636, in async_call task.result() File “/usr/src/homeassistant/homeassistant/core.py”, line 1673, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 204, in handle_service await self.hass.helpers.service.entity_service_call( File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 671, in entity_service_call future.result() # pop exception if have File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 949, in async_request_call await coro File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 708, in _handle_entity_call await result File “/usr/src/homeassistant/homeassistant/components/camera/init.py”, line 960, in async_handle_snapshot_service image = await camera.async_camera_image() File “/usr/src/homeassistant/homeassistant/components/camera/init.py”, line 583, in async_camera_image return await self.hass.async_add_executor_job( File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 58, in run result = self.fn(*self.args, **self.kwargs) File “/usr/src/homeassistant/homeassistant/components/blink/camera.py”, line 88, in camera_image return self._camera.image_from_cache.content AttributeError: ‘NoneType’ object has no attribute ‘content’ Error 2: Connection error. Endpoint https://rest-e007.immedia-semi.com1649055609.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055633.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055637.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055660.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055665.jpg possibly down or throttled.

can you please try to update to my version? or at least update blinkpy to 0.19.0, as at least one error should be fixed there.

I have 0.19.0 version installed. image

Good news, when updating to version 2022.4 everything works again. Thank you very much

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Update Your Thumbnail - Blink Support
Your Blink home screen can display a thumbnail as a preview for each camera. These thumbnails are created by tapping the thumbnail button...
Read more >
Blink Camera iPhone thumbnail : r/blinkcameras - Reddit
I am aware that android thumbnail for blink cameras contains a picture preview of the ... blink mini going to "sleep" won't record...
Read more >
Blink camera - preview not showing - Third party integrations
Hi Trying Home Assistant for the first time on a Raspberry pi 4 - all installed and working fine. Added Blink camera integration...
Read more >
How to fix Blink XT2 Camera 'Thumbnail failed' error!
It turns out there is. Tap on the settings slider icon above the offending camera and then swipe down to the Status section....
Read more >
How do I fix my blink camera thumbnail? - Remodel or Move
1. Login to your Dashboard. · 2. Click on the camera in question and select “Edit Camera.” · 3. Click “Image Previews” and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found