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

fix(core): patch body.errorLogger undefined on express-adapter.ts #13866

Closed
wants to merge 1 commit into from

Conversation

ryanhs
Copy link

@ryanhs ryanhs commented Aug 7, 2024

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

TypeError: body.errorLogger is not a function
at /app/node_modules/@nestjs/platform-express/adapters/express-adapter.js:51:26
at node:internal/util:464:12
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

What is the new behavior?

correct behaviour using errorHandler from StreamableFile

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@coveralls
Copy link

Pull Request Test Coverage Report for Build 77714cdf-f9ba-490c-aaf7-b5662c25e04d

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.208%

Totals Coverage Status
Change from base Build 875294d7-6fa4-40f6-9340-1a6d68f34376: 0.0%
Covered Lines: 6745
Relevant Lines: 7315

💛 - Coveralls

@micalevisk
Copy link
Member

@ryanhs can you please share a minimum reproduction of that bug?

@jmcdo29
Copy link
Member

jmcdo29 commented Aug 19, 2024

I would need a reproduction of the bug to be able to approve this. The only time this code should be called is if, for whatever reason, the errorHandler of the StreamableFile fails and there needs to be a log of it happening

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

Successfully merging this pull request may close these issues.

5 participants