ariston-remotethermo-home-assistant-v3 icon indicating copy to clipboard operation
ariston-remotethermo-home-assistant-v3 copied to clipboard

[BUG] Requests are blocked for xx seconds

Open smarthomedesign opened this issue 5 months ago • 22 comments

First of all please check my wikipage: https://github.com/fustom/ariston-remotethermo-home-assistant-v3/wiki and the previous issues (included the closed ones) before you create a new one.

Describe the bug I m getting blocked by api because of an error

Expected behavior

Screenshots This error originated from a custom integration. Logger: custom_components.ariston.coordinator Source: helpers/update_coordinator.py:312 integration: Ariston (documentation, issues) First occurred: September 23, 2024 at 3:37:24 PM (130 occurrences) Last logged: 12:11:37 AM

Unexpected error fetching ariston-WaterHeater-coordinator data Unexpected error fetching ariston-WaterHeater-bus_errors_coordinator data Unexpected error fetching ariston-WaterHeater-energy_coordinator data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 268, in _async_update_data return await self.update_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/galevo_device.py", line 105, in async_update_state (self.data, self.menu_items) = await asyncio.gather( ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 637, in async_get_menu_items items = await self._async_get( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 930, in _async_get return await self.__async_request("GET", path, params, None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 906, in __async_request raise Exception(response.status, content) Exception: (429, b'Requests are blocked for 66 seconds')

Environment (please complete the following information):

  • HA version: 2024.6.3
  • Version of the integration: 0.19.5
  • Ariston device type (check the integration Device info): Ariston Clas One WiFI

Additional context, debug log Add any other context about the problem here.

smarthomedesign avatar Sep 23 '24 21:09 smarthomedesign