You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not built into auto-pagination in octokit, so the entire set of pagination requests will be retried. Is there a better implementation?
The rate_limit.resets_in value does not seem like the right amount of time to wait. It is the entire duration till the next reset, even before I have consumed all requests. How do I obtain the time when I will be allowed to make the next request, aka the cool down time?
Is this something we should/can build into Octokit? I can give it a shot.
The text was updated successfully, but these errors were encountered:
Regarding rate limits, currently, the SDK doesn't have a great way to bubble that up to you. While the rate limit information is present in the HTTP headers of the request coming back from the REST API call, no logic or method calculates the "cool down time."
Given that we don't yet support generative models and do not have pagination implemented, we'd welcome any contributions to paging that you'd be providing. Please feel free to submit a PR with your thoughts about auto-pagination.
Coming from #1489 I am attempting to handle the rate limit as follows.
There are a few problems here.
rate_limit.resets_in
value does not seem like the right amount of time to wait. It is the entire duration till the next reset, even before I have consumed all requests. How do I obtain the time when I will be allowed to make the next request, aka the cool down time?The text was updated successfully, but these errors were encountered: