-
-
Notifications
You must be signed in to change notification settings - Fork 34
Feature: support detecting rate limit exceeded #80
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
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #80 +/- ##
===========================================
- Coverage 75.60% 35.22% -40.39%
===========================================
Files 541 2414 +1873
Lines 59462 124872 +65410
===========================================
- Hits 44957 43987 -970
- Misses 14505 80885 +66380
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
0ded6d5
to
4e57b95
Compare
Some references may be helpful, take a note here: |
@schelv i have made some changes to make the handle clearly. Could you please re-check this to ensure the handle is corrent? Thanks a lot. |
It seems the graphql rate limit is not handled. |
They give a HTTP 200 status code when you exceed that limit 🤦♂️ Maybe this? 😄
|
For graphql, according to the octokit throttling plugin, an error with |
Looks good! |
Don't worry about the reduced coverage, this is an imperfect test and is only used to ensure that it can run. |
I've added a
RateLimitExceededError
class.This exception provides the time you have to wait before retrying, which simplifies implementing rate limiting.