oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.09k stars 2.67k forks source link

`bun upgrade`: HttpForbidden #10434

Open staabm opened 4 months ago

staabm commented 4 months ago

What version of Bun is running?

1.1.3

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

C:\Users\mstaab>bun --version
1.1.3

C:\Users\mstaab>bun upgrade
Bun upgrade failed with error: HTTPForbidden

Please upgrade manually:
  powershell -c 'irm bun.sh/install.ps1|iex'

C:\Users\mstaab>powershell -c 'irm bun.sh/install.ps1|iex'
Der Befehl "iex'" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

What is the expected behavior?

bun should not use http but https. plain http is completely blocked in our corporate infrastructure for data privacy reasons.

What do you see instead?

a error with a suggestion, which also doesn't work

Additional information

No response

haunt98 commented 4 months ago

Hi @staabm , you can try to set env GITHUB_TOKEN in ~/.bashrc, ~/.zshrc. The error is because GitHub ratelimit your requests.

See more in here:

staabm commented 4 months ago

Thanks. I am pretty sure its related to our firewall rules.

We reverted the super strict rule and allowed http again - it started working after that immediately