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 limit triggered when syncing a lot of repositories

See original GitHub issue

🐞 Describe the bug

When executing the repo-file-sync-action in my workflow, it shows as successfully having completed but the logs show multiple instances of the following error:

Error: You have triggered an abuse detection mechanism and have been temporarily blocked from content creation. Please retry your request again later.

Each time this error is reported, the PR fails to be created. For example:

Repository Info
Slug		: jellyfish-queue
Owner		: product-os
Https Url	: https://github.com/product-os/jellyfish-queue
Branch		: default
	
Locally syncing file(s) between source and target repository
Pushing changes to target repository
Creating new PR
Error: You have triggered an abuse detection mechanism and have been temporarily blocked from content creation. Please retry your request again later.
Error: HttpError: You have triggered an abuse detection mechanism and have been temporarily blocked from content creation. Please retry your request again later.

No PR is created on the jellyfish-queue repo.

📚 To Reproduce

Create a sync.yml file that should result in PRs being created on a lot (about 20) of repos.

💡 Expected behavior

No errors logged, all expected PRs successfully created.

🖼️ Screenshots

N/A

⚙️ Environment

  • Action version: 1.7.0

📋 Additional context

I’m not sure if this means the GitHub user associated with GH_PAT has been rate-limited or whether repo-file-sync-action or the workflow itself has been rate-limited?

Either way, I wonder if it would help to add a RATE_LIMIT option or similar that could be used to throttle the action’s requests to the GitHub API to mitigate this error?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
BetaHuhncommented, May 31, 2021

Great, I will merge it into master and release a new version!

1reaction
grahammccullochcommented, May 31, 2021

@BetaHuhn no problems running with the develop branch - although I can’t prove that it hit the rate limit and backed off 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rate limit exceeded during pull-request #126 - GitHub
I just verified your issue and there seems to be a limit to 10 notices per action run being shown in the GitHub...
Read more >
Dealing with GitHub's rate limiting · Issue #855 · peter-evans ...
We're using it to distribute and synchronize workflows across hundreds of repositories (libp2p, IPFS, Filecoin). When deploying an update, we create ...
Read more >
Rate limits for GitHub Apps
Installations that have more than 20 repositories receive another 50 requests per hour for each repository. The maximum rate limit for an installation...
Read more >
SyncRepositoryTask: rate limit to 1 per minute per project #9021
Different reasons (e.g. multiple push) makes our platform to trigger SyncRepositoryTask multiple times one next to the other for the same project.
Read more >
Template sync triggers GitHub abuse detection mechanism
Look into using OAuth instead of a token to up the rate limit from 1000 to 5000; Look into running the matrix jobs...
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