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
⚠ The body destructuring assignment is working normally running with Bun and without the Node adapter.
💡 Digging on the Web, I found this could be probably related to Fetch's Request body cloning. The destructuring assignment could be cloning the Request body without the proper .clone() call.
Have you try removing the node_modules and bun.lockb and try again yet?
Sure.
The text was updated successfully, but these errors were encountered:
What version of Elysia is running?
1.2.10
What platform is your computer?
Darwin 24.3.0 arm64 arm
What steps can reproduce the bug?
derive
and apost
. Use destructuring assignment with thebody
property from the Context.POST /bug
.What is the expected behavior?
The expected behavior is to return "test' in the HTTP response, using the code above.
What do you see instead?
The
onError
handler will be caught with the error "Response body object should not be disturbed or locked".Additional information
If you remove the destructuring assignment, the server responds normally.
⚠ The
body
destructuring assignment is working normally running with Bun and without the Node adapter.💡 Digging on the Web, I found this could be probably related to Fetch's Request body cloning. The destructuring assignment could be cloning the Request body without the proper
.clone()
call.Have you try removing the
node_modules
andbun.lockb
and try again yet?Sure.
The text was updated successfully, but these errors were encountered: