Fastify Websocket with @fastify/vite #19907
Labels
bug
Something isn't working
bun --hot
ecosystem
Something that relates to package or framework compatibility
regression
web:websocket
Uh oh!
There was an error while loading. Please reload this page.
What version of Bun is running?
1.2.14
What platform is your computer?
Darwin 24.5.0 arm64 arm
What steps can reproduce the bug?
Following the fix in #18685, a new warning appears when using Fastify with both @fastify/websocket and @fastify/vite.
Reproduction Steps:
bun dev
localhost:3000
Notes:
Suspected Cause
This appears to be a side effect of recent changes to Bun’s HTTP upgrade handling or module caching related to WebSocket hot reload behavior. Possibly, @fastify/vite is trying to serve a response to an already handled WebSocket upgrade route.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
Source code for reproduction:
https://github.com/ShaharIlany/bun-fastify-bug
The text was updated successfully, but these errors were encountered: