Failed to parse headers

I’ve read that it’s safe to ignore this warning but I haven’t figured out how to.

Failed to parse headers (url=http://XX.XX.XX.XX:81/mjpg/cam3): [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ''
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 399, in _make_request
    assert_header_parsing(httplib_response.msg)
  File "/usr/lib/python3.6/site-packages/urllib3/util/response.py", line 66, in assert_header_parsing
    raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data)
urllib3.exceptions.HeaderParsingError: [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ''

I’ve tried a few different things but haven’t found something that works…

logger:
  default: error
  logs:
    homeassistant.components.automation: info
    urllib3.connectionpool: error
1 Like

Hi,

I have the same issue with a D-Link DCS-5222L

On the Generic MJPEG Camera page it says:

There is a known issue in urllib3 that you will get error messages in your logs like [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ‘’ but the component still works fine. You can ignore the messages.