Skip to content

onvif: Not enough data to satisfy content length header when using older Dahua firmwares (Dahua, Lorex, other rebrands) -- workaround scheduled for 2025.8.x -- can also be solved with a firmware update if available #148093

@familyegu973

Description

@familyegu973

The problem

Hello,

I report here an issue when I tried today to upgrade from HA 2025.6.3 to HA 2025.7
My ONVIF integration with my DAHUA product, has been broken. I got the following message
Could not connect to camera 192.168.1.108:80: Response payload is not completed: <ContentLengthError: 400, message='Not enough data to satisfy content length header.'>

I did not performed any update on my DAHUA product, and never faced any issue like this one in the past during HA upgrade.

So I had to roll back on HA 2025.6.3 to retrieve Onvif integration working.

Is there something I missed ?

Best Regards

What version of Home Assistant Core has the issue?

2025.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

Labels

integration: onvifmissing-diagnostics-and-logsPlease follow the steps in https://www.home-assistant.io/docs/configuration/troubleshooting/#enablin

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions