ssi-anik / amqp

php-amqplib wrapper that eases the consumption of RabbitMQ. A painless way of using RabbitMQ
https://packagist.org/packages/anik/amqp
MIT License
134 stars 23 forks source link

PhpAmqpLib\Exception\AMQPConnectionClosedException: Broken pipe or closed connection in .... #19

Closed nicopenaredondo closed 2 years ago

nicopenaredondo commented 3 years ago

Hi guys, anyone encountered this error message while using this package ?

ssi-anik commented 3 years ago

Seems like your RabbitMQ connection got disconnected somehow. when you encounter the issue, check if the mq was alive or not.

nicopenaredondo commented 3 years ago

@ssi-anik After several minutes of idling. Once ive tried to publish another message this error occurs.

nicopenaredondo commented 3 years ago

Any idea on how to check if it was alive in PHP ?

ssi-anik commented 3 years ago

I don't have any solution right now. But you can check https://github.com/php-amqplib/php-amqplib/issues/706 or google it. Also don't forget to share your solution here in case someone reaches here will find the solution too.