[Support]: missing content-length on API-requests #16500
Replies: 3 comments 2 replies
-
This is not a bug. The response is streamed and there is no way to know the exact content length of the concatenated MP4 file beforehand |
Beta Was this translation helpful? Give feedback.
-
i'm not sure about that. I'm talking about a event clip that is not concatenated. The header is actually in the function but does not make it to client.
|
Beta Was this translation helpful? Give feedback.
-
Thats curious, as my script (which relied on the content-length) started to fail with the update because of the missing header. But never mind, its not that important. |
Beta Was this translation helpful? Give feedback.
-
Checklist
Describe the problem you are having
Responses to requests to the frigate API do not longer provide the header "content-length". Probably related to the switch to FastAPI. That was kind of useful to judge if a clip should get stored or not.
Steps to reproduce
Simply request a clip via API:
Version
15
In which browser(s) are you experiencing the issue with?
Frigate config file
not relevant
docker-compose file or Docker CLI command
not relevant
Relevant Frigate log output
Relevant go2rtc log output
Operating system
Other Linux
Install method
Docker Compose
Network connection
Wired
Camera make and model
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions