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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] POST -> Premature close stream #2739
Comments
This needs a full example to reproduce. There can be many cases - likely there is something off in the Node.js stream implementation of arrow. |
Thanks! We're working on narrowing + extracting , starting with identifying if a version change of got/fastify/arrow, and then to more precise reproduction. If anything is sparking ideas meanwhile, would be appreciated. |
As a brief update:
Server: fastify.post('endpoint',
async function() {
stream = pump(..., function (error) { logger.info('done 1'); })
reply....compress(stream)
await(eos(stream))
logger.info('done 2')
}) Client: got.extend({'method': 'POST', 'timeout': 5, ...})('endpoint') Three interesting things in the above:
We're slowly whittling it down, including to a standalone test case, but surprising already. |
Can you make a runnable example? |
Yes, we need to get the hotfix out with the workaround (dropping |
@mcollina I think we're good to close this More of a writeup here: sindresorhus/got#1556 . There's a lingering |
馃悰 Bug Report
Cross-posting of an unclear
got
<- arrow stream ->fastify
bug: sindresorhus/got#1556Any pointers as we try to refine this one would be appreciated. While we finally have a user input that is deterministically reproducible with our broader system, it's going to be awhile to keep chiseling away at a tiny reproduction. Our guess is it is how we are handling sockets or
eos
(esp. given changes aroundeos
in the ecosystem), but there's a lot going on with the dependencies here so we're quite puzzled right now.Your Environment
The text was updated successfully, but these errors were encountered: