Backoff on HTTP requests when 429 is recieved #762
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#762
Loading…
Reference in a new issue
No description provided.
Delete branch "backoff-http"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #269
backoff-httpto Backoff on HTTP requests when 429 is recieved14ff522b67
tof531484063
MDN documents
Retry-After
to either contain a timestamp or a offset in seconds and that it may be used for both 503 and 429. It’s probably ok to also checkX-Ratelimit-Reset
for 503 and an offset forX-Ratelimit-Reset
, i.e. something like this:96d3f3b4fa
(Though this changes the log message on an unparsable header and ig it’s also debateable whether 429 and 503 should use the same log message. Converting a second offset to a date and then back to an offset seems a bit redundant but i didn't wnat to change logs etc further)added support for
Retry-After
, and checks for 503 as well (we can internally treat it as a ratelimit, because it's probably having troubles anyhow)