Currently, when being rate limited by the Github API, mise displays a fairly generic error message.
As a user, I have to manually debug it to figure out what happened.
It would be good if mise would show a more detailed error message.
Either a custom error message like API request has been rate limited by Github, or display the information from the API response.
That would make it easier and faster to understand why the command failed.
The documentation says:
If you exceed your primary rate limit, you will receive a 403 or 429 response, and the x-ratelimit-remaining header will be 0.
{"message":"API rate limit exceeded for z.x.c.v. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}
Description
Currently, when being rate limited by the Github API, mise displays a fairly generic error message. As a user, I have to manually debug it to figure out what happened.
It would be good if mise would show a more detailed error message. Either a custom error message like
API request has been rate limited by Github
, or display the information from the API response. That would make it easier and faster to understand why the command failed.The documentation says:
https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#exceeding-the-rate-limit
So I believe that should make it clear how to implement this, in order to handle this error.
Details
When doing self-update, I get the following result:
Apparently, this is because the API request has been rate limited.
When calling this URL manually, it gives this response:
Headers:
Body:
(Where
z.x.c.v
is my numeric IP address).