contributte / rabbitmq

🐰 RabbitMQ (AMQP, STOMP, MQTT) using BunnyPHP for Nette Framework (@nette).
https://contributte.org/packages/contributte/rabbitmq.html
MIT License
24 stars 25 forks source link

Broken pipe or closed connection #23

Closed whipsterCZ closed 5 years ago

whipsterCZ commented 5 years ago

exception Bunny\Exception\ClientException (Broken pipe or closed connection) is raised by calling

Gamee\RabbitMQ\Producer\ProducerFactory->getProducer(xxx)

CALLSTACK

.../web/vendor/bunny/bunny/src/Bunny/Client.php:75  source  Bunny\AbstractClient->read()

.../web/vendor/bunny/bunny/src/Bunny/ClientMethods.php:302  source  Bunny\Client->feedReadBuffer()

.../web/vendor/bunny/bunny/src/Bunny/Client.php:110 source  Bunny\AbstractClient->awaitConnectionTune()

.../gamee/nette-rabbitmq/src/Connection/Connection.php:64   source  Bunny\Client->connect()

.../src/Connection/ConnectionFactory.php:76 source  Gamee\RabbitMQ\Connection\Connection->__construct(arguments)

.../src/Connection/ConnectionFactory.php:46 source  Gamee\RabbitMQ\Connection\ConnectionFactory->create(arguments)

.../nette-rabbitmq/src/Exchange/ExchangeFactory.php:90  source  Gamee\RabbitMQ\Connection\ConnectionFactory->getConnection(arguments)

.../nette-rabbitmq/src/Exchange/ExchangeFactory.php:67  source  Gamee\RabbitMQ\Exchange\ExchangeFactory->create(arguments)

.../nette-rabbitmq/src/Producer/ProducerFactory.php:82  source  Gamee\RabbitMQ\Exchange\ExchangeFactory->getExchange(arguments)

.../nette-rabbitmq/src/Producer/ProducerFactory.php:58  source  Gamee\RabbitMQ\Producer\ProducerFactory->create(arguments)

.../web/vendor/gamee/nette-rabbitmq/src/Client.php:41   source  Gamee\RabbitMQ\Producer\ProducerFactory->getProducer(arguments)

.../cache/Nette.Configurator/Container_95a270975e.php:1700  source  Gamee\RabbitMQ\Client->getProducer(arguments)

1690:    
1691:        public function createServiceSecurity__userStorage(): Nette\Security\IUserStorage
1692:        {
1693:            $service = new Nette\Http\UserStorage($this->getService('session.session'));
1694:            return $service;
1695:        }
1696:    
1697:    
1698:        public function createServiceSegmentationQueue(): App\Model\SegmentationQueue
1699:        {
1700:            $service = new App\Model\SegmentationQueue($this->getService('rabbitmq.client')->getProducer('segmentationProducer'));
1701:            return $service;
1702:        }
1703:    
1704:    
.../web/vendor/nette/di/src/DI/Container.php:181    source  Container_95a270975e->createServiceSegmentationQueue()

.../web/vendor/nette/di/src/DI/Container.php:107    source  Nette\DI\Container->createService(arguments)

.../cache/Nette.Configurator/Container_95a270975e.php:469   source  Nette\DI\Container->getService(arguments)

.../web/vendor/nette/di/src/DI/Container.php:181    source  Container_95a270975e->createService__37_App_Presenters_ApiSegmentationPresenter()

.../Bridges/ApplicationDI/PresenterFactoryCallback.php:59   source  Nette\DI\Container->createService(arguments)

inner-code  Nette\Bridges\ApplicationDI\PresenterFactoryCallback->__invoke(arguments)

.../application/src/Application/PresenterFactory.php:49 source  call_user_func(arguments)

.../nette/application/src/Application/Application.php:140   source  Nette\Application\PresenterFactory->createPresenter(arguments)

.../nette/application/src/Application/Application.php:83    source  Nette\Application\Application->processRequest(arguments)

/application/web/www/index.php:6    source  Nette\Application\Application->run()
whipsterCZ commented 5 years ago

I have found that the problem was invalid user and password

but this exception is very very confusing...

paveljanda commented 5 years ago

But I guess that the exception is thrown from bunny library, is this correct? In that case, please look for more details in bunny/bunny