-
Notifications
You must be signed in to change notification settings - Fork 1
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
useBody
does not work on unenv
direct call
#8
Comments
Thanks for opening issue @farnabaz. Hmm not sure but maybe we can try emulating |
This was referenced Oct 14, 2021
Hi, any plan to release proposed pull request? When can we wait for a fix? |
pi0
referenced
this issue
in unjs/h3
Nov 24, 2021
Added workaround in latest version of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure if here is the correct place to create an issue, feel to close/move it.
Using
h3
useBody with localCall (withunenv
) leads to forever waiting promise and as the cause API never return data. (req.on('end')
never calls https://github.com/unjs/h3/blob/main/src/utils/body.ts#L27)As a solution (since
unenv
setreq.body
), we can check forreq.body
insideuseBody
and use it as parsed body.The text was updated successfully, but these errors were encountered: