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
Many APIs use clj-github.client-utils/fetch-body! to make the Request and ignoring HTTP headers information. It is possible to change this function or create another one, but it will break a lot of things. We could also change the clj-github.client-utils/fetch-body! to be a multi-arity functions and receive a logger and log the RateLimit data automatically, but I don't know if it is good for the lib.
There is a limit for API requests that depends on many factors.
For every API request, Github returns the following three data in HTTP headers :
X-RateLimit-Limit
The maximum number of requests you're permitted to make per hour.X-RateLimit-Remaining
The number of requests remaining in the current rate limit window.X-RateLimit-Reset
The time at which the current rate limit window resets in UTC epoch seconds.It should be nice if the lib could allow applications to log this information
Reference: https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting
The text was updated successfully, but these errors were encountered: