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
If you use Octokit in a long running piece of software with infrequent API calls, the rate_limit Client method can return stale/invalid date.
I've taken a quick glance at the code and it looks like the rate limit information is pulled from the headers of the last request. After some time the information itself becomes stale, and eventually the resets_in field in the Struct becomes a negative number. This happens because time has progressed past the resets_at time, yet the information hasn't been refreshed.
Is there a reason why the /rate_limit API endpoint isn't used?
The text was updated successfully, but these errors were encountered:
If you use Octokit in a long running piece of software with infrequent API calls, the
rate_limit
Client method can return stale/invalid date.I've taken a quick glance at the code and it looks like the rate limit information is pulled from the headers of the last request. After some time the information itself becomes stale, and eventually the
resets_in
field in the Struct becomes a negative number. This happens because time has progressed past theresets_at
time, yet the information hasn't been refreshed.Is there a reason why the
/rate_limit
API endpoint isn't used?The text was updated successfully, but these errors were encountered: