Closed sleberknight closed 1 month ago
Rate limit references:
In addition to printing a WARNING, if we detect we're at the rate limit, we should not make any more requests. The easiest thing to do is exit with an error and inform the user (it'll most likely be only me) about the problem, tell them the limits and when it resets, and tell them not to run it again until the rate limit resets.
Currently we print out (to stdout) the rate limit information (
X-RateLimit-Limit
,X-RateLimit-Remaining
, andX-RateLimit-Reset
) but don't take any action if, for example, the remaining number of requests is getting "low".I'm not sure what the "best" thing to do is if the remaining requests is "low", but a start might simply be to print a warning to the console, maybe something like:
We also need to define what "low" means.