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

403 error while downloading the install script #2664

Closed
VoltaireNoir opened this issue Mar 12, 2025 · 4 comments · May be fixed by #2676
Closed

403 error while downloading the install script #2664

VoltaireNoir opened this issue Mar 12, 2025 · 4 comments · May be fixed by #2676

Comments

@VoltaireNoir
Copy link

I'm not sure if this is the appropriate place for this issue but running curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to DEST is returning the following error:

curl: (22) The requested URL returned error: 403

@ramybenaroya
Copy link

ramybenaroya commented Mar 12, 2025

This happens because you exceeded the Github api rate limit.
The shell script sends a request to Github api for retrieving the latest version of just.
You can easily verify that this is your issue by going to https://api.github.com/repos/casey/just/releases/latest
You will get this response in case you exceeded the rate limit:

{
  "message": "API rate limit exceeded for xx.xx.xx.xx. (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"
}

@casey
Copy link
Owner

casey commented Mar 12, 2025

Yah, unfortunately this is expected. On Github actions, try installing via some other method, like a package manager.

@casey casey closed this as completed Mar 12, 2025
@jpeeler
Copy link

jpeeler commented Mar 13, 2025

One thing that could potentially help here is if there was an official docker container to utilize. Just has frequent enough releases that installing alpine and using their packaging is not ideal (what might be the most up to date/lightest distro to use) ?

Related to #1497.

@casey
Copy link
Owner

casey commented Mar 13, 2025

I don't maintain any packages or distributions of just, aside from the official binary releases and the crates.io package. This is just for practical reasons, it adds a ton of work to each release, and I tend to let them go stale 😅

jpeeler added a commit to geneva-github/just that referenced this issue Mar 21, 2025

Verified

This commit was signed with the committer’s verified signature.
jpeeler Jeff Peeler
This adds support for utilizing the env var GITHUB_TOKEN if it exists
for both curl/wget download utils.

fixes casey#2664
jpeeler added a commit to geneva-github/just that referenced this issue Mar 24, 2025

Verified

This commit was signed with the committer’s verified signature.
jpeeler Jeff Peeler
This adds support for utilizing the env var GITHUB_TOKEN if it exists
for both curl/wget download utils. The token handling portion is removed
from debug output, which only includes writing the token to a temporary
file. Using a temp file ensures that the token is not shown during the
download both in debug output or ps output.

fixes casey#2664
jpeeler added a commit to geneva-github/just that referenced this issue Mar 27, 2025

Verified

This commit was signed with the committer’s verified signature.
jpeeler Jeff Peeler
This adds support for utilizing the env var GITHUB_TOKEN when the --auth
flag is passed for both curl/wget download utils. The command
invocations are not included in xtrace output so that the token is not
logged.

fixes casey#2664
jpeeler added a commit to geneva-github/just that referenced this issue Mar 27, 2025

Verified

This commit was signed with the committer’s verified signature.
jpeeler Jeff Peeler
This adds support for utilizing the env var GITHUB_TOKEN when the --auth
flag is passed for both curl/wget download utils. The command
invocations are not included in xtrace output so that the token is not
logged.

fixes casey#2664
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

Successfully merging a pull request may close this issue.

4 participants