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

support HTTP 429 rate limiting #217

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

support HTTP 429 rate limiting #217

wants to merge 3 commits into from

Conversation

mifi
Copy link
Collaborator

@mifi mifi commented Feb 26, 2025

The initial implementation of the rate limiting based on http 413 was based on
https://transloadit.com/blog/2012/04/introducing-rate-limiting/
but some time after that, the api seems to have changed to instead reply 429,
and now rate limiting seems to be broken, as evident by some tests failing.
this code adds support for rate limiting 429 (in addition to 413)

mifi added 2 commits February 26, 2025 12:58
the initial implementation of the rate limiting based on http 413 was based on
https://transloadit.com/blog/2012/04/introducing-rate-limiting/
but some time after that, the api seems to have changed to instead reply 429,
and now rate limiting seems to be broken, as evident by some tests failing.
this code adds support for rate limiting 429 (in addition to 413)
@codecov-commenter
Copy link

codecov-commenter commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.31%. Comparing base (8b5d4e0) to head (1b78e49).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #217      +/-   ##
==========================================
- Coverage   68.36%   68.31%   -0.06%     
==========================================
  Files           6        6              
  Lines         588      587       -1     
  Branches      113      113              
==========================================
- Hits          402      401       -1     
  Misses        186      186              
Flag Coverage Δ
unittests 68.31% <100.00%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@mifi mifi requested a review from kvz February 26, 2025 04:03
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.

2 participants