-
Notifications
You must be signed in to change notification settings - Fork 121
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
Problems with getReadStream in updated version 2.8.1 #795
Comments
Hi @huineng, Thanks for submitting this issue, we are checking it and will get back to you ASAP. Thanks for your patience. Minh |
Hi @huineng, I just tried with this following code and it run without any error, can you check again and provide some more information about runtime environment (Node version, network condition)
Output:
We are looking for your response. Thankyou 😄 |
thanks for your fast answer. The difference here is that i'm using this in an express application as part of a rest api where users can download a file (hence the specific express errors) box is mostly used in rest file download context below is a small code (in typescript running ts-node) where i have the same problem node 18.13.0
thanks ps this is the console log of 2.8.1
|
Hi @huineng, I am getting back to you with a good news 😄, you have a mistake in your code, so the I hope fixing this in your code it will also close this issue. Best, |
And I got some more information about the error message
As the file has already been written into the response stream, if any errors are raised, it will trigger I hope this can help. Best, |
Ok, thank you very much .. it got me puzzled why it was working before The reject resolve piece i never paid really attention too (i think i copied it from somewhere) because it simply worked The update changed all of that and now i was faced with the incorrect reject resolve Many thanks |
Hi, this relates to the pull request leading to the latest version 2.8.1 #790
Since i installed this version (my previous version was 2.8.0) i have problems with the updated getReadStream function
The code below was until 2.8.1 perfectly running and downloading requested files
Since version 2.8.1 i can still download the file but now i also get unhandled rejections
I there something in the code above i need to change to support your changes , or is this a regression bug ?
thanks
The text was updated successfully, but these errors were encountered: