question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GitHub rate limiting issues

See original GitHub issue

We use the repo tool to do bulk operations on 140+ repositories. Because GitHub has rate limits, we start hitting them after only a few repo commands. Errors look something like this:

Error when processing PRs: cannot list open PRs: Error: Request failed with status code 403

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
chanseokohcommented, Feb 21, 2022

I stopped using the repo tool in favor of the “J-Team Control Center” sheet that @meltsufin created.

1reaction
bcoecommented, Jan 17, 2022

When running many requests in paralel, I’ve verified that people are bumping into an additional rate limit with GitHub (It does not have to do with your hourly quota, seems to be spam detection on GitHub’s part).

To address this problem, there are various dials and knobs you can turn in the library now, try:

NODE_DEBUG=repo repo [command] --delay=1000 --concurrency=2 --retry --title='.*some title.*'

This will only allow two connections in conjunction, and will add a 1s delay. It will also retry failed requests.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rate limits for GitHub Apps
GitHub Apps that are installed on an organization within an enterprise on GitHub.com are subject to a limit of 15,000 requests per hour...
Read more >
How to get the most out of GitHub API rate limits - Endor Labs
You can up the rate limit to 15,000 with an enterprise account, but the problem remains the same: If your service/program needs to...
Read more >
GitHub Error: Rate Limit Exceeded - Coder Diaries
When GitHub throws "Rate Limit Exceeded" error, the cause is exceeding the number of requests allowed per hour. Find out how to solve...
Read more >
Is there a way to increase the API Rate limit or to bypass it ...
I am developing a web application which needs to send a lot of HTTP requests to GitHub. After n number of ...
Read more >
GitHub API rate limiting - JavaScript - The freeCodeCamp Forum
The 60 requests per hour rate limit is for a non-authenticated IP address. If you're making more requests than that, I recommend setting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found