Closed ivashog closed 4 years ago
Please, provide a minimal repository which reproduces your issue.
@kamilmysliwiec, I created repository with bug from my project. See Reproducing bug section in repo README
I am sorry! This is my carelessness... I carefully studied error stack trace and find real error source - this is my own HttpExceptionFilter where i logging errors and passed object as trace parameter to Logger.error method! That was stupid enough... closes #3413
But maybe it makes sense add a some type check for trace
argument in error
method
inside nest/packages/common/services/logger.service.ts
?
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Bug Report
Current behavior
FilesInterceptor return UnhandledPromiseRejection when number of files exceed maxCount parameter. Error with stack trace:
Code:
Error disappears when i add to nest/packages/platform-express/multer/interceptors/files.interceptor.ts this line
Here is repository with reproducing the bug https://github.com/ivashog/nest-multer-bug
Expected behavior
Nestjs must handle error and return exception with LIMIT_FILE_COUNT MulterError
Environment