florinpatrascu / bolt_sips

Neo4j driver for Elixir
Apache License 2.0
256 stars 49 forks source link

Application exited: shutdown #74

Closed yoelfme closed 4 years ago

yoelfme commented 4 years ago

Environment

Current behavior

I just followed your Getting started guide, but when I try to do: DEBUG=1 iex -S mix I just got:

[info]  Application n4d exited: shutdown

My files are:

mix.exs

defp deps do
  [
    {:bolt_sips, "~> 2.0.0-rc"},
    {:jason, "~> 1.1"}
  ]
end

application.ex

def start(_type, _args) do
  # List all child processes to be supervised
  children = [
    # Starts a worker by calling: N4D.Worker.start_link(arg)
    # {N4D.Worker, arg}
    {Bolt.Sips, Application.get_env(:bolt_sips, Bolt)}
  ]

  # See https://hexdocs.pm/elixir/Supervisor.html
  # for other strategies and supported options
  opts = [strategy: :one_for_one, name: N4D.Supervisor]
  Supervisor.start_link(children, opts)
end

config.exs

config :bolt_sips, Bolt,
  url: "bolt://localhost:7687",
  pool_size: 10

I don't know, what I'm doing wrong, can someone help me, thanks!

dominique-vassard commented 4 years ago

Hi, What is your OTP version? Bolt Sips uses features available in OTP 21+ and the error you encountered resembles one I faced with my own package until I upgrade OTP to version 21 :)

yoelfme commented 4 years ago

thanks @dominique-vassard, I'll try with that, I'm seeing that my OTP version is 20.

florinpatrascu commented 4 years ago

@yoelfme - any feedback on this?

yoelfme commented 4 years ago

sorry @florinpatrascu, it worked with the changes that @dominique-vassard said, thanks!