-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fails to start on fresh installation #24
Comments
What version of Elixir, conduit, and conduit_amqp are you using? https://github.com/conduitframework/conduit/blob/95c67209aa/lib/conduit/broker.ex#L83 This get's passed to https://github.com/conduitframework/conduit_amqp/blob/master/lib/conduit_amqp.ex#L31-L37 The list of arguments here, are individual arguments. So a list of 4, is equivalent to four arguments. |
I'm on elixir v1.8.1, conduit ~> 0.12, conduit_amqp ~> 0.4. def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the Ecto repository
DataDigest.Repo,
# Start the endpoint when the application starts
DataDigestWeb.Endpoint,
# Starts a worker by calling: DataDigest.Worker.start_link(arg)
# {DataDigest.Worker, arg},
{DataDigestQueue.Broker, []}
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: DataDigest.Supervisor]
Supervisor.start_link(children, opts)
end |
Can you provide the specific versions your using: |
I suspect the version of |
Also, worth noting that there is an example app you can compare against: https://github.com/conduitframework/conduit_amqp_example |
Sure, |
Hello, I'm new to elixir but learning quickly. I followed the installation instructions to the letter, but I can't start my application once I append
{DataDigestQueue.Broker, []}
to thechildren
list inlib/data_digest/application.ex
.The error message when I run
mix phx.server
is:That suggests to me that
Conduit.Broker
is trying to startConduitAMQP
with the wrong number of arguments (1 keyword list instead of it spread out among 4 arguments). I can see where this is likely happening in the library, but am surprised that I don't see any other reports of this issue so I assume it's user error after all.Conduit.Broker
tries to start the adapter with one argConduitAMQP
expects four args (though so doesConduitSQS
)In the meantime, I'm able to get it work by modifying
deps/conduit_amqp/lib/conduit_amqp.ex
to add:The text was updated successfully, but these errors were encountered: