flz / iaqualink-py

Asynchronous library for Jandy iAqualink
BSD 3-Clause "New" or "Revised" License
30 stars 20 forks source link

Login error on HomeAssistant #37

Closed CamTosh closed 1 year ago

CamTosh commented 1 year ago

šŸ‘‹

Do you know if this issue is on the iqualink-py lib or on the Home Assistant intgreation?

Versions:

Error

2023-09-15 12:37:37.920 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry user@something.com for iaqualink

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/anyio/streams/tls.py", line 131, in _call_sslobject_method
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/ssl.py", line 921, in read
    v = self._sslobj.read(len)
        ^^^^^^^^^^^^^^^^^^^^^^
ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2580)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 34, in read
    return await self._stream.receive(max_bytes=max_bytes)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/anyio/streams/tls.py", line 196, in receive
    data = await self._call_sslobject_method(self._ssl_object.read, max_bytes)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/anyio/streams/tls.py", line 138, in _call_sslobject_method
    data = await self.transport_stream.receive()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1203, in receive
    await self._protocol.read_event.wait()
  File "/usr/local/lib/python3.11/asyncio/locks.py", line 213, in wait
    await fut
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:
flz commented 1 year ago

I don't think I've seen this failure before (https://docs.python.org/3/library/asyncio-exceptions.html#asyncio.CancelledError).

Have you tried reloading the integration? It might have been a temporary error due to connectivity issues (or service issue).

CamTosh commented 1 year ago

@flz Good catch, the login is working on my computer and not my Rpi.

I have other error but these are on Home Assistant integration side

2023-09-21 13:10:37.870 ERROR (MainThread) [homeassistant.components.iaqualink] No systems detected or supported