Closed kdeberk closed 1 month ago
I realized my mistake shortly after posting this.
In the example I posted, the first object passed to Promise.all
is invalid.
In the real code on which I based the above one, I forgot to close the stream after writing it. Once the stream was closed, node no longer detected a stuck execution runtime and the program logged all the remaining strings.
To the maintainers, you can delete this issue if you want.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Checkboxes for prior research
Describe the bug
I have a tiny program that generates a stream with
PassThrough
and callsawait upload.done()
with that stream before anything is written to that stream. Theawait
never resolves and the program terminates without logging anything else.No exception is thrown. It seems as if the program gets stuck and then simply exits.
SDK version number
@aws-sdk/lib-storage@3.578.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v18.19.0
Reproduction Steps
Observed Behavior
The program terminates, only logged
Before
. It terminates with exit code 0.Expected Behavior
Other things being logged other than
Before
. If the upload fails, then I expect to see some exception with information about why it is invalid.Possible Solution
No response
Additional Information/Context
No response