{"record":{"id":"15ba198bffd3272a","repo":"home-assistant/core","slug":"failed-snap","errorCode":"failed_snap","errorMessage":"Blink failed to snap a picture.","messagePattern":"Blink failed to snap a picture\\.","errorType":"exception","errorClass":"HomeAssistantError","httpStatus":null,"severity":"error","filePath":"homeassistant/components/blink/camera.py","lineNumber":142,"sourceCode":"        try:\n            await self._camera.record()\n        except TimeoutError as er:\n            raise HomeAssistantError(\n                translation_domain=DOMAIN,\n                translation_key=\"failed_clip\",\n            ) from er\n        except UnauthorizedError as er:\n            self.coordinator.config_entry.async_start_reauth(self.hass)\n            raise ConfigEntryAuthFailed(\"Blink authorization failed\") from er\n\n        self.async_write_ha_state()\n\n    async def trigger_camera(self) -> None:\n        \"\"\"Trigger camera to take a snapshot.\"\"\"\n        try:\n            await self._camera.snap_picture()\n        except TimeoutError as er:\n            raise HomeAssistantError(\n                translation_domain=DOMAIN,\n                translation_key=\"failed_snap\",\n            ) from er\n        except UnauthorizedError as er:\n            self.coordinator.config_entry.async_start_reauth(self.hass)\n            raise ConfigEntryAuthFailed(\"Blink authorization failed\") from er\n\n        self.async_write_ha_state()\n\n    @override\n    def camera_image(\n        self, width: int | None = None, height: int | None = None\n    ) -> bytes | None:\n        \"\"\"Return a still image response from the camera.\"\"\"\n        try:\n            return self._camera.image_from_cache\n        except ChunkedEncodingError:\n            _LOGGER.debug(\"Could not retrieve image for %s\", self._camera.name)","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/home-assistant/core/blob/58a3fdb3ea0538617f0a07efcfba6294de64fd59/homeassistant/components/blink/camera.py#L124-L160","documentation":"blink camera.trigger_camera raises HomeAssistantError with key 'failed_snap' ('Blink failed to snap a picture.') when the blinkpy snap_picture() call times out. The snapshot command got no timely response from the Blink cloud, so the new thumbnail never became available and the state was not rewritten.","triggerScenarios":"Calling the trigger_camera / snapshot service when Blink cloud is slow, the camera is asleep or offline, or the request queue is saturated by other blinkpy calls.","commonSituations":"Snapshot automations firing while other Blink requests are in flight; battery cameras asleep; Blink cloud incidents.","solutions":["Retry the snapshot after confirming the camera is awake/online.","Avoid triggering snapshots while bulk coordinator updates run.","Check Blink cloud/internet status if failures cluster."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"from homeassistant.exceptions import HomeAssistantError\n\ntry:\n    await camera.trigger_camera()\nexcept HomeAssistantError as err:\n    if err.translation_key == \"failed_snap\":\n        await asyncio.sleep(10)\n        await camera.trigger_camera()","preventionTips":["Avoid snapshots while coordinator refreshes or bulk Blink calls are running.","Confirm camera is awake before triggering."],"tags":["home-assistant","blink","camera","snapshot","timeout"],"backgroundTag":null,"analyzedSha":"58a3fdb3ea0538617f0a07efcfba6294de64fd59","analyzedAt":"2026-08-14T20:54:38.818Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}