Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast fail 429 #243

Merged
merged 2 commits into from
May 20, 2024
Merged

Fast fail 429 #243

merged 2 commits into from
May 20, 2024

Conversation

sethterashima
Copy link
Collaborator

@sethterashima sethterashima commented May 20, 2024

Description

Fast fail on 429 errors to give clients better control over retry policies.

Document TESLA_CACHE_FILE environment variable, which may help clients avoid 429s to begin with.

Fixes #238

Type of change

Please select all options that apply to this change:

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Checklist:

Confirm you have completed the following steps:

  • My code follows the style of this project.
  • I have performed a self-review of my code.
  • I have made corresponding updates to the documentation.
  • I have added/updated unit tests to cover my changes.

Seth Terashima added 2 commits May 20, 2024 10:38
Fast fail on 429, allowing clients to determine how to handle these
errors.
The `TESLA_CACHE_FILE` allows applications to skip handshake messages,
which is especially useful for `tesla-control`. It should be
documented in the main README file.
@sethterashima sethterashima merged commit 83b83ea into teslamotors:main May 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server returned 429: Too Many Requests: Retry later (hidden by tesla-command)
3 participants