Closed njwest closed 3 years ago
@njwest Thanks! I can definitely reproduce this. Looking into a solution.
Fixed in version 0.2.0. README file updated.
@whitepaperclip Confirming this fixes the compilation error, but on mix run
with the new deps I now get the following error (looks like GRPC.Stub.connect/2
called by OnFlow.Channel
):
23:01:07.162 [info] Application on_flow exited: OnFlow.Application.start(:normal, []) returned an error: shutdown: failed to start child: OnFlow.Channel
** (EXIT) an exception was raised:
** (FunctionClauseError) no function clause matching in GRPC.Stub.connect/2
(grpc 0.5.0-beta.1) lib/grpc/stub.ex:129: GRPC.Stub.connect(nil, [])
(on_flow 0.2.0) lib/on_flow/channel.ex:68: OnFlow.Channel.new_channel/0
(on_flow 0.2.0) lib/on_flow/channel.ex:28: OnFlow.Channel.init/1
(stdlib 3.13.2) gen_server.erl:417: :gen_server.init_it/2
(stdlib 3.13.2) gen_server.erl:385: :gen_server.init_it/6
(stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
** (Mix) Could not start application on_flow: OnFlow.Application.start(:normal, []) returned an error: shutdown: failed to start child: OnFlow.Channel
** (EXIT) an exception was raised:
** (FunctionClauseError) no function clause matching in GRPC.Stub.connect/2
(grpc 0.5.0-beta.1) lib/grpc/stub.ex:129: GRPC.Stub.connect(nil, [])
(on_flow 0.2.0) lib/on_flow/channel.ex:68: OnFlow.Channel.new_channel/0
(on_flow 0.2.0) lib/on_flow/channel.ex:28: OnFlow.Channel.init/1
(stdlib 3.13.2) gen_server.erl:417: :gen_server.init_it/2
(stdlib 3.13.2) gen_server.erl:385: :gen_server.init_it/6
(stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Updated the README file with the required configuration options to fix this.
Steps to generate project:
mix new my_app
mix.exs
as described in readme:mix deps.get
mix compile
Step four throws the following error:
Can run this repo as a standalone elixir app, though