Kane610 / aiounifi

Asynchronous library to communicate with Unifi Controller
MIT License
57 stars 49 forks source link

JSONDecodeError: Input is a zero-length, empty document #589

Closed bmos closed 4 months ago

bmos commented 4 months ago

I get this in my logs after each update lately, although the integration seems to be working fine.

Logger: aiounifi.interfaces.connectivity Source: /usr/local/lib/python3.12/site-packages/aiounifi/interfaces/connectivity.py:203 First occurred: 8:51:02 PM (1 occurrences) Last logged: 8:51:02 PM

Input is a zero-length, empty document: line 1 column 1 (char 0) Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiounifi/interfaces/connectivity.py", line 175, in websocket callback(message.data) File "/usr/local/lib/python3.12/site-packages/aiounifi/interfaces/messages.py", line 56, in new_data self.handler(orjson.loads(raw_bytes)) ^^^^^^^^^^^^^^^^^^^^^^^ orjson.JSONDecodeError: Input is a zero-length, empty document: line 1 column 1 (char 0)

Kane610 commented 4 months ago

Thanks! This will be solved by https://github.com/Kane610/aiounifi/pull/587 in HASS 2024.2.2