{"record":{"id":"a1c796b7a9402f01","repo":"home-assistant/core","slug":"notify-request-failed","errorCode":null,"errorMessage":"notify_request_failed","messagePattern":"notify_request_failed","errorType":"exception","errorClass":"HomeAssistantError","httpStatus":null,"severity":"error","filePath":"homeassistant/components/bring/todo.py","lineNumber":252,"sourceCode":"            raise HomeAssistantError(\n                translation_domain=DOMAIN,\n                translation_key=\"todo_delete_item_failed\",\n                translation_placeholders={\"count\": str(len(uids))},\n            ) from e\n\n        await self.coordinator.async_refresh()\n\n    async def async_send_message(\n        self,\n        message: BringNotificationType,\n        item: str | None = None,\n    ) -> None:\n        \"\"\"Send a push notification to members of a shared bring list.\"\"\"\n\n        try:\n            await self.coordinator.bring.notify(self._list_uuid, message, item or None)\n        except BringRequestException as e:\n            raise HomeAssistantError(\n                translation_domain=DOMAIN,\n                translation_key=\"notify_request_failed\",\n            ) from e\n        except ValueError as e:\n            raise ServiceValidationError(\n                translation_domain=DOMAIN,\n                translation_key=\"notify_missing_argument\",\n                translation_placeholders={\"field\": \"item\"},\n            ) from e\n","sourceCodeStart":234,"sourceCodeEnd":262,"githubUrl":"https://github.com/home-assistant/core/blob/58a3fdb3ea0538617f0a07efcfba6294de64fd59/homeassistant/components/bring/todo.py#L234-L262","documentation":"Raised by BringTodoListEntity.async_send_message when coordinator.bring.notify() raises BringRequestException, i.e. the push-notification HTTP request to Bring's servers failed. This is the generic transport/HTTP failure path (auth failures and missing-argument have separate keys).","triggerScenarios":"Calling a notify-style service on a Bring To-do entity (e.g. 'Going shopping' / 'arriving' notifications) while the Bring API request fails: bad HTTP status, timeout, invalid session cookie.","commonSituations":"Sending 'Going to the store' pings during a Bring outage, after token expiry, or to a list with no other members (some endpoints reject), from automations that fire when WAN is down.","solutions":["Retry the notification once connectivity is confirmed.","Reload/re-authenticate the Bring integration if failures persist.","Guard automations with a connectivity/binary_sensor condition so notifications are not attempted offline.","Check the underlying exception in logs for HTTP status detail."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"try:\n    await todo_list.async_send_message(message, item)\nexcept HomeAssistantError as err:\n    if err.translation_key == \"notify_request_failed\":\n        raise HomeAssistantErrorRetryLater from err  # transient network failure\n    raise","preventionTips":["Gate notification automations on a connectivity condition so they never fire while offline.","Reload the Bring integration after network outages to restore the session.","Log chained exceptions to distinguish auth from transport failures quickly."],"tags":["home-assistant","bring","notification","network"],"backgroundTag":null,"analyzedSha":"58a3fdb3ea0538617f0a07efcfba6294de64fd59","analyzedAt":"2026-08-14T20:54:38.818Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}