fix: When I use UploadedFile I always get Can't set headers after they are sent. #892
Labels
status: needs triage
Issues which needs to be reproduced to be verified report.
type: fix
Issues describing a broken feature.
Description
I use a UploadedFile decorator and multer to store the file on disk. But I always get the error:
The response is received on the client with the correct response. So how do I find out what is causing this headers to be send?
I do not have a custom error handler, but still tried tried to disable the default error handler, it did not help.
All other endpoints work fine, only this upload handler gives me this error.
Minimal code-snippet showcasing the problem
Expected behavior
No error
Actual behavior
Seeing the following error:
The text was updated successfully, but these errors were encountered: