New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API rate limit exceeded for installation #644
Comments
One thing I want to look into is to avoid using search in the first place, we can look up associated pull requests based on commits using GraphQL now, there is no need to use search for that. |
If you need any example failed pipeline you can look into this one. |
I got hit by this issue earlier today and have done some digging to see what is going on. So far there I've found 1 reason that is potentially causing retries to fail: https://github.com/semantic-release/github/blob/v9.0.4/lib/octokit.js#L25-L48 In the setup of the Octokit class, the retry config is passed in via {
// By default, Octokit does not retry on 404s.
// But we want to retry on 404s to account for replication lag.
doNotRetry: [400, 401, 403, 422],
} But in the I tried to write a test to cover off the rate limit scenario, but I also noticed that the |
Here is another failed pipeline, I saw in the logs that the search request was already limited. We use dependabot to keep deps up to date, resulting in a lot of small merge requests. Combined with not so regularly "manual" updates this results in a lot of issues having to be updated after release. But before at least some issues got updated, now it seems it doesn't even update one issue because searching for affecting issues already fails. Since logs vanish after some time, here is the request from the log
|
@Kampfmoehre your version of Upgrade your version of the package and I suspect it won't happen anymore (I've not experienced any issues since |
@dhensby thx, I'll give it a try. We don't have the plugin as extra dep though, was previously using the one that comes with semantic-release package so you might want to update the min version there. |
The |
I was hoping that rate limiting is now properly taken care of since we moved to Ocotkit via #487, but the error popped up again
https://github.com/semantic-release/commit-analyzer/actions/runs/5159013164/jobs/9293389281#step:6:126
We can tell from the user agent that the correct
@semantic-release/github
version was usedWhat's odd: the
request
option does not have aretries
key, it looks like it didn't attempt to retry at all:https://github.com/semantic-release/commit-analyzer/actions/runs/5159013164/jobs/9293389281#step:6:138
I will look into it. Sorry, I'm not sure why this is happening and rate limit errors are hard to reproduce reliably, it will take me a moment to get to the bottom of this. If anyone is inclined to help out, you are very welcome to
The text was updated successfully, but these errors were encountered: