You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I'm getting this error while running my service, which uses op-rabbit:
[error] c.n.a.r.ConnectionActor - akka://application/user/rabbit/connection in Disconnected received Connect: can't connect to amqp:/myuser@{myhost:5671}:5672//, retrying in 10 seconds
and other times, when I run it, the ports are swapped:
[error] c.n.a.r.ConnectionActor - akka://application/user/rabbit/connection in Disconnected received Connect: can't connect to amqp://myuser@{myhost:5672}:5671//, retrying in 10 seconds
We don't even call setPort on the connectionFactory anywhere in the op-rabbit code. The port used is the one in curly braces. This is an area of the library that should be cleaned up. It's a side effect of an oddness with the upstream RabbitMQ Java library; there's not a mechanism to pass multiple ports in to connectionFactory as it was relatively retrofitted in.
So, the only reason I can think of for the nondeterminism is perhaps you have a nondeterministic load order for your config. Sometimes, reference.conf is probably superseding application.conf, and other times, vice versa.
Hi!
I'm getting this error while running my service, which uses op-rabbit:
and other times, when I run it, the ports are swapped:
(Using
myuser
andmyhost
as placeholders)This is my config:
These are the env vars I'm running it with:
export RABBIT_HOST=myhost RABBIT_PORT=5671 RABBIT_USERNAME=myuser RABBIT_PASSWORD=mypassword
What caught my eye was the 2 different ports in the error message, 5671 and 5672. How do I know which port is being used?
The text was updated successfully, but these errors were encountered: