Skip to content

Client error '429 Too Many Requests'  #63

Description

@fredriklj
2024-12-06 14:01:06.106 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [138122696809280] Unexpected exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/pyporscheconnectapi/connection.py", line 87, in request
    resp.raise_for_status()
    ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 763, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '429 Too Many Requests' for url 'https://api.ppa.porsche.com/app//connect/v1/vehicles/.../commands'

I've also noticed that some times you get 429 (Too many requests) in response when calling a remote service. This error seem to mostly be temporary, as another call shortly thereafter seem to have a high probability of succeeding. We should wait for a few seconds and then do one or two retries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions