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

Unhandled promise rejection warning #257

Conversation

PawelSuwinski
Copy link
Contributor

Hi, I think that catching writePromise rejection on busboy finish event seems too late, because it happens at dataHandler(data) on busboy data event and already in this point promise should have its reject callback in case of stream write errors.

The best solution on writePromise rejection would be stop fetching rest of the request to not waste the bandwidth, similar like it is done in closeConnection() and then call next(err) error handler (not next() middleware`, but for now I don't get a well-functioning solution for that just this one.

@PawelSuwinski
Copy link
Contributor Author

PawelSuwinski commented Nov 4, 2020

Closes #256

@richardgirges
Copy link
Owner

Thank you!

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.

None yet

2 participants