Skip to content

Retry requests on 429 rate limit responses - #111

Merged
itssimon merged 2 commits into
mainfrom
retry-requests-on-429
Nov 22, 2026
Merged

itssimon merged 2 commits into
mainfrom
retry-requests-on-429

Conversation

@itssimon

@itssimon itssimon commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Export requests can hit the API rate limit, and the CLI currently fails immediately on a 429 response.

This retries those requests up to 2 times, waiting for the Retry-After header (defaulting to 1 second if it's missing or unusable) and printing a message to stderr before each wait. It gives up after about 60 seconds of waiting in total, then fails with the existing error.

@codecov

codecov Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.45455% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.21%. Comparing base (814f8a9) to head (8cc7693).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/utils.rs 94.91% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #111      +/-   ##
==========================================
+ Coverage   94.18%   94.21%   +0.03%     
==========================================
  Files          13       13              
  Lines        2613     2646      +33     
==========================================
+ Hits         2461     2493      +32     
- Misses        152      153       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@itssimon
itssimon merged commit 4c7f2d3 into main Nov 22, 2026
6 checks passed
@itssimon
itssimon deleted the retry-requests-on-429 branch November 22, 2026 10:02
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.

1 participant