gftea / amqprs

Async & Lock-free RabbitMQ Rust Client, Easy-to-use API
MIT License
214 stars 27 forks source link

Error running the publisher subsriber example. #73

Closed DavidSantacruzR closed 1 year ago

DavidSantacruzR commented 1 year ago

Hi, I am building an adapter to your library, but for that I need to fully understand your project. So, I was running your examples, but encountered a problem with the publisher subscriber example.

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NetworkError("network io error: Connection reset by peer (os error 54)")'

I am running rust 1.68 on macOs. Also, I am using the following command to start my rabbitMQ local server zsh rabbitmq-server

Should I need to specify something else when starting the rabbit server instance?

Thank you in advance, and have a nice day.

gftea commented 1 year ago

Have you started rabbitmq server locally?

DavidSantacruzR commented 1 year ago

That's correct.

gftea commented 1 year ago

the example use bitnami rabbitmq container, it connect to rabbitmq with below args let args = OpenConnectionArguments::new("localhost", 5672, "user", "bitnami"); so, I think you need to first check if you can connect to your local rabbitmq with above address and username/password

DavidSantacruzR commented 1 year ago

Thanks for the clarification.