Skip to content

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
@kvz kvz merged commit 081b054 into main Mar 1, 2025
9 checks passed
@kvz kvz deleted the fix-rate-limiting-429 branch March 1, 2025 12:54
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.

4 participants