-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open Vhost failed should return the real error which send from server. #315
base: master
Are you sure you want to change the base?
Conversation
This is a breaking API change and this client is ridiculously conservative about those. However, there is only code path for opening a connection. Let's wait and see what others think. |
I've also been bitten by debugging this error. The error API for connection handshake doesn't easily carry the stage of the handshake along with the reason when using package level errors. There are a few uses of comparing ErrVhost in the wild: https://github.com/search?q=ErrVhost If the error protocol were changed - would you be willing to create PRs to on the repositories affected? Alternatively, for usability, what do you think about improving the error message to include max-connection possibility and to investigate the server logs for the actual error? |
The vast majority of the |
Ok, until we upgrade the call-sites, let's include this as a possible reason to the error string of the ErrVhost variable. |
Hey folks, I'm posting this on behalf of the core team. As you have noticed, this client hasn't seen a lot of activity recently. Because this client has a long tradition of "no breaking public API changes", certain We would like to thank @streadway Team RabbitMQ has adopted a "hard fork" of this client What do we mean by "hard fork" and what does it mean for you? The entire history of the project What does change is that this new fork will accept reasonable breaking API changes according If your PR hasn't been accepted or reviewed, you are welcome to re-submit it for Note that it is a high season for holidays in some parts of the world, so we may be slower Thank you for using RabbitMQ and contributing to this client. On behalf of the RabbitMQ core team, |
In the latest version of RabbitMQ, I set the
max-connections
limitation for a vhost. When I openingseveral connections that try to connect to RabbitMQ. The client shows an
ErrVhost
error. However, I expect to receive a similar error where send from server like this:Exception (530) Reason: "NOT_ALLOWED - access to vhost 'test_vhost' refused for user 'guest': connection limit (2) is reached"
Therefore, I think it is reasonable to return the original error where send from server.