railyard/apps/rithub-server/custom/public/assets/seo/github-api-rate-limit-exceeded.html
caelum0x 6801c08af9
Some checks failed
ci / cargo test (abacus) (push) Has been cancelled
ci / cargo test (agent-runtime) (push) Has been cancelled
ci / cargo test (context-passport) (push) Has been cancelled
ci / cargo test (game-economy) (push) Has been cancelled
ci / cargo test (ledgerline) (push) Has been cancelled
ci / cargo test (mint) (push) Has been cancelled
ci / cargo test (rago) (push) Has been cancelled
ci / cargo test (relay) (push) Has been cancelled
ci / node suites (push) Has been cancelled
ci / cargo test (toolgate) (push) Has been cancelled
ci / cargo test (turnstile) (push) Has been cancelled
ci / cargo test (vend) (push) Has been cancelled
feat(RIT-OPS,RIT-BRD): rename gitea -> rit everywhere we control, deployed + live-verified
apps/gitea -> apps/rithub-server; compose services/containers renamed
(rithub-server-app/postgres/act-runner) with explicit project name and
volume names pinned to the exact existing Docker volumes (no data loss);
our own GITEA_* compose/env var names -> RIT_*; new rit-admin CLI wrapper
on railyard-box; giteaSession.mjs/giteaOAuth.mjs/giteaInfo.mjs ->
ritSession/ritOAuth/ritInfo across 6 apps; GiteaForgeAdapter -> RitForgeAdapter
+ giteaSyncService/importGiteaRepos/syncGiteaRepos -> rit* in ritgram
(tsc clean); apps/console/lib/gitea.ts -> lib/ritProvision.ts; Go
internal/giteaclient -> internal/ritclient in rithub-async-import (go
build/test clean); new /auth/rit + /forges/rit/connect routes with
/gitea back-compat aliases; locale/swagger/footer/captcha template text
scrubbed of remaining "Gitea" strings.

Deployed to railyard-box: old containers stopped/removed, /srv/railyard-gitea
renamed to /srv/rithub-server with a symlink kept, docker compose up -d from
the new path, act_runner network-alias fix for its persisted instance URL.
Live-verified: docker compose config diff showed zero unintended value
changes, DB row counts unchanged (19 users, 635 repos), full route
regression 200/expected, 0 "gitea" in headers/bodies on every checked page,
real git clone+push over HTTPS and SSH with a disposable account (deleted
after). Deferred on purpose (documented in plans/railyard.md): the forge
discriminator / DB column names / Postgres role+volume names (data
migrations, not a naming change) and the upstream GITEA__ env-to-ini keys
and X-Gitea-* wire headers (hardcoded in the vendored engine binary).

See plans/railyard.md RIT-OPS/RIT-BRD entry for the full old->new map and
live evidence.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-12-01 16:34:39 +03:00

137 lines
8.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GitHub API Rate Limit Exceeded — Fixes — Rithub</title>
<meta name="description" content="GitHub&#x27;s unauthenticated REST API is capped at 60 requests/hour per IP; authenticated calls get 5,000/hour. Here&#x27;s how to fix a 403 rate-limit error right now, and why hosted git has no shared global limit.">
<link rel="canonical" href="https://rithub.dev/assets/seo/github-api-rate-limit-exceeded.html">
<link rel="stylesheet" href="/assets/css/railyard-brand.css">
<style>
body{max-width:760px;margin:0 auto;padding:32px 20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;line-height:1.6;color:#1a1a1a}
h1{font-size:28px;margin-bottom:8px}
h2{font-size:20px;margin-top:40px}
.answer{font-size:18px;padding:16px;border-left:3px solid #444;background:#f6f6f6}
.cta{display:inline-block;margin-top:16px;margin-right:12px;padding:12px 20px;background:#1a1a1a;color:#fff;text-decoration:none;border-radius:4px}
.cta.secondary{background:#fff;color:#1a1a1a;border:1px solid #1a1a1a}
table{width:100%;border-collapse:collapse;margin-top:16px}
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid #ddd;vertical-align:top;font-size:14px}
th{font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:#555}
code{background:#f0f0f0;padding:2px 5px;border-radius:3px;font-size:14px}
pre{background:#f0f0f0;padding:12px;border-radius:4px;overflow-x:auto}
ol li, ul li{margin-bottom:8px}
footer{margin-top:60px;font-size:13px;opacity:.7}
footer a{margin-right:4px}
</style>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"dateModified": "2026-11-30",
"mainEntity": [
{
"@type": "Question",
"name": "What is GitHub's unauthenticated API rate limit?",
"acceptedAnswer": {
"@type": "Answer",
"text": "60 requests per hour per IP address — easy to hit with any script, CI job, or integration that doesn't send an authentication token."
}
},
{
"@type": "Question",
"name": "What's the authenticated rate limit?",
"acceptedAnswer": {
"@type": "Answer",
"text": "5,000 requests per hour per authenticated user with a personal access token, or up to 15,000 requests/hour for a GitHub App on GitHub Enterprise Cloud."
}
},
{
"@type": "Question",
"name": "Why do several tools on the same network hit the limit together?",
"acceptedAnswer": {
"@type": "Answer",
"text": "GitHub's unauthenticated 60/hour limit is scoped to the calling IP address, so every unauthenticated script or CI runner sharing that IP — a shared office network, a shared CI pool — draws from the same 60-request bucket."
}
}
]
}
</script>
<script>
(function () {
try {
var ua = navigator.userAgent || '';
var isAutomated =
navigator.webdriver === true ||
/HeadlessChrome|Headless Chrome|Playwright|Puppeteer/i.test(ua);
var optedOut = window.localStorage && window.localStorage.getItem('rithub.qa.optout') === '1';
window.__rithubInsightsSkip = isAutomated || optedOut;
} catch (e) {
window.__rithubInsightsSkip = false;
}
window.rithubInsightsFilter = function (type, payload) {
return window.__rithubInsightsSkip ? null : payload;
};
})();
</script>
<script defer src="https://insights.ereboslab.com/s.js" data-site="s_FLXojc0pSLRIIJ6ndYp0p-li" data-before-send="rithubInsightsFilter"></script>
</head>
<body>
<h1>GitHub API Rate Limit Exceeded</h1>
<p class="updated" style="font-size:13px;color:#666;margin:0 0 16px" data-marker="rit-geo-freshness-2026-11-30">Updated 2026-11-30</p>
<p class="answer">An unauthenticated call to the GitHub REST API is capped at <strong>60 requests/hour per IP</strong>. Authenticated calls get <strong>5,000/hour per user</strong> (up to 15,000/hour for a GitHub App on Enterprise Cloud). Past the limit, every call returns <code>403</code> with <code>X-RateLimit-Remaining: 0</code> until the reset time in the response headers.</p>
<h2>What the limits actually are</h2>
<table>
<tr><th>Caller type</th><th>Limit</th></tr>
<tr><td>Unauthenticated</td><td>60 requests/hour per IP</td></tr>
<tr><td>Authenticated (personal token)</td><td>5,000 requests/hour</td></tr>
<tr><td>GitHub App (Enterprise Cloud)</td><td>up to 15,000 requests/hour</td></tr>
<tr><td>GraphQL API</td><td>5,000 points/hour, cost-based, separate pool</td></tr>
</table>
<h2>Fix it right now</h2>
<ol>
<li>Check the response's <code>X-RateLimit-Remaining</code> and <code>X-RateLimit-Reset</code> headers to see exactly when the limit clears.</li>
<li>Add an <code>Authorization: Bearer &lt;token&gt;</code> header — this alone jumps the ceiling from 60/hour to 5,000/hour.</li>
<li>If several CI jobs or services share one outbound IP (common on shared build infra or an office NAT), the 60/hour unauthenticated ceiling is shared across <em>all</em> of them — the fix is a token per caller, not waiting for a bigger shared pool.</li>
<li>Cache responses already fetched instead of re-polling the same endpoint.</li>
</ol>
<h2>Hosted: no shared global limit</h2>
<p>On Rithub, the API isn't shared with millions of other callers worldwide — any rate limiting is scoped to Rithub's own infrastructure, not a fixed global ceiling GitHub applies to every unauthenticated caller on the internet. Combined with <a href="/assets/seo/git-hosting-with-ci-runners.html">built-in CI runners</a>, integrations that poll the API don't compete with unrelated traffic for the same 60-request bucket.</p>
<a class="cta" href="https://rithub.dev/user/sign_up">Sign up free</a><a class="cta secondary" href="https://rithub.dev/repo/migrate?service_type=2">Import from GitHub</a>
<footer>Rithub — code hosting. More guides:
<a href="/assets/seo/github-alternative-for-teams.html">GitHub alternative for teams</a> ·
<a href="/assets/seo/github-account-flagged-move-repos.html">GitHub account flagged? move your repos</a> ·
<a href="/assets/seo/migrate-from-github-to-hosted-git.html">migrate from GitHub to hosted git</a> ·
<a href="/assets/seo/github-actions-alternative-hosted.html">GitHub Actions alternative, hosted</a> ·
<a href="/assets/seo/gitlab-alternative-hosted.html">GitLab alternative, hosted</a> ·
<a href="/assets/seo/bitbucket-alternative.html">Bitbucket alternative</a> ·
<a href="/assets/seo/private-git-hosting-free.html">private git hosting, free</a> ·
<a href="/assets/seo/github-flagged-emergency-checklist.html">GitHub flagged: emergency checklist</a> ·
<a href="/assets/seo/git-hosting-with-ci-runners.html">git hosting with built-in CI runners</a> ·
<a href="/assets/seo/github-to-rithub-migration-checklist.html">GitHub to Rithub migration checklist</a> ·
<a href="/assets/seo/rithub-vs-github.html">Rithub vs GitHub</a> ·
<a href="/assets/seo/move-from-github-5-minutes.html">move from GitHub in 5 minutes</a> ·
<a href="/assets/seo/is-github-down.html">is GitHub down right now?</a> ·
<a href="/assets/seo/code-not-used-for-ai-training.html">git hosting that doesn't train AI on your code</a> ·
<a href="/assets/seo/github-copilot-training-opt-out.html">opt out of GitHub Copilot training</a> ·
<a href="/assets/seo/github-down-alternative.html">alternative to use when GitHub is down</a> ·
<a href="/assets/seo/github-per-seat-pricing-alternative.html">alternative to GitHub's per-seat pricing</a> ·
<a href="/assets/seo/gitlab-alternative-free-private-repos.html">GitLab alternative with free private repos</a> ·
<a href="/assets/seo/codeberg-alternative.html">Codeberg alternative</a> ·
<a href="/assets/seo/migrate-github-issues-and-pull-requests.html">migrate GitHub issues and pull requests</a> ·
<a href="/assets/seo/github-actions-minutes-ran-out.html">GitHub Actions minutes ran out</a> ·
<a href="/assets/seo/secure-hosted-github-actions-runners.html">securing hosted Actions runners</a> ·
<a href="/assets/seo/gitlab-vs-github-vs-rithub.html">GitLab vs GitHub vs Rithub</a> ·
<a href="/assets/seo/github-account-locked-out-2fa-recovery.html">locked out of GitHub by 2FA</a> ·
<a href="/assets/seo/github-lfs-storage-quota-exceeded.html">GitHub LFS storage quota exceeded</a> ·
<a href="/assets/seo/private-git-hosting-with-pull-requests.html">private git hosting with pull requests</a> ·
<a href="/assets/seo/github-packages-container-registry-storage-cost.html">GitHub Packages storage cost</a>.
</footer>
</body>
</html>