Importing onvif or ONVIFCamera from onvif raises this issue while also using requests.get
Commenting out lines 6,7,8, and 9 inside of client.py has resolved the issue for me. Not sure if best method or negative side effects yet, but so far none.
Here is the full error with the url address commented out:
WARNING:urllib3.connectionpool:Failed to parse headers (url=####################): [MissingHeaderBodySeparatorDefect()], unparsed data: '(17320) sif_util.c:SIiUTIL_GetMacByIfName[2345]: ioctl: get ra0 mac error. No such device\nStatus: 200 OK\r\nContent-type: text/plain\r\n\r\n'
Traceback (most recent call last):
File "C:\Python\lib\site-packages\urllib3\connectionpool.py", line 399, in _make_request
assert_header_parsing(httplib_response.msg)
File "C:\Python\lib\site-packages\urllib3\util\response.py", line 66, in assert_header_parsing
raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data)
urllib3.exceptions.HeaderParsingError: [MissingHeaderBodySeparatorDefect()], unparsed data: '(17320) sif_util.c:SIiUTIL_GetMacByIfName[2345]: ioctl: get ra0 mac error. No such device\nStatus: 200 OK\r\nContent-type: text/plain\r\n\r\n'
Importing onvif or ONVIFCamera from onvif raises this issue while also using requests.get
Commenting out lines 6,7,8, and 9 inside of client.py has resolved the issue for me. Not sure if best method or negative side effects yet, but so far none.
Here is the full error with the url address commented out: