I now have 3 MJPEG cameras and my error log fills with the errors that the page says I can safely ignore, but they are pretty annoying. Is there any way to fix or hide the errors?
Traceback (most recent call last):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 404, in _make_request
assert_header_parsing(httplib_response.msg)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/packages/urllib3/util/response.py", line 59, in assert_header_parsing
raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data)
requests.packages.urllib3.exceptions.HeaderParsingError: [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ''
16-09-06 16:06:58 requests.packages.urllib3.connectionpool: Failed to parse headers (url=http://IPADDRESS/cgi-bin/video.cgi?msubmenu=mjpg): [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ''
Hi. Sorry for my ignorance, but what logging level would hide these but keep everything above that?
In other words, what’s the least I can reduce my logging to hide these messages?
Thanks!
These errors are making my logs hard to follow. Could someone please suggest how to reduce/remove them and still show the most other output in the logs?
Thanks!
The earlier solution was a link to the docs, which I didn’t understand much when I read them
Your actual code for my specific situation helped me understand them a little bit more.
I’ll have a look at your new addition here, thanks.
# Name of the location where Home Assistant is running
name: Redacted Home
# Location required to calculate the time the sun rises and sets
latitude: xxx
longitude: -yyy
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 254
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Indiana/Indianapolis
customize: !include customize.yaml
# Show links to resources in log and frontend
introduction:
logger:
default: info
logs:
homeassistant.components.camera: fatal
Still getting warnings at regular intervals. Thoughts? I appreciate your help
I’m not seeing any errors anymore. The only thing that appears different in the default level - which you have set to info. You can try switching that to error, but after that I don’t know what else you could do differently than I did.
Have this same issue, none of these work for me. I’m sure setting the default logging level to error of above would work, but I don’t really wan to do that.
Was this ever resolved? I tried every possible combination for logger but still get this annoying message: Failed to parse headers (url=http://xxxxxxx:80/mjpg/video.mjpg): [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: '' Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 396, in _make_request assert_header_parsing(httplib_response.msg) File "/usr/local/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: ''
If you want to get rid of the errors, you can make a fairly simple edit your lib/python3.6/site-packages/urllib3/connectionpool.py (full path will depend on your venv/install location) file.
On line 394, change: log.warning(… to log.debug(… and restart HA.
That will switch the warning to a debug warn level so it shouldn’t show up in HA unless you have your log level set to debug.