Hello.
I’m having random issues with Elixir and mix and erlang dependencies.
I have erlang-idna and hackney locally installed and references in deps.
The reason is that sometimes I get weird random error in idna, so I wanted to put some logging to find what’s going on.
Now other errors occur.
Usually after some code change when I run a script using mix run ./scripts/run.exs …
$ mix run ./scripts/run.exs http://www.smartwalls.cz
===> Compiling idna
===> Compiling hackney
Compiling 1 file (.ex)
18:12:11.600 [info] Application hackney exited: exited in: :hackney_app.start(:normal, [])
** (EXIT) an exception was raised:
** (MatchError) no match of right hand side value: {:error, {:shutdown, {:failed_to_start_child, :hackney_manager, {:EXIT, {:undef, [{:hackney_manager, :start_link, [], []}, {:supervisor, :do_start_child_i, 3, [file: 'supervisor.erl', line: 379]}, {:supervisor, :do_start_child, 2, [file: 'supervisor.erl', line: 365]}, {:supervisor, :"-start_children/2-fun-0-", 3, [file: 'supervisor.erl', line: 349]}, {:supervisor, :children_map, 4, [file: 'supervisor.erl', line: 1157]}, {:supervisor, :init_children, 2, [file: 'supervisor.erl', line: 315]}, {:gen_server, :init_it, 2, [file: 'gen_server.erl', line: 374]}, {:gen_server, :init_it, 6, [file: 'gen_server.erl', line: 342]}]}}}}}
(hackney) .../hackney/src/hackney_sup.erl:27: :hackney_sup.start_link/0
(kernel) application_master.erl:277: :application_master.start_it_old/4
Sometimes it throws that :hackney module is not available or some :hackney.process function is not defined, however when I run the mix again and or run mix compile, it starts to work without any code change.
Could this be some elixir or mix bug?