Title: GitHub API auth limit (and a workaround) · Issue #586 · railsdiff/railsdiff · GitHub
Open Graph Title: GitHub API auth limit (and a workaround) · Issue #586 · railsdiff/railsdiff
X Title: GitHub API auth limit (and a workaround) · Issue #586 · railsdiff/railsdiff
Description: Hello, I'm aware of the reasons for why RailsDiff.org stops working if your IP exceeds the unauthenticated API limit of 60 requests an hour, as discussed in #582. A solution could be to optionally request a GitHub Personal Access Token f...
Open Graph Description: Hello, I'm aware of the reasons for why RailsDiff.org stops working if your IP exceeds the unauthenticated API limit of 60 requests an hour, as discussed in #582. A solution could be to optionally ...
X Description: Hello, I'm aware of the reasons for why RailsDiff.org stops working if your IP exceeds the unauthenticated API limit of 60 requests an hour, as discussed in #582. A solution could be to optiona...
Opengraph URL: https://github.com/railsdiff/railsdiff/issues/586
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"GitHub API auth limit (and a workaround)","articleBody":"Hello, I'm aware of the reasons for why RailsDiff.org stops working if your IP exceeds the unauthenticated API limit of 60 requests an hour, as discussed in #582. \n\nA solution could be to optionally request a GitHub [Personal Access Token](https://github.com/settings/tokens/new) from the user (only needs the `public_repo` scope ticked), store it in a browser session, and send this along with each request. \n\n## Request:\nPlease could the site be updated to show a warning if a 403 rate limit error is received from the API? \n\nAt present this is unhandled and just \"hangs\" with no feedback to the user that the issue is technically at their end, not with RailsDiff.\n\n## Workaround:\nThe workaround for anyone affected by this is to:\n\n1. Make a token (as above)\n2. Clone the repo, and follow the README installation instructions \n3. Edit `app/api/github.ts` and make the following change to add the `auth` option to the Octokit initialiser around line 12:\n\n```\nconst github_token = \"ghp_mytoken123123123123\";\nconst octokit = new Octokit({ auth: github_token });\n```\n\n4. Then run `ember serve --environment production` and visit http://localhost:4200/ - Using the `production` environment is the key undocumented bit as otherwise you'll only see dummy diff data.\n\nI apologise for not creating a proper PR with the necessary UI changes, etc, but I'm not familiar with Ember at present. I thought it would be helpful to document a (clunky) way to get around this issue in the meantime.\n\nThanks for making such a great tool!","author":{"url":"https://github.com/barrywoolgar","@type":"Person","name":"barrywoolgar"},"datePublished":"2025-01-20T16:32:13Z","url":"https://github.com/railsdiff/railsdiff/issues/586"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b4f83757-0cd5-1102-dc25-ab312bbde745 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF02:356FBF:2472A68:3161D0B:6B002CB3 |
| html-safe-nonce | ac208c3cb0225789aaac89d3e70d0589593d48a65ca6c66c36d7b4156d8ce96b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjAyOjM1NkZCRjoyNDcyQTY4OjMxNjFEMEI6NkIwMDJDQjMiLCJ2aXNpdG9yX2lkIjoiNTkxNjU5MzIzMTg4NTI0OTcxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e0df257b5a134bd104445e8d3a0baa8f28341a364c1cd03c48c934632aad60ca |
| hovercard-subject-tag | issue:2799810747 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/railsdiff/railsdiff/586/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f79e450447ccaf00d1995009bbde52de43afb731e0cc15c86ccf9a499a54525/railsdiff/railsdiff/issues/586 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f79e450447ccaf00d1995009bbde52de43afb731e0cc15c86ccf9a499a54525/railsdiff/railsdiff/issues/586 |
| og:image:alt | Hello, I'm aware of the reasons for why RailsDiff.org stops working if your IP exceeds the unauthenticated API limit of 60 requests an hour, as discussed in #582. A solution could be to optionally ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | barrywoolgar |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/railsdiff/railsdiff git https://github.com/railsdiff/railsdiff.git |
| octolytics-dimension-user_id | 10905927 |
| octolytics-dimension-user_login | railsdiff |
| octolytics-dimension-repository_id | 30484614 |
| octolytics-dimension-repository_nwo | railsdiff/railsdiff |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 30484614 |
| octolytics-dimension-repository_network_root_nwo | railsdiff/railsdiff |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width