Closed alexeyinn closed 3 months ago
Solution:
Global Auth guard blocked it
Just added some like in guard:
async canActivate(context: ExecutionContext) {
if ((context.getType() as unknown as string) === 'rmq') {
return true;
}
...
And all works
I have two nestjs App. Both get config in app.module.ts:
First app has publisher:
And both app has subscribers:
But, message get only first app (from where, message sendings). If look up in RabbitMQ manager GUI, can see two channels (two apps). State of rist app is "idle", status of second app (who can't get a message) is "active" and not-reacived message in "anacked"
UPD:
If i try publish message and get him in that problem second app, i still don't get message in second app (just copy module,services, etc), but still get in first one! It's seems problem in that app. But why i can't receive message?
I try error handling in that app:
And what i got, when message to to exchange: