WARNING (Thread-15) [requests.packages.urllib3.connectionpool] since 0.56.0 Upgrade

Hi

Since upgrading to 0.56.0 I have started to get the following errors

2017-10-22 15:37:38 WARNING (Thread-15) [requests.packages.urllib3.connectionpool] Failed to parse headers (url=http://192.168.1.250:2971/camera/stream): [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ‘’ Traceback (most recent call last): File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py”, line 398, in _make_request assert_header_parsing(httplib_response.msg) File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/util/response.py”, line 66, in assert_header_parsing raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data) requests.packages.urllib3.exceptions.HeaderParsingError: [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ‘’ 2017-10-22 15:37:38 WARNING (Thread-19) [requests.packages.urllib3.connectionpool] Failed to parse headers (url=http://192.168.1.249:2971/camera/stream): [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ‘’ Traceback (most recent call last): File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py”, line 398, in _make_request assert_header_parsing(httplib_response.msg) File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/util/response.py”, line 66, in assert_header_parsing raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data) requests.packages.urllib3.exceptions.HeaderParsingError: [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()],

Any help ?

Thanks

1 Like

I have the same error with my cheap chinese webcam

Oct 30 22:48:08 hass dockerd[756]: 2017-10-30 22:48:08 WARNING (SyncWorker_3) [requests.packages.urllib3.connectionpool] Failed to parse headers (url=http://ZZZZZZZ:81/videostream.cgi?loginuse=XXXX&loginpas=YYYY): [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ‘’
Oct 30 22:48:08 hass dockerd[756]: Traceback (most recent call last):
Oct 30 22:48:08 hass dockerd[756]: File “/usr/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py”, line 398, in _make_request
Oct 30 22:48:08 hass dockerd[756]: assert_header_parsing(httplib_response.msg)
Oct 30 22:48:08 hass dockerd[756]: File “/usr/lib/python3.6/site-packages/requests/packages/urllib3/util/response.py”, line 66, in assert_header_parsing
Oct 30 22:48:08 hass dockerd[756]: raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data)
Oct 30 22:48:08 hass dockerd[756]: requests.packages.urllib3.exceptions.HeaderParsingError: [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ‘’

I had a similar error that was a known issue, and I had it suppressed in my logs. This appears to have changed, so now I suppress it with:

logger:
  default: info
  logs:
    # requests.packages.urllib3.connectionpool: error  # old one - not needed; use the one below
    urllib3.connectionpool: error
2 Likes

I’m getting this filling my logs, too. I’m running a Foscam FI8918W

This isn’t working for me.

Are you checking via the log file, or the web interface?
I just realised that I have these errors in the new view in the website, but not in the log file. I didn’t know that was a thing.

Failed to parse headers (url=http://192.168.1.2:8081/video.mjpg): [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ''
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/urllib3/connectionpool.py", line 399, in _make_request
    assert_header_parsing(httplib_response.msg)

The web interface