Open wodka opened 1 year ago
Same problem!
Same for me -_-
@wodka Could you provide a small repo (the same exact golevelup modules version) so that we can see what's going on?
I can try - problem is that this is only happening after running for a few days :/
I can try - problem is that this is only happening after running for a few days :/
I believe there must be something that the module router that we have read might be throwing in which case the connection might be killed and not re-connected but I'd like to see if at some point I can play around with your repro and kinda attempt to force one handler to go down. If at some point you can give us more context, that would be great but feel free to create the repro when you can
we have a similar setup and also experience similar issues, in our case:
this.amqpConnection.publish('EVENT_QUEUE', 'tx-created', {...});
throws an error
throw new Error('AMQP connection is not available');
/app/node_modules/@golevelup/nestjs-rabbitmq/lib/amqp/connection.js:192
this causes nestjs service to restart (if no catch handler exists) and seems like there has been a memory leak since then.
:/ trying to get it to reproduce I've now found one problem that was earlier not logged:
Error: Channel closed by server: 404 (NOT-FOUND)
-> the Channel exits and is filling and with a restart of the service process the entries...
Edit: not sure that error is really related, I keep trying
This issue is stale because it has been open for 30 days with no activity.
We have a class similar to this:
after a few days running then message-a-queue consumer disconnects! There is nothing logged and I have no clue how to debug this. To me it looks like only the later one reconnects.