bun
bun copied to clipboard
`bun upgrade`: HttpForbidden
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
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:
- https://github.com/oven-sh/bun/blob/main/docs/cli/bun-create.md#environment-variables
- https://github.com/oven-sh/bun/issues/9104
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