I have a script which gets called if someone presses my doorbell. This has worked for ages and sends a snapshot of my front door camera to my phone in a notification. Recently this stopped working with the below error. I’m not sure what to investigate since the camera is still working and other cameras with the exact same automation / script function perfectly.
Service call in Script (and similar with other cameras in automations)
service: notify.mobile_phones
data:
message: Someone is at the front door
data:
ttl: 0
priority: high
image: /api/camera_proxy/camera.front_door
Error log
Logger: aiohttp.server
Source: /usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py:421
First occurred: January 10, 2024 at 18:23:08 (426160 occurrences)
Last logged: 12:19:00
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 350, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
Expected CRLF after version:
b'POST /api/webhook/onvif98df82a57b3a HTTP/1.1 '
^
Edit: Forgot to mention I get the notification with a image of an error saying no frames were captured.
I just changed the detection URL for this camera from the ‘third stream’ to ‘sub stream’ and now I get an image / video in Frigate again… not sure why the third stream suddenly stopped working in Frigate though since it is still working in ONVIF…
Just another update on this error. I find that after multiple restarts of the Frigate add-on, I can often get the stream to load properly and then the snapshots work again. It will generally fail again after a HA server reboot and then needs Frigate add-on restarts again to get the stream going again… not sure how much that helps with determining the issue but at least I know it’s not the camera.