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
ERR_STREAM_PREMATURE_CLOSE
on early destroy()
#2041
Comments
Hello, I am also encountering this |
Those errors were unhandled errors. The error is correct in this case. https://nodejs.org/api/stream.html#streamfinishedstream-options-callback
This is exactly what happens here.
This is a separate case where |
Describe the bug
Actual behavior
When a Got stream is destroyed before it's ended (which can happen with a read timeout), an
ERR_STREAM_PREMATURE_CLOSE
error is thrown.Digging through the git history, it seems to have been fixed in a previous version, but the fix was lost at some point.
Expected behavior
No error is thrown
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: