albaintor / homeassistant_electrolux_status

Get the status from your Electrolux Care devices
MIT License
90 stars 23 forks source link

one-account-authorization/api/v1/token #59

Closed cloudbr34k84 closed 1 month ago

cloudbr34k84 commented 3 months ago
Source: config_entries.py:604
First occurred: 11:10:09 pm (1 occurrences)
Last logged: 11:10:09 pm

Error setting up entry cloudbr34k84@gmail.com for electrolux_status
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/electrolux_status/__init__.py", line 46, in async_setup_entry
    if not await coordinator.async_login():
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/electrolux_status/coordinator.py", line 39, in async_login
    raise ex
  File "/config/custom_components/electrolux_status/coordinator.py", line 32, in async_login
    token = await self.api.get_user_token()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyelectroluxocp/oneAppApi.py", line 128, in get_user_token
    token = await self._api_client.exchange_login_user(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyelectroluxocp/oneAppApiClient.py", line 142, in exchange_login_user
    response.raise_for_status()
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1088, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 429, message='', url=URL('https://api.ap.ocp.electrolux.one/one-account-authorization/api/v1/token')
This error originated from a custom integration.

Logger: custom_components.electrolux_status
Source: custom_components/electrolux_status/coordinator.py:38
integration: Electrolux Care Integration V2 (documentation, issues)
First occurred: 11:10:09 pm (1 occurrences)
Last logged: 11:10:09 pm

Could not log in to ElectroluxStatus, 429, message='', url=URL('https://api.ap.ocp.electrolux.one/one-account-authorization/api/v1/token')

The error message you're seeing indicates that there was a problem setting up the Electrolux Status integration in Home Assistant. Here's a breakdown of what the error could be telling you:

Error Details: Source: The error originates from the Electrolux Status custom component for Home Assistant. Key Issue: The specific error aiohttp.client_exceptions.ClientResponseError: 429, message='' indicates that the error code returned by the server is 429. What Error 429 Means: Error 429 - Too Many Requests: This HTTP status code is used by web servers to indicate that the client (in this case, the Home Assistant instance) has sent too many requests in a given amount of time, and the server is temporarily limiting access to prevent abuse.

I have been restarting HA alot testing a new custom integration..