multiple handlers @EventPattern() for the same event, with an interceptor and request scoped controller #10184
Closed
3 of 15 tasks
Labels
needs triage
This issue has not been looked into
Is there an existing issue for this?
Current behavior
When there are multiple handlers, listening to the same event (tested with Kafka), the expected behavior is that both handlers will be called (#6334).
But when an interceptor is also involved, and the controller is request scoped only one handler is being called.
The second one isn't being called - only its interceptor is being called
Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-8vgdfu?file=src%2Fapp.controller.ts,src%2Fmain.ts
Steps to reproduce
topic
Expected behavior
Expect that both of the handlers will be called
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
9.0.7
Packages versions
Node.js version
16.14.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: