Closed D4no0 closed 3 years ago
What happens if you specify your parameters directly in the Broadway connection?
producer: [
module:
{BroadwayRabbitMQ.Producer,
queue: "my_queue",
connection: [
username: "user",
password: "password",
host: "192.168.0.10"
],
It seems to work, and to confirm the theory, now when I run:
AMQP.Connection.open()
I get the error:
{:error, :econnrefused}
Broadway connects fine to the rabbitmq.
These interactions are quite weird, I think it should be documented about the default AMQP configuration interaction with broadway.
Oh interesting 👀 I had no idea the amqp library has some kind of global configuration there? 🤔
versions: elixir 1.12 OTP 24.0 broadway_rabbitmq :0.7 broadway: 1.0 amqp: 2.1.2
Suppose we have the following amqp configuration:
With broadway producer configuration:
By default, when run with:
iex -S mix
, everything works as expected, no errors and side effects.When creating a release however, after starting it, in log keeps appearing the error:
I can confirm that there is a open connection, looking in rabbitmq management console.
When running a remote console with command:
However running:
Opens a connection successfully.
To my understanding this happens because
broadway
andamqp
try to use the same connection. The thing that bothers me is that in development it works without any problems, even the connection to production rabbitmq server over tls.Is this the case, or there is a bug?