Skip to content

coti-z/unhandledRejection

Repository files navigation

Reproduction: Unhandled Promise Rejection in forwardRef with REQUEST scope

Reproduce

npm install
npm run start:dev
curl http://localhost:3000/

Result

aService: AService {}
serviceB: undefined
checking B: undefined
(node:XXXX) UnhandledPromiseRejectionWarning: Error: BService initialization failed
    at async Injector.resolveComponentHost (...)
  • BService throws in constructor
  • AService receives undefined (not an error)
  • Request returns ok instead of failing

About

nestjs reproduction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors