Why do my RabbitMQ channels keep closing?

An AMQP channel is closed on a channel error. Two common things that can cause a channel error:

  • Trying to publish a message to an exchange that doesn’t exist
  • Trying to publish a message with the immediate flag set that doesn’t have a queue with an active consumer set

I would look into setting up a ShutdownListener on the channel you’re trying to use to publish a message using the addShutdownListener() to catch the shutdown event and look at what caused it.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)