Exceeded a secondary rate limit. Please wait a few minutes before you try again. #56587
Replies: 6 comments 4 replies
-
@alkatrazz1993 the published gudiance is #dealing-with-secondary-rate-limits. |
Beta Was this translation helpful? Give feedback.
-
graphql helped me. |
Beta Was this translation helpful? Give feedback.
-
You can get this error message when doing a single search from the home page. Seems bugged as of 2024. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Same -- I did ONE search across all repos and got a rate limit error. No VPN, not even multiple GH tabs open. I am using AdBlock Ultimate, that's the only variable I can think of (and not logged in to my account). |
Beta Was this translation helpful? Give feedback.
-
I contacted the Github Support and they fixed that. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I collect metrics by number of (contributors, commits, releases, pullrequests, branches, issues, stargazers, subscribers, forks) by projects.
I'm making only GET requests to the github API with a token (5000 requests per hour).
All requests is unique by projects.
I'm doing multi-threaded only GET requests (simultaneous) in PHP with curl_multi - 10 simultaneous GET requests with an interval between each of 0.2 seconds.
Example my code with curl:
Example 10 simultaneous GET requests with an interval between each of 0.2 seconds. They are always unique by projects:
In total, I have 870 GET requests (unique url by project in the api that I access).
At the first processing of 870 GET requests, with the conditions described above, I receive the data successfully. After 5 minutes I start re-processing 870 GET requests and sometimes I get a 403 error in responce "You have exceeded a secondary rate limit. Please wait a few minutes before you try again." on multiple urls with header retry-after: 60 (in seconds).
This issue occurs when we access the github api on the server hosting provider GoDaddy (https://godaddy.com). When I access the github api locally on my computer, there is no problem of secondary restrictions never. We have no control over GoDaddy's server settings.
Please tell me, what interval of seconds it is allowed to make simultaneous unique GET requests, and how many simultaneous unique GET requests can be made so that this error does not occur?
Beta Was this translation helpful? Give feedback.
All reactions