Hi.
I’m to add clip previews to my notifications from my Google Nest Doorbell (Battery, but wired).
I keep getting a “Response status code was unacceptable: 404” when sending the notification to my iOS device doing exactly what is described here.
I noticed that when checking my media, not all of the events are saved. It is in fact very sporadic, sometimes videos are saved, and sometimes they are not, but events are always fired.
For example this morning at 5:56 AM i received a person detected event, but the image/video failed to be attached to the notification. I’m not sure how the API works, but I assume that it tries to fetch the videos from the media folder, so if nothing exist, that will explain why it gives me a 404 not found.
But the main question is, why is there no video?
This is the log I got from this morning:
2022-12-22 05:56:16.787 DEBUG (Thread-ConsumeBidirectionalStream) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Processing 1 received message(s), currently on hold 0 (bytes 0).
2022-12-22 05:56:16.868 DEBUG (Thread-ConsumeBidirectionalStream) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Released held message, scheduling callback for it, still on hold 0 (bytes 0).
2022-12-22 05:56:16.870 DEBUG (MainThread) [google_nest_sdm.event] EventMessage raw_data={'eventId': '58479af0-97aa-4a1f-aeab-9a36be8df98a', 'timestamp': '2022-12-22T04:56:12.441Z', 'resourceUpdate': {'name': 'enterprises/20acf40f-33eb-4019-92be-686e464ca919/devices/AVPHwEu2vapwfh6htn0AlI9ROe4noq5HBAE-wLPpru07J69eKaVUpBb8duVWRoBfQa8wFZDQUvW0xJKjbMe9VNlPApRNRg', 'events': {'sdm.devices.events.CameraPerson.Person': {'eventSessionId': '1661185442', 'eventId': '1709122460', 'zones': ['Zone 1']}}}, 'userId': 'AVPHwEt1g5AoYr8Ti49Qygg1LXO6us7Rw83iNkEgnwcQ', 'eventThreadId': 'd8ed5568-ea73-4632-a1f8-66febeed61b4', 'resourceGroup': ['enterprises/20acf40f-33eb-4019-92be-686e464ca919/devices/AVPHwEu2vapwfh6htn0AlI9ROe4noq5HBAE-wLPpru07J69eKaVUpBb8duVWRoBfQa8wFZDQUvW0xJKjbMe9VNlPApRNRg'], 'eventThreadState': 'STARTED'}
2022-12-22 05:56:16.870 DEBUG (MainThread) [google_nest_sdm.device] Processing update 58479af0-97aa-4a1f-aeab-9a36be8df98a @ 2022-12-22 04:56:12.441000+00:00
2022-12-22 05:56:16.870 DEBUG (MainThread) [google_nest_sdm.event_media] Event Update dict_keys(['1661185442'])
2022-12-22 05:56:16.873 DEBUG (MainThread) [homeassistant.components.nest.media_source] Loaded event store with 2 records
2022-12-22 05:56:16.874 INFO (MainThread) [google_nest_sdm.event_media] Checking cache size 42
2022-12-22 05:56:16.874 DEBUG (MainThread) [homeassistant.components.nest] Event Update dict_keys(['sdm.devices.events.CameraPerson.Person'])
2022-12-22 05:56:16.875 INFO (MainThread) [homeassistant.components.automation.person_set_fra_kamera_test] Person set fra kamera (Test): Running automation actions
2022-12-22 05:56:16.876 INFO (MainThread) [homeassistant.components.automation.person_set_fra_kamera_test] Person set fra kamera (Test): Executing step call service
2022-12-22 05:56:16.878 DEBUG (Thread-CallbackRequestDispatcher) [google.cloud.pubsub_v1.subscriber._protocol.dispatcher] Handling 1 batched requests
2022-12-22 05:56:17.736 DEBUG (Thread-ConsumeBidirectionalStream) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Processing 1 received message(s), currently on hold 0 (bytes 0).
2022-12-22 05:56:17.804 DEBUG (Thread-ConsumeBidirectionalStream) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Released held message, scheduling callback for it, still on hold 0 (bytes 0).
2022-12-22 05:56:17.805 DEBUG (Thread-ConsumeBidirectionalStream) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Processing 1 received message(s), currently on hold 0 (bytes 0).
2022-12-22 05:56:17.806 DEBUG (MainThread) [google_nest_sdm.event] EventMessage raw_data={'eventId': '24895d96-8fef-4bed-acb7-1c94224e6204', 'timestamp': '2022-12-22T04:56:12.441Z', 'resourceUpdate': {'name': 'enterprises/20acf40f-33eb-4019-92be-686e464ca919/devices/AVPHwEu2vapwfh6htn0AlI9ROe4noq5HBAE-wLPpru07J69eKaVUpBb8duVWRoBfQa8wFZDQUvW0xJKjbMe9VNlPApRNRg', 'events': {'sdm.devices.events.CameraPerson.Person': {'eventSessionId': '1661185442', 'eventId': '1709122460', 'zones': ['Zone 1']}}}, 'userId': 'AVPHwEt1g5AoYr8Ti49Qygg1LXO6us7Rw83iNkEgnwcQ', 'eventThreadId': 'd8ed5568-ea73-4632-a1f8-66febeed61b4', 'resourceGroup': ['enterprises/20acf40f-33eb-4019-92be-686e464ca919/devices/AVPHwEu2vapwfh6htn0AlI9ROe4noq5HBAE-wLPpru07J69eKaVUpBb8duVWRoBfQa8wFZDQUvW0xJKjbMe9VNlPApRNRg'], 'eventThreadState': 'UPDATED'}
2022-12-22 05:56:17.806 DEBUG (MainThread) [google_nest_sdm.device] Processing update 24895d96-8fef-4bed-acb7-1c94224e6204 @ 2022-12-22 04:56:12.441000+00:00
2022-12-22 05:56:17.806 DEBUG (MainThread) [google_nest_sdm.event_media] Event Update dict_keys(['1661185442'])
2022-12-22 05:56:17.811 INFO (MainThread) [google_nest_sdm.event_media] Checking cache size 42
2022-12-22 05:56:17.812 DEBUG (MainThread) [google_nest_sdm.event] EventMessage raw_data={'eventId': '24895d96-8fef-4bed-acb7-1c94224e6204', 'timestamp': '2022-12-22T04:56:12.441Z', 'resourceUpdate': {'name': 'enterprises/20acf40f-33eb-4019-92be-686e464ca919/devices/AVPHwEu2vapwfh6htn0AlI9ROe4noq5HBAE-wLPpru07J69eKaVUpBb8duVWRoBfQa8wFZDQUvW0xJKjbMe9VNlPApRNRg', 'events': {}}, 'userId': 'AVPHwEt1g5AoYr8Ti49Qygg1LXO6us7Rw83iNkEgnwcQ', 'eventThreadId': 'd8ed5568-ea73-4632-a1f8-66febeed61b4', 'resourceGroup': ['enterprises/20acf40f-33eb-4019-92be-686e464ca919/devices/AVPHwEu2vapwfh6htn0AlI9ROe4noq5HBAE-wLPpru07J69eKaVUpBb8duVWRoBfQa8wFZDQUvW0xJKjbMe9VNlPApRNRg'], 'eventThreadState': 'UPDATED'}
2022-12-22 05:56:17.812 DEBUG (Thread-CallbackRequestDispatcher) [google.cloud.pubsub_v1.subscriber._protocol.dispatcher] Handling 1 batched requests
2022-12-22 05:56:17.879 DEBUG (Thread-ConsumeBidirectionalStream) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Released held message, scheduling callback for it, still on hold 0 (bytes 0).
2022-12-22 05:56:17.880 DEBUG (MainThread) [google_nest_sdm.event] EventMessage raw_data={'eventId': '5a385b3f-b0cf-4e2f-a74e-5b6913a60396', 'timestamp': '2022-12-22T04:56:10.722Z', 'resourceUpdate': {'name': 'enterprises/20acf40f-33eb-4019-92be-686e464ca919/devices/AVPHwEttFask-hEGzUkEqFXAXRywmTXJC8OzVvlPp6JNKb-npc5vmk9y4EvuTPed1cjGE_oNRT4IVHafgrf9D21Ln_fMaA', 'events': {'sdm.devices.events.CameraPerson.Person': {'eventSessionId': '1633205949', 'eventId': '1284977112', 'zones': ['']}}}, 'userId': 'AVPHwEt1g5AoYr8Ti49Qygg1LXO6us7Rw83iNkEgnwcQ', 'eventThreadId': '0a676d7f-52db-4033-a4e0-d14211b9b820', 'resourceGroup': ['enterprises/20acf40f-33eb-4019-92be-686e464ca919/devices/AVPHwEttFask-hEGzUkEqFXAXRywmTXJC8OzVvlPp6JNKb-npc5vmk9y4EvuTPed1cjGE_oNRT4IVHafgrf9D21Ln_fMaA'], 'eventThreadState': 'STARTED'}
2022-12-22 05:56:17.880 DEBUG (MainThread) [google_nest_sdm.device] Processing update 5a385b3f-b0cf-4e2f-a74e-5b6913a60396 @ 2022-12-22 04:56:10.722000+00:00
2022-12-22 05:56:17.880 DEBUG (MainThread) [google_nest_sdm.event_media] Event Update dict_keys(['1633205949'])
2022-12-22 05:56:17.904 DEBUG (MainThread) [google_nest_sdm.camera_traits] Ignoring event, not the right type: <ImageEventBase {'event_type': 'sdm.devices.events.CameraPerson.Person', 'event_data': {'eventSessionId': '1633205949', 'eventId': '1284977112', 'zones': ['']}, 'timestamp': '2022-12-22T04:56:10.722000+00:00', 'event_image_type': 'image/jpeg'} sessions=1>
2022-12-22 05:56:17.926 INFO (MainThread) [google_nest_sdm.event_media] Checking cache size 227
2022-12-22 05:56:17.926 DEBUG (MainThread) [homeassistant.components.nest] Event Update dict_keys(['sdm.devices.events.CameraPerson.Person'])
2022-12-22 05:56:17.931 INFO (MainThread) [homeassistant.components.automation.person_set_for_dorklokke_test] Person set for dørklokke (test): Running automation actions
2022-12-22 05:56:17.931 INFO (MainThread) [homeassistant.components.automation.person_set_for_dorklokke_test] Person set for dørklokke (test): Executing step call service
2022-12-22 05:56:17.935 DEBUG (Thread-CallbackRequestDispatcher) [google.cloud.pubsub_v1.subscriber._protocol.dispatcher] Handling 1 batched requests
2022-12-22 05:56:18.723 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2022-12-22 05:56:18.724 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.704772 seconds.
2022-12-22 05:56:19.414 INFO (MainThread) [homeassistant.components.mobile_app.notify] mobile_app push notification rate limits for iPhone (57): 1 sent, 500 allowed, 0 errors, resets in 19:03:40
2022-12-22 05:56:19.486 INFO (MainThread) [homeassistant.components.mobile_app.notify] mobile_app push notification rate limits for iPhone (57): 1 sent, 500 allowed, 0 errors, resets in 19:03:40
2022-12-22 05:56:20.011 DEBUG (MainThread) [homeassistant.components.nest] No Nest Device found for '84f0bc207e506bcbc7f48d32ad5c491d'
2022-12-22 05:56:20.081 DEBUG (MainThread) [google_nest_sdm.event_media] No persisted media for event id <EventToken event_session_id1633205949 event_id=1284977112>
2022-12-22 05:56:20.083 DEBUG (MainThread) [homeassistant.components.nest] No event found for event_id 'WyIxNjMzMjA1OTQ5IiwgIjEyODQ5NzcxMTIiXQ=='
2022-12-22 05:56:24.391 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.