home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.76k stars 30.87k forks source link

Hydrawise still giving error 429 - too many poll requests #130857

Open wgumaa opened 2 hours ago

wgumaa commented 2 hours ago

The problem

the problem was already https://github.com/home-assistant/core/issues/130131 and tried to be fixed but the issue still persists.

image

What version of Home Assistant Core has the issue?

2024.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Hydrawise

Link to integration documentation on our website

https://www.home-assistant.io/integrations/hydrawise/

Diagnostics information

2024-11-18 08:18:58.845 ERROR (MainThread) [homeassistant.components.hydrawise] Unexpected error fetching hydrawise data Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/gql/transport/aiohttp.py", line 319, in raise_response_error resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1158, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 429, message='Too Many Requests', url='https://app.hydrawise.com/api/v2/graph'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 382, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/hydrawise/coordinator.py", line 62, in _async_update_data data = HydrawiseData(user=await self.api.get_user(fetch_zones=False)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydrawise/client.py", line 109, in get_user result = await self._query( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydrawise/client.py", line 88, in _query return await session.execute(dsl_gql(DSLQuery(selector))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/gql/client.py", line 1628, in execute result = await self._execute( ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/gql/client.py", line 1537, in _execute result = await self.transport.execute( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/gql/transport/aiohttp.py", line 341, in execute await raise_response_error(resp, "Not a JSON answer") File "/usr/local/lib/python3.12/site-packages/gql/transport/aiohttp.py", line 321, in raise_response_error raise TransportServerError(str(e), e.status) from e gql.transport.exceptions.TransportServerError: 429, message='Too Many Requests', url='https://app.hydrawise.com/api/v2/graph'

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 hours ago

Hey there @dknowles2, @thomaskistler, @ptcryan, mind taking a look at this issue as it has been labeled with an integration (hydrawise) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `hydrawise` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign hydrawise` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


hydrawise documentation hydrawise source (message by IssueLinks)