-
Notifications
You must be signed in to change notification settings - Fork 580
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
Add authorization token to search request to get higher rate limit? #470
Comments
I have seen this too. In addition to the comments not being displayed, I recall seeing an error message there. Did you see an error message? If so, can you get a screenshot of it? I think there is more information when that happens in the developer console of the browser as well. |
I forgot to check the console. yes. there is a error message in the console. Indeed it's hitting rate limit. A 1 min reset period is set by utterances. Not sure internally what's the limit by github though.
https://docs.github.com/en/rest/reference/search#rate-limit
This is a little annoying. 30 requests per minute would be better. |
Limits are set by GitHub, only option is to sign in and you'll get a much higher rate limit. |
The reason why it's so annoying is that Sign In does not help. utterance is still using search api with no authentication. Thus, 10 refresh/minute limit.
This is after sign in. Could/should this be improved? |
Based on Lines 31 to 32 in c1897f2
All request except for the search request is passed with the authorization token. Is there a reason for that? |
I tried hijacking the request and modifying the header to include the token. It worked.
@jdanyow Could you explain why you choose not to pass token in search request? If possible, could you modify this? I can submit a PR if you allow. |
I recall there was a bug or an issue with the documentation where authenticated requests had a higher limit but also a higher reset interval which meant it took much longer to recover after exceeding limit. I've confirmed the rate limit reset interval is only a minute in both cases. A PR would be welcome, thanks! |
@jdanyow Could you merge the PR and deploy (to cloudflare workers, I guess)? Thank you. |
Is there a rate limit imposed by Github? If so, is there a way to minimize its effect?
I included this in my readthedoc doc site. I find that when I go through doc pages quickly for a while, the comment box stops appearing. After a while, it appears again.
The text was updated successfully, but these errors were encountered: