setup-bun icon indicating copy to clipboard operation
setup-bun copied to clipboard

403 while Downloading a new version of Bun

Open networkhermit opened this issue 11 months ago • 5 comments

Run oven-sh/setup-bun@v1
Downloading a new version of Bun: https://bun.sh/download/latest/linux/x64?avx2=true&profile=false
Error: Error: Unexpected HTTP response: 403

Does https://bun.sh/download has some kind of WAF or rate limiting mechanism? When I manually run curl on the runner it displayed <title>Just a moment...</title> but I coudn't see the reason.

Also I can confirm that directly curl https://github.com/oven-sh/bun/releases/download/bun-v1.0.33/bun-linux-x64-baseline.zip is ok.

P.S. We use self-hosted runners and utilize the cloudflare WARP, but I think it shouldn't be a problem to setup bun.

networkhermit avatar Mar 22 '24 03:03 networkhermit

i get the same but with a 404 and only on our windows build environment

keeganstothert avatar Mar 27 '24 23:03 keeganstothert

i get the same but with a 404 and only on our windows build environment

https://github.com/oven-sh/setup-bun/pull/72

xhyrom avatar Apr 02 '24 08:04 xhyrom

@networkhermit are you still experiencing this issue? If you want to try curl, don't forget to add -L as the API redirects directly to github:

curl -O -L "https://bun.sh/download/latest/linux/x64?avx2=true&profile=false"

xhyrom avatar Apr 03 '24 12:04 xhyrom

@networkhermit are you still experiencing this issue? If you want to try curl, don't forget to add -L as the API redirects directly to github:

curl -O -L "https://bun.sh/download/latest/linux/x64?avx2=true&profile=false"

No. We switched to another ci runner group since the 403 error.

I know the -L flag of curl, but instead of 302 it got 403 from cloudflare at that time, meaning it could never redirect to github.

We will try to use the previous runner group in the the next few weeks. I will report here once the issue happens again.

networkhermit avatar Apr 03 '24 12:04 networkhermit

@networkhermit are you still experiencing this issue? If you want to try curl, don't forget to add -L as the API redirects directly to github:

curl -O -L "https://bun.sh/download/latest/linux/x64?avx2=true&profile=false"

No. We switched to another ci runner group since the 403 error.

I know the -L flag of curl, but instead of 302 it got 403 from cloudflare at that time, meaning it could never redirect to github.

We will try to use the previous runner group in the the next few weeks. I will report here once the issue happens again.

Okay, great!

xhyrom avatar Apr 03 '24 20:04 xhyrom

Are you still experiencing this issue?

xhyrom avatar May 07 '24 23:05 xhyrom

No. I think this issue can be closed.

networkhermit avatar May 07 '24 23:05 networkhermit