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

bun install/update behind proxy still does not work in windows (v1.1.27) #13877

Open
Leni-Vienne opened this issue Sep 11, 2024 · 1 comment
Open
Labels
bug Something isn't working needs triage

Comments

@Leni-Vienne
Copy link

Leni-Vienne commented Sep 11, 2024

What version of Bun is running?

1.1.27+267afa293

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

Be behind a company proxy. run bun install anypackage

What is the expected behavior?

No response

What do you see instead?

d:\Users\leni.vienne\Documents\testbun>bun install is-odd --verbose
bun add v1.1.27 (267afa29)
Enqueue package manifest for download: is-odd
  🔍 Resolving [1/1] [PackageManager] waiting for 1 tasks
  🔍 Resolving [1/1] [PackageManager] waiting for 1 tasks
  🔍 Resolving [1/1] [PackageManager] waiting for 1 tasks
  🔍 Resolving [1/1] [PackageManager] waiting for 1 tasks
[PackageManager] waiting for 1 tasks
  🔍 Resolving [1/1] [PackageManager] waiting for 1 tasks

....

🔍 Resolving [1/1] [PackageManager] waiting for 1 tasks
🔍 Resolving [1/1] [PackageManager] waiting for 1 tasks
🔍 is-odd [2/2] [PackageManager] waiting for 1 tasks
🔍 is-odd [2/2] [PackageManager] waiting for 1 tasks

and a few minutes later :

  🔍 is-odd [6/6] [PackageManager] waiting for 1 tasks
  🔍 is-odd [6/6] [PackageManager] waiting for 1 tasks
  🔍 is-odd [6/6] [PackageManager] waiting for 1 tasks
[PackageManager] waiting for 1 tasks
warn: ConnectionRefused downloading package manifest is-odd. Retry 1/5...

warn: ConnectionRefused downloading package manifest is-odd. Retry 2/5...

warn: ConnectionRefused downloading package manifest is-odd. Retry 3/5...

warn: ConnectionRefused downloading package manifest is-odd. Retry 4/5...

warn: ConnectionRefused downloading package manifest is-odd. Retry 5/5...

error: ConnectionRefused downloading package manifest is-odd
Clean lockfile: 1 packages - 1 packages in 116.6us

d:\Users\leni.vienne\Documents\testbun>

Additional information

I hoped this version of Bun would fix the issue but apparently I'm quite an isolated case. And I can't find much information on how to configure the proxy in itself. With NPM, my .npmrc contains 2 var "http_proxy" and "https_proxy" and that's enough to make it work. But what about Bun?

also need to mention that Bun successfully installs package inside Docker and WSL.

@Leni-Vienne Leni-Vienne added bug Something isn't working needs triage labels Sep 11, 2024
@Leni-Vienne
Copy link
Author

I just realised what was expected from me, thanks to Prisma's documentation. Contrary to npm and its npm config, with bun I need to add HTTP_PROXY as a Windows environment variable and restart the PC.

Took me 9 months to figure it out but now it works great <3

Maybe the documentation is lacking a bit in that regard, though I admit I never had to add a proxy that way before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant