sander76/aio-powerview-api

Timeout issues

Closed this issue · 0 comments

Hoping to get your insight on the below - Home Assistant is throwing these errors for me.

Trying to get to the bottom of it (doing dev work on the integration for tdbu shades) but it looks like it stems from the aio request side rather than HomeAssistant.

I havent looked into your code too heavily yet but could maybe be related to the 423 response code we added a whileback and this call ? check_response(response, [200, 204])

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiopvapi/helpers/aiorequest.py", line 66, in get
    response = await self.websession.get(url, params=params)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 559, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 898, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiopvapi/helpers/aiorequest.py", line 67, in get
    return await check_response(response, [200, 204])
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 116, in __exit__
    self._do_exit(exc_type)
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 212, in _do_exit
    raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/hunterdouglas_powerview_custom/cover.py", line 318, in _async_complete_schedule_update
    await self._async_force_refresh_state()
  File "/config/custom_components/hunterdouglas_powerview_custom/cover.py", line 322, in _async_force_refresh_state
    await self._shade.refresh()
  File "/usr/local/lib/python3.9/site-packages/aiopvapi/resources/shade.py", line 133, in refresh
    raw_data = await self.request.get(self._resource_path, {"refresh": "true"})
  File "/usr/local/lib/python3.9/site-packages/aiopvapi/helpers/aiorequest.py", line 70, in get
    raise PvApiConnectionError
aiopvapi.helpers.aiorequest.PvApiConnectionError