Skip to content
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

Ensure node file upload captures and throws errors #601

Merged
merged 1 commit into from
Dec 29, 2022

Conversation

stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented Dec 29, 2022

What does this PR do?

stream.write() must handle errors or else undefined behavior may occur. See https://nodejs.org/api/stream.html\#errors-while-writing for more info.

Test Plan

Manually tested by uploading a file bigger than 5MB and less than 5MB

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

Yes

stream.write() must handle errors or else undefined behavior may occur.
See https://nodejs.org/api/stream.html\#errors-while-writing for more
info.
@stnguyen90 stnguyen90 added the lang-node NodeJS templates label Dec 29, 2022
@stnguyen90 stnguyen90 requested a review from Meldiron December 29, 2022 02:40
@lohanidamodar lohanidamodar merged commit 3797839 into master Dec 29, 2022
@lohanidamodar lohanidamodar deleted the fix-45-uncaught-exception-on-upload branch December 29, 2022 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-node NodeJS templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants