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

Support API tokens to avoid API rate limit errors from GitHub #42

Open
fhunleth opened this issue Sep 3, 2024 · 0 comments
Open

Support API tokens to avoid API rate limit errors from GitHub #42

fhunleth opened this issue Sep 3, 2024 · 0 comments

Comments

@fhunleth
Copy link

fhunleth commented Sep 3, 2024

On machines that make a lot of GitHub requests, beamup can fail with this message:

$ beamup install elixir latest
Error: Failed fetching Github release latest from elixir-lang/elixir

Caused by:
   0: GitHub
   1: API rate limit exceeded for w.x.y.z. (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

Location:
    src/github.rs:185:29

To avoid this, it would be nice if beamup could be passed an API token via the GITHUB_TOKEN or GH_TOKEN environment variables (https://cli.github.com/manual/gh_help_environment).

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