Closed corentingosselin closed 1 year ago
This issue is the same related here: https://github.com/nestjs/nest/issues/10562
duplicate.
@micalevisk pls share link to duplicate
@micalevisk pls share link to duplicate
here https://github.com/nestjs/nest/issues/10687#issuecomment-1346421869
Is there an existing issue for this?
Current behavior
I have a docker container which is running rabbitmq service, I have an api-gateway with clientproxy of rabbitmq And an authentification-service with message pattern to intercept the message.
Everything works fine until I stop the rabbitmq service and restart it.
I am using a dynamic module to register the client
Minimum reproduction code
https://complex-issue-not-reproductible-in-sandbox
Steps to reproduce
Steps to reproduce:
Run producer and consumer
Stop the rabbitmq service
From the producer we got this error message:
This is of course a normal behaviour
send a message to the consumer even if rabbitmq is stopped, we got this error:
Again, normal behaviour
restart the rabbitmq service I can see other service with consumer get connected back:
send message from producer to consumer again, you got this issue
I need to restart the api-gateway (producer) to be able to send message again. Important note, if you don't send a message while rabbitmq is stopped and then start it, you don't get any error and it works
Expected behavior
After the rabbitmq server is restarted we should be able to send message without connection refused error. I also tried with rabbitmq installed locally
Package
Other package
No response
NestJS version
9.2.0
Packages versions
Node.js version
No response
In which operating systems have you tested?
Other
No response