alanxz / SimpleAmqpClient

Simple C++ Interface to rabbitmq-c
MIT License
404 stars 214 forks source link

On the issue of creating channels #332

Closed bbj767475974 closed 1 year ago

bbj767475974 commented 1 year ago

Hello, may I ask why creating a channel using Create failed with a local IP address? Localhost can be created, and the following figure shows the error reported.

bbj767475974 commented 1 year ago

2e7064cca57202fc86890f8209be030 l'lll

alanxz commented 1 year ago

AccessRefusedException means that the client hasn't correctly authenticated with the broker. Check to make sure you're supplying the correct username/password.

bbj767475974 commented 1 year ago

I only filled in the local IP address and also reported this error, such as 188.100.1.85. The IP address has been configured on my computer

bbj767475974 commented 1 year ago

But localhost will not report this error

alanxz commented 1 year ago

The RabbitMQ broker allows configuration of auth based on which IP it listens on, its possible that the user is only configured on one host. Check the broker logs for details on the login failures.

bbj767475974 commented 1 year ago

Hello, I have checked and modified the log file regarding the above issue. The main reason is the issue with creating users. What should I do if I want to use the local IP address as the server address? I have currently modified the config file, which is normal after restarting the service, but I cannot access it through a browser. Why is this?

bbj767475974 commented 1 year ago

f5ebe48b8739e9cec1d2e9b2dc65417