-
Notifications
You must be signed in to change notification settings - Fork 186
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
if res.end is called with an incomplete JSON body, server crashes #112
Comments
Thanks for the great test case! It blows up on the However, one would also expect (I presume) in your test case that the logger would log |
Fix released in v1.4.1. With this fix, your test case would log only My concerns aside, if logging the streamed response body is something you'd really like, feel free to open a separate issue for that. |
See https://gist.github.com/zigg/06e891e55f22b2d0afebaaf6fc245408
The example may seem a bit contrived, but I've observed the behavior using express-winston with Loopback, possibly due to streaming behavior from that framework.
I'd be happy to make a PR to address this, but it might be simple enough to just fix.
The text was updated successfully, but these errors were encountered: