-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
rabbitmnq: Can't declare binding with routing key #5346
Comments
Hi @oneiros-de I can see that you the queue and binding will not work for you because the exchange already belongs to a vhost. So, to make it work everything should be in the vhost. As a workaround you can run |
I've changed the code to lowercase the constants:
but it still fails:
I'm following the pattern from |
Not sure if you read my previous comment or it was not clear enough
This is the reason why the second attempt using
If the I've submitted #5348 in order to add useful methods to deal with this in the future. |
Ah, thanks. Yes, I overlooked this.
Thanks! |
the new methods to create exchange and binding were released with 1.17.2 |
Just for others who might come upon this issue when searching for the same "Could not execute command" error: I ran into what had appeared to be this same issue when using |
I'm using
org.testcontainers:rabbitmq
1.17.1 with Spring Boot 2.6.7.I'm trying to create a test container with a binding with a routing key:
This fails. The (extensive) log shows an error:
When I use
this fails with
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered: