Closed Chaoscontrol closed 7 months ago
which version of the integration are you running? I just upgraded, cleaned my logs and I have no errors. Running 3.4.2, your issue may have been solved..
Nope, down in my post I said I was on 3.4.2 already. I always update automatically as soon as it's available. These haven't shown again since I cleared the log. I'll wait for them to show again and report back.
I had a couple of these this morning, not seen it before. I am on 3.4.2
This error originated from a custom integration.
Logger: custom_components.wiser.coordinator
Source: helpers/update_coordinator.py:300
Integration: Drayton Wiser Integration for Home Assistant (documentation, issues)
First occurred: 07:26:16 (1 occurrences)
Last logged: 07:26:16
Unexpected error fetching wiser (wiser-WiserHeat02B1EE) data: Unterminated string starting at: line 1 column 12795 (char 12794)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wiser/coordinator.py", line 151, in async_update_data
raise ex
File "/config/custom_components/wiser/coordinator.py", line 129, in async_update_data
await self.wiserhub.read_hub_data()
File "/usr/local/lib/python3.11/site-packages/aioWiserHeatAPI/wiserhub.py", line 126, in read_hub_data
await self._build_objects()
File "/usr/local/lib/python3.11/site-packages/aioWiserHeatAPI/wiserhub.py", line 140, in _build_objects
self._domain_data = await self._wiser_rest_controller._get_hub_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioWiserHeatAPI/rest_controller.py", line 187, in _get_hub_data
return await self._do_hub_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioWiserHeatAPI/rest_controller.py", line 126, in _do_hub_action
return json.loads(
^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 12795 (char 12794)
Wierdly (or not), i had not seen this before. However, i upgraded to 2024.2 the other day and i had the same message this morning. Will be looking in to it. I presume something in 2024.2 has caused it - maybe another upgrade to aiohttp that doesn't like the Wiser response.
I am still on 2024.1.6
@dpgh947 error doesn't seem the same I reported on this thread.
The one your reported seems like the current ones I am seeing daily that I reported on this thread.
Tbh, I haven't seen the ones reported in this issue anymore so far.
@dpgh947 is the same in the sense it is a json format error just a different specific format error. Either way, same part of the code does not like the json returned from the hub.
This should be resolved in v3.4.4. Please reopen if you have this issue again.
I keep getting these, I wonder if it related to this issue? If I hadn't looked in the logs I wouldn't have known there's a problem, the integration seems to be working.
This error originated from a custom integration.
Logger: custom_components.wiser.coordinator
Source: custom_components/wiser/coordinator.py:198
integration: Drayton Wiser Integration for Home Assistant (documentation, issues)
First occurred: 16:12:54 (1 occurrences)
Last logged: 16:12:54
Unknown error fetching wiser (wiser-WiserHeat061012) data. Response payload is not completed: <TransferEncodingError: 400, message='Not enough data for satisfy transfer length header.'>. Please report this error to the integration owner
Sorry for opening so many issues lately. I'm just trying to clean up my error log that has been increasing for a long while, and tbh most have always been from this integration. Even if I haven't found actual issues when using it. :(
Reporting 2 types of errors here, although they seem very similar.