Heya, so it’s been a while since the last time I touched phoenix and now I’m not finding my way when attempting to connect to a mongodb DB I have running in AWS. I’m defining the worker as:
{Mongo, [
[
database: "my_db_name",
hostname: "mongo://my-remote-db:27017",
username: "my_username",
password: "my_password",
ssl: true,
]
]},
and getting in return
** (Mix) Could not start application my_app: MyApp.Application.start(:normal, []) returned an error: shutdown: failed to start child: Mongo
** (EXIT) an exception was raised:
** (FunctionClauseError) no function clause matching in anonymous fn/1 in Keyword.take/2
(elixir 1.13.0) lib/keyword.ex:1131: anonymous fn([database: "my_db_name", hostname: "mongo://my-remote-db:27017", username: "my_username", password: "my_password", ssl: true]) in Keyword.take/2
(elixir 1.13.0) lib/keyword.ex:1131: Keyword."-take/2-lists^filter/1-0-"/2
(mongodb 0.5.1) lib/mongo/topology.ex:20: Mongo.Topology.start_link/2
(stdlib 3.15) supervisor.erl:414: :supervisor.do_start_child_i/3
(stdlib 3.15) supervisor.erl:400: :supervisor.do_start_child/2
(stdlib 3.15) supervisor.erl:384: anonymous fn/3 in :supervisor.start_children/2
(stdlib 3.15) supervisor.erl:1234: :supervisor.children_map/4
(stdlib 3.15) supervisor.erl:350: :supervisor.init_children/2
(stdlib 3.15) gen_server.erl:423: :gen_server.init_it/2
(stdlib 3.15) gen_server.erl:390: :gen_server.init_it/6
(stdlib 3.15) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
I have the dep installed. What am I missing?