Open asmeurer opened 11 years ago
According to http://developer.github.com/v3/#rate-limiting, the limit is 60 per hour for unauthenticated requests and 5000 per hour for authenticated requests. So we just need to change all API requests to be authenticated if possible (i.e., if the user has already authenticated anyway, or if there is an OAuth token).
That's exactly right.
On Tue, Feb 12, 2013 at 10:19 AM, Aaron Meurer notifications@github.comwrote:
According to http://developer.github.com/v3/#rate-limiting, the limit is 60 per hour for unauthenticated requests and 5000 per hour for authenticated requests. So we just need to change all API requests to be authenticated if possible (i.e., if the user has already authenticated anyway, or if there is an OAuth token).
— Reply to this email directly or view it on GitHubhttps://github.com/sympy/sympy-bot/issues/147#issuecomment-13447102.
Also, let's include the "message" from the API in the "could not get pull request..." output.
GitHub must have lowered their API limit, because now doing something like `sympy-bot list gives something like
If I go to the api page in my browser (like https://api.github.com/repos/sympy/sympy/pulls/1702), it says
I guess the good news is that with the retrying algorithm, it will eventually work again for a headless tester.
But we should change sympy-bot list, and possibly other parts of the system to reduce the number of API calls.