Skip to content

fix(hub): the release check names GitHub's rate limit and waits for its end - #501

Merged
7schmiede merged 1 commit into
mainfrom
fix/release-check-rate-limit
Nov 10, 2026
Merged

7schmiede merged 1 commit into
mainfrom
fix/release-check-rate-limit

Conversation

@7schmiede

Copy link
Copy Markdown
Member

The dashboard's version popover showed could not ask GitHub: GitHub answered 403 Forbidden for the public repository. The cause: GitHub's limit of 60 unauthenticated API requests an hour per IP address was used up by other programs on the same network.

  • release::latest returns a CheckError with the message and, for a rate limit (403/429 with x-ratelimit-remaining: 0 or a retry-after), the time it ends. The message names the limit and the local time it ends ("… used up for this network until 14:02 (60 an hour, shared by every program behind the same address)"); every other refusal reads as before.
  • The hub's release watcher tries again when the limit ends (clamped to 1 min … 1 h) instead of after a fixed hour, and while the limit lasts a "Check for updates" or a dashboard connecting gets the last answer instead of asking again.
  • devstack update --check and devstack doctor show the same message.

No card category: an error message and the retry time of an existing check. Asking with a token was considered and left out (it would be a trust point).

Verified: unit test for the header parsing; devstack update --check against the live, rate-limited API printed the new message.

🤖 Generated with Claude Code

…ts end

A 403 with no requests remaining (or a retry-after) is GitHub's limit of
60 unauthenticated requests an hour per IP address, shared by every
program on the network, not a private repository. The check now says so
and when it ends, and the hub waits until then instead of an hour; a
"Check for updates" meanwhile gets the last answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit 861203f into main Nov 10, 2026
@7schmiede
7schmiede deleted the fix/release-check-rate-limit branch November 10, 2026 15:24
@7schmiede 7schmiede mentioned this pull request Nov 10, 2026
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.

1 participant