bschmitt / laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages
MIT License
268 stars 86 forks source link

@stream_socket_client false in consume #82

Closed oleh1231 closed 4 years ago

oleh1231 commented 4 years ago

I have project in one docker container and rabbitmq in another. In one project I publish and consume message. For consuming massages I use laravel command. Publish massage in controller. When I publish message into queue all work fine, but in the same project consumer show exception: "Error Connecting to server(0): php_network_getaddresses: getaddrinfo failed: Name does not resolve ". I configured connection in amqp.php Part of configuration: 'host' => 'rabbitmq', 'port' => 5672, 'username' => 'guest', 'password' => 'guest',

I use laravel 7.

I will be grateful for any help

stevenklar commented 4 years ago

Hi @oleh1231

Your error has nothing to do with this library. Make sure that both docker container are in the same docker network and the rabbitmq container is running under the name rabbtimq.

Best of luck!

oleh1231 commented 4 years ago

Hi @stevenklar I put containers in the same docker network and all working, thank you