-
Notifications
You must be signed in to change notification settings - Fork 982
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
handler with async next() + bodyParser hangs requests #287
Comments
Pretty sure this is actually node that's biting you (as in your data is emitted to nowhere). Try this:
|
Perfect, thanks!
Maybe console.log a warning for this or at least a note in the docs about it under handlers? Thanks again! |
Yeah I think it's missing from the docs :\ |
meh. thanks for your work on restify =] |
+1 for adding to the docs! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using bodyParser after a handler that calls next() async will result in the req hanging.
If you change server.use(asyncHandler) to be syncHandler or remove/move bodyParser to the first server.use, the req will succeed; otherwise it will hang forever.
The text was updated successfully, but these errors were encountered: