Skip to content

#1434: let rate_limit_remaining and the ratelimit aliases through the off-quota guard - #1458

Open
jack5505 wants to merge 1 commit into
zerocracy:masterfrom
jack5505:1434
Open

jack5505 wants to merge 1 commit into
zerocracy:masterfrom
jack5505:1434

Conversation

@jack5505

@jack5505 jack5505 commented Oct 8, 2026

Copy link
Copy Markdown

The off-quota guard of Fbe.octo lets the quota calls through by name, but the list had only rate_limit and rate_limit!. Octokit also has rate_limit_remaining, rate_limit_remaining! and the aliases ratelimit, ratelimit!, ratelimit_remaining, ratelimit_remaining! (octokit/client/rate_limit.rb), and once the quota was low they raised Fbe::OffQuota instead of answering, although they only read /rate_limit, which does not spend the quota.

Added all six to the list. Added a test that calls each of them while off-quota and expects the remaining quota back; it fails without the fix.

Closes #1434

…rough the off-quota guard, they only read /rate_limit
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.

The off-quota guard of Fbe.octo still refuses rate_limit_remaining and the ratelimit aliases, the calls that report the quota

1 participant