You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{sleep}from"bun";importElysiafrom"elysia";constapp=newElysia();app.get("/",async()=>{awaitsleep(20000);return"Hello World";});app.listen(3000);console.log(`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`);
http get http://localhost:3000
or
curl http://localhost:3000
What is the expected behavior?
'Hello world' after 20 seconds
What do you see instead?
http: error: ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) while doing a GET request to URL: http://localhost:3000/
curl: (52) Empty reply from server
Additional information
Bun v1.1.30
Using express in the same environment (with the code below) works as expected
import{sleep}from"bun";constexpress=require("express");constapp=express();app.get("/",async(req,res)=>{awaitsleep(20000);res.send("Hello World");});app.listen(3000);console.log(`🦊 Express is running at http://localhost:3000`);
Have you try removing the node_modules and bun.lockb and try again yet?
yes
The text was updated successfully, but these errors were encountered:
What version of Elysia is running?
1.1.24
What platform is your computer?
Darwin 24.0.0 arm64 arm
What steps can reproduce the bug?
or
What is the expected behavior?
'Hello world' after 20 seconds
What do you see instead?
Additional information
Bun v1.1.30
Using express in the same environment (with the code below) works as expected
Have you try removing the
node_modules
andbun.lockb
and try again yet?yes
The text was updated successfully, but these errors were encountered: