How to debug channel close on NACKS RECEIVED #1466
-
Hi there, we're sometimes experiencing errors like:
logged by This seems to be originating from here, thus I'm posting it in the We're using RabbitMQ via Spring AMQP. The brokers logs do not show anything. Anyone here that is able to tell us why this error might arise and/or how we might be able to debug its origins? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The client code (application or Spring AMQP) uses You may increase the timeout if it is really low (e.g. less than 1 second, but that may depend on the context) or find any relevant information on the server. The application could also retry publishing unconfirmed messages. |
Beta Was this translation helpful? Give feedback.
The client code (application or Spring AMQP) uses
Channel#waitForConfirmsOrDie(long)
, when the timeout is reached the library closes the channel and throws this exception. The timeout may be too short or there may be something up on the server side that makes publish confirms cannot be sent to the client.You may increase the timeout if it is really low (e.g. less than 1 second, but that may depend on the context) or find any relevant information on the server.
The application could also retry publishing unconfirmed messages.