Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kbenv list remote does not show rate limit error, when github api rate limit is reached #44

Open
EHJ-52n opened this issue Jul 31, 2023 · 0 comments

Comments

@EHJ-52n
Copy link

EHJ-52n commented Jul 31, 2023

When the GitHub API rate limit is reached, the command kbenv list remote returns a not enduser friendly error message:

~ kbenv list remote
An error was detected, exiting: json: cannot unmarshal object into Go value of type []versions.Page
~ curl --silent -L https://api.github.com/rate_limit | jq -Mr '.rate'
{
  "limit": 60,
  "remaining": 0,
  "reset": 1690816864,
  "used": 60,
  "resource": "core"
}
~

Please improve the error message including a translation of the reset timestamp, hence the user knows, when this command will return useful information again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant