Skip to content

Failed to get stream uri: Cannot connect to host xxx.xxx.xxx:80 ssl:default #158137

@vlad36N

Description

@vlad36N

The problem

Logger: homeassistant.components.onvif
Source: components/onvif/camera.py:199
integration: ONVIF (documentation, issues)
First occurred: 4:44:31 PM (4 occurrences)
Last logged: 4:44:31 PM

Failed to get stream uri: Cannot connect to host xxx.xxx.xxx:80 ssl:default [Connect call failed ('xxx.xxx.xxx', 80)]
Failed to get stream uri: Cannot connect to host xxx.xxx.xxx:80 ssl:default [Connect call failed ('xxx.xxx.xxx', 80)]

Logger: aiohttp.server
Source: /usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py:481
First occurred: 4:44:31 PM (8 occurrences)
Last logged: 4:44:48 PM

Error handling request from 72.89.170.170
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1268, in _wrap_create_connection
sock = await aiohappyeyeballs.start_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 122, in start_connection
raise first_exception
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 73, in start_connection
sock = await _connect_sock(
^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock
await loop.sock_connect(sock, address)
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 681, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('xxx.xxx.xxx', 80)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 510, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 87, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 41, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 826, in get
return await self.handle(request, camera)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 844, in handle
image = await _async_get_image(
^^^^^^^^^^^^^^^^^^^^^^^
...<4 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 195, in _async_get_image
else await camera.async_camera_image(width=width, height=height)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/onvif/camera.py", line 155, in async_camera_image
stream_uri = await self._async_get_stream_uri()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/onvif/camera.py", line 197, in _async_get_stream_uri
uri_no_auth = await self.device.async_get_stream_uri(self.profile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/onvif/device.py", line 486, in async_get_stream_uri
result = await media_service.GetStreamUri(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/zeep/proxy.py", line 64, in call
return await self._proxy._binding.send_async(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/zeep/wsdl/bindings/soap.py", line 156, in send_async
response = await client.transport.post_xml(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
options["address"], envelope, http_headers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/onvif/wrappers.py", line 52, in _async_wrap_connection_error_retry
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/onvif/client.py", line 142, in post_xml
return await super().post_xml(address, envelope, headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/onvif/zeep_aiohttp.py", line 209, in post_xml
response, content = await self._post_internal(address, message, headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/onvif/zeep_aiohttp.py", line 151, in _post_internal
response = await self.session.post(
^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 779, in _request
resp = await handler(req)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 734, in _connect_and_send_request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
req, traces=traces, timeout=real_timeout
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 642, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1209, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1581, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1550, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1291, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host xxx.xxx.xxx:80 ssl:default [Connect call failed ('xxx.xxx.xxx', 80)]

Logger: homeassistant.components.onvif
Source: components/onvif/camera.py:144
integration: ONVIF (documentation, issues)
First occurred: 4:44:25 PM (71 occurrences)
Last logged: 4:59:55 PM

Fetch snapshot image failed from Front Door, falling back to FFmpeg; Unknown error: Error fetching http://xxx.xxx.xxx/cgi-bin/snapshot.cgi?stream=1: Cannot connect to host xxx.xxx.xxx:80 ssl:default [Connect call failed ('xxx.xxx.xxx', 80)]
Fetch snapshot image failed from A_ONVIF_CAMERA, falling back to FFmpeg; Unknown error: Error fetching http://xxx.xxx.xxx/cgi-bin/snapshot.cgi?stream=1: Cannot connect to host xxx.xxx.xxx:80 ssl:default [Connect call failed ('xxx.xxx.xxx', 80)]
Fetch snapshot image failed from A_ONVIF_CAMERA, falling back to FFmpeg; Unknown error: Error fetching http://xxx.xxx.xxx/cgi-bin/snapshot.cgi?stream=0: Cannot connect to host xxx.xxx.xxx:80 ssl:default [Connect call failed ('xxx.xxx.xxx', 80)]
Fetch snapshot image failed from Back Door, falling back to FFmpeg; Unknown error: Error fetching http://xxx.xxx.xxx/cgi-bin/snapshot.cgi?stream=0: Cannot connect to host xxx.xxx.xxx:80 ssl:default [Connect call failed ('xxx.xxx.xxx', 80)]
Fetch snapshot image failed from Back Door, falling back to FFmpeg; Unknown error: Error fetching http://xxx.xxx.xxx/cgi-bin/snapshot.cgi?stream=1: Cannot connect to host xxx.xxx.xxx:80 ssl:default [Connect call failed ('xxx.xxx.xxx', 80)]

What version of Home Assistant Core has the issue?

2025.12.1

What was the last working version of Home Assistant Core?

2025.11

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ONVIF

Link to integration documentation on our website

https://www.home-assistant.io/integrations/onvif/

Diagnostics information

All 3 camera stop working after latest core update.

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions