-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Throttling seems to be disabled despite the claims in readme #2168
Comments
Hey @postatum I think this would be a documentation bug, throttling is handled in https://github.com/octokit/plugin-throttling.js Sample of setting it up
|
Additionally I don't think I agree that the docs are invalid, they mention that requests will retry once, code for that is here https://github.com/octokit/octokit.js/blob/v1.7.0/src/octokit.ts#L41 But that throttling needs to be done with the throttling plugin which is not included by default as you mentioned in the opening ticket. |
I see. Thanks for the answer! |
I've stumbled upon this recently and, after investigating a bit, it seems like that the code @Chocrates is referring to is not actually used. Also, it seems like that the throttling plugin was disabled by mistake in #2116. That PR bumps the version of the throttling plugin to include the fix for #2115, but it also strangely disables the plugin without any notice. |
It's been a while, but it looks like the TypeScript problems no longer persist, so I re-enabled the throttling plugin in #2224 |
🎉 This issue has been resolved in version 1.7.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Please avoid duplicates
Reproducible test case
Please select the environment(s) that are relevant to your bug report
Version
[email protected]
What happened?
Hi.
Note: I'm not sure if this is a documentation issue or really a bug.
The README mentions throttling in these pieces:
Overall these seem to say "throttling is enabled by default". Though, the first piece is less clear about that than the second one.
Despite the above, throttling seems to be disabled in code: https://github.com/octokit/octokit.js/blob/v1.7.0/src/octokit.ts#L13
PS. I started researching this after I hit rate limit and throttling didn't seem to work.
Would you be interested in contributing a fix?
The text was updated successfully, but these errors were encountered: