-
Notifications
You must be signed in to change notification settings - Fork 199
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
Contributors list stalling due to rate limiting (need helpful error message) #284
Comments
Here's one error at least I'm seeing:
|
So, just noting that if we do hit rate limits, maybe we could catch and handle that error and display a message saying like |
Aha, i see @Rishabh570 found the error returned, it's a 403 so we have to recognize it:
For now at least it's probably enough to just detect the error code being 403. I updated the title accordingly! |
I believe the request is generated here! community-toolbox/src/utils/getRepoContributors.js Lines 32 to 44 in 0368736
|
@jywarren @Rishabh570 can I work on this issue?? |
@somenath1435 Yeah, sure. You can work on it if you'd like to contribute. So, this file fetches contributors of a particular repository, the catch block throws the error which goes to fetchRepoContribsUtil.js (this might be the cause, I reckon it is not propagating the error further in the pipeline which is resulting in notification not being shown). This fetchRepoContribsUtil.js ideally should be throwing error to contribsUtil/main and which should eventually throw the error to community-toolbox.js which finally shows the error. Feel free to ask if you need any help 👍 |
@Rishabh570 How can I communicate with you? I can't find you in gitter |
Another short term fix could be to add a message like
|
Hi, I'm not sure if this is related to #112 but probably not -- I noticed that after seeing it work for a while, i seem to be in a stuck state where the contributors list is not loading:
Is it possible I'm getting rate limited or something? And if so, should I be getting a specific error saying so? @Rishabh570 i know you're a bit busy right now but wondering if you could ID the failure point so we can work on this a bit. Thanks!
The text was updated successfully, but these errors were encountered: