8000 Rituals integration logs are extremely verbose on connect error · Issue #48818 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Rituals integration logs are extremely verbose on connect error #48818
@hmmbob

Description

@hmmbob

The problem

Every once in a while the integration cannot connect to the Rituals / Sense servers and then throws an extremely verbose error.

Expected output would be something like only this instead of complete traceback:

2021-04-08 08:32:24 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.genie fails: Cannot connect to host rituals.sense-company.com:443 ssl:default [Connect call failed ('37.97.128.129', 443)]

What is version of Home Assistant Core has the issue?

core-2021.4.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Rituals Perfume Genie

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-04-08 08:32:24 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.genie fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
    return await fut
  File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
TimeoutError: [Errno 110] Connect call failed ('37.97.128.129', 443)

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 292, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 498, in async_device_update
    await task
  File "/usr/src/homeassistant/homeassistant/components/rituals_perfume_genie/switch.py", line 92, in async_update
    await self._diffuser.update_data()
  File "/usr/local/lib/python3.8/site-packages/pyrituals/__init__.py", line 20, in update_data
    async with session.get(f'{url}/{self.data["hub"]["hash"]}') as resp:
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 1117, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 520, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 535, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 892, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
  File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection
    raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host rituals.sense-company.com:443 ssl:default [Connect call failed ('37.97.128.129', 443)]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0