Retry push and release notifications after a Discord rate limit #25
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/JamesCicada--GTAVI-Recomp!25
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-25"
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?
@RavenCurseBurg on GitHub · 2026-11-26 03:27 UTC · original
RavenCurseBurg:fix/discord-rate-limit→main· +75 −10 · 2 files · 1 commits · openA webhook that returned HTTP 429 caused the notifier to exit immediately, even when Discord specified when the message could be retried. The notifier now honors
Retry-Afteror a fractionalretry_afterin the JSON body. It makes at most three attempts and reports the error when the requested wait exceeds 60 seconds. Other HTTP and transport errors keep their existing behavior. Discord rate-limit responseThe new regression tests cover header and JSON delays, repeated 429s and unusable delays. On the base revision the header and JSON cases both exited at the first 429. All 47 Python tooling tests and all three warnings-as-errors Release CTests passed with the change. A loopback HTTP server returned 429 then 204 and received the same synthetic payload twice, 52 ms apart for a 50 ms requested delay. All tests ran without a Discord webhook.
AI-assisted with Codex + GPT-6.2 Astra (xhigh).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.