It may be due to a problem with Home Assistant’s ONVIF module:
Traceback (most recent call last):
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/suds/transport/http.py", line 78, in send
fp = self.u2open(u2request)
File "/usr/lib/python3.5/urllib/request.py", line 472, in open
response = meth(req, response)
File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.5/urllib/request.py", line 510, in error
return self._call_chain(*args)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/suds/client.py", line 652, in send
reply = transport.send(request)
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/suds/transport/http.py", line 178, in send
return HttpTransport.send(self, request)
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/suds/transport/http.py", line 86, in send
raise TransportError(e.msg, e.code, e.fp)
suds.transport.TransportError: Bad Request
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/onvif/client.py", line 34, in wrapped
return func(*args, **kwargs)
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/onvif/client.py", line 201, in wrapped
return call(params, callback)
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/onvif/client.py", line 191, in call
ret = func(**params)
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/suds/client.py", line 559, in __call__
return client.invoke(args, kwargs)
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/suds/client.py", line 618, in invoke
result = self.send(soapenv)
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/suds/client.py", line 664, in send
result = self.failed(binding, e)
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/suds/client.py", line 726, in failed
raise Exception((status, reason))
Exception: (400, 'Bad Request')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 170, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
return fut.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/usr/lib/python3.5/asyncio/coroutines.py", line 210, in coro
res = func(*args, **kw)
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/onvif.py", line 49, in async_setup_platform
async_add_devices([ONVIFCamera(hass, config)])
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/onvif.py", line 70, in __init__
self._input = media.GetStreamUri().Uri
File "/home/redacted_user/homeassistant/lib/python3.5/site-packages/onvif/client.py", line 36, in wrapped
raise ONVIFError(err)
onvif.exceptions.ONVIFError: Unknown error: (400, 'Bad Request')