-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 dev server fails with ConnectionClosed: The socket connection was closed unexpectedly #5363
Comments
I've the same issue. MacOS/M1 with Bun 1.0.1 What steps can reproduce the bug?
The unmodified next-app template fails. Error
|
This was resolved for me today with the latest release, possibly fixed by #5126? edit: I'm on MacOS Intel, not ARM, but I was experiencing this exact issue prior to updating. I ran the dev server without the |
I ran into this error too on my nextjs project. Will check if it's fixed with latest release EDIT: Ran this on bun 1.0.2. When I run
|
Can anyone running into this issue try to use: That seems to have fixed the issue for me, but i can't find documentation on the |
I use |
Running When you include the So, the |
Looks like it's not only a macos-Issue: #5494 |
Update: I just tested with Bun1.0.2. It looks better but now I get a "error: Failed to construct 'Request': signal is not of type AbortSignal." |
Same here. I think it may be connected to using App Router, since i dont get that error using old "Pages" |
I just updated to 1.0.2 and the original error message is gone but I'm seeing the same error as mentioned above |
Yeah getting this on M2 Mac Pro too. |
Getting this on both linux and WSL, so i don't think it's platform specific. @PawelDuplaga mentioned that it's related to the app router and I can confirm that I am also using the App router and facing this issue. |
I'm getting the same issue trying to spin up a proxy server using |
Still getting this issue with the |
I'm getting this error when I use hono.js on M1 Mac. |
I want to add that this error is in Bun version 1.0.28 and not only related to localhost or dev mode. Minimal example: // test.js
fetch("https://www.saferpay.com/api/health/1", { verbose: true }).catch(console.error) bun run --bun test.js Stdout:
|
recently facing this same issue repeatedly. bun v1.0.29. after the error the server dies! |
rolled to 1.0.20 and issue is not there |
I'm seeing this issue on bun |
This issue is active for |
Still seeing this issue on macOS M1, bun 1.1.20 |
presents in modern clouds |
I have this issue too in bun v 1.1.20. using axios to make requests particularly via proxy
|
This error still occurs in the latest versions. |
If you continue to run into this issue, please open a new issue and include a reproduction Sockets closing can have many different unrelated causes (the server disconnected, received invalid data, sent invalid data, various edgecases involving TLS). This issue was originally closed after addressing an issue with TLS client renegotiation from #10166 and #5363 (comment):
|
What version of Bun is running?
1.0.1
What platform is your computer?
Darwin 23.0.0 arm64 arm
What steps can reproduce the bug?
I have a small project with NextJS and I am testing Bun. When starting the
dev
server withbun --bun run dev
, I have afetch()
call to fetch some data on the home page that fails.What is the expected behavior?
The dev server should start as it does with
yarn
andnpm
and load the home page with the data fetched populated in the fields.What do you see instead?
The port in the path is always different and fetch doesn't allow
verbose: true
in the second argumentAdditional information
This is the snippet that is making the call to an API in the project that just returns a JSON with data. It works with
npm
andyarn
The text was updated successfully, but these errors were encountered: