Bun.server() occasionally throwing Maximum call stack size exceeded when using "development: false" #16988
Labels
bug
Something isn't working
bun:serve
Bun.serve and HTTP server
needs investigate
Needs to be investigated to find the root cause
What version of Bun is running?
1.2.2+c1708ea6a
What platform is your computer?
Linux 6.8.0-51-generic x86_64 x86_64 (distro: Ubuntu 24.04 LTS)
What steps can reproduce the bug?
index.ts
Everything else are just regular files from
bun init
What is the expected behavior?
The HTTP server to work as intended in both development and production modes
What do you see instead?
Development mode works perfectly fine, while
development: false
errors every request out withRangeError: Maximum call stack size exceeded
.Occasionally after a few restarts the server works alright (as demonstrated in the video), but after another restart it breaks again.
demo: https://youtu.be/pz5DpLAWT40
Additional information
No response
The text was updated successfully, but these errors were encountered: