Skip to content

fix: add error handling for multipart upload parsing#108

Closed
Priyanshu-u07 wants to merge 1 commit intometacall:masterfrom
Priyanshu-u07:error-handling-upload
Closed

fix: add error handling for multipart upload parsing#108
Priyanshu-u07 wants to merge 1 commit intometacall:masterfrom
Priyanshu-u07:error-handling-upload

Conversation

@Priyanshu-u07
Copy link
Contributor

Summary

When the FaaS received a malformed multipart upload due to the axios upgrade, busboy threw an unhandled error event which crashed the entire server process. Added proper error handling to fix this.

Related issue

Fixes #106

Notes for reviewers

This PR depends on the protocol PR (metacall/protocol#48). The protocol fix must be merged and published to npm first, otherwise the integration tests will continue to fail due to the FormData boundary mismatch

Signed-off-by: Priyanshu-u07 <connect.priyanshu8271@gmail.com>
@Priyanshu-u07
Copy link
Contributor Author

@HeeManSu
Could you please check when you get time?
Thanks!

@pkspyder007
Copy link

@Priyanshu-u07 tests are failing please can you check them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server crashes on file upload

2 participants