jleigh

jleigh

Bolt.Sips issue with heroku deploy

Hi,

I have set up my app to use Bolt sips with my hosted neo4j db on graphene and it all works locally. I have been able to work with my hosted db in my dev environment, adding and accessing data. However, when I went to deploy to heroku i get the following error:

supervisors expect the child to be a module, a {module, arg} tuple or a map with the child specification, got: {:bolt_sips_pool, {:poolboy, :start_link, [[name: {:local, :bolt_sips_pool}, worker_module: Bolt.Sips.Connection, size: 5, max_overflow: 2, strategy: :fifo], [socket: :ssl, port: 24786, hostname: 'hobby-mnmmmgoodoangbke.dbs.graphenedb.com', retry_linear_backoff: [delay: 150, factor: 2, tries: 3], with_etls: false, max_overflow: 2, pool_size: 5, basic_auth: [username: \\"dev\\", password: \\"password\\"], url: \\"bolt://hobby-mnmmmgoodoangbke.dbs.graphenedb.com:24786\\", ssl: true, timeout: 15

my set up is as follows:
children in supervisor tree

def start(_type, _args) do
    import Supervisor.Spec
    children = [
      supervisor(MyApp.Repo, []),
      supervisor(MyAppWeb.Endpoint, []),
      {Bolt.Sips, Application.get_env(:bolt_sips, Bolt)}
    ]
   opts = [strategy: :one_for_one, name: MyApp.Supervisor]
   Supervisor.start_link(children, opts)
end

mix.exs:

def application do
   [
      mod: {MyApp.Application, []},
      extra_applications: [:logger, :runtime_tools, :bolt_sips]
    ]
 end

defp deps do
    [
       {:distillery, "~> 1.5.3"},
      {:phoenix, "~> 1.3.3"},
      {:phoenix_pubsub, "~> 1.0"},
      {:phoenix_ecto, "~> 3.2"},
      {:postgrex, ">= 0.0.0"},
      {:phoenix_html, "~> 2.10"},
      {:phoenix_live_reload, "~> 1.0", only: :dev},
      {:gettext, "~> 0.11"},
      {:cowboy, "~> 1.0"},
      {:elasticsearch, "~> 0.4.1"},
      {:elastix, ">= 0.0.0"},
      {:bolt_sips, "~> 0.4.12"},
      {:retry, "~> 0.8.0", override: true},
      {:httpoison, ">= 1.2.0", override: true},
      {:neo4j_sips, ">= 0.2.18"}
   ]
end

bolt sips config in config.exs:

config :bolt_sips, Bolt,
  basic_auth: [
    username: "dev", 
    password: System.get_env("GRAPHENEDB_TEST_PASS")
  ],
  url: System.get_env("GRAPHENEDB_TEST_URL"),
  ssl: true,
  timeout: 15_000

I also tried this in my supervisor tree.
worker(Bolt.Sips, [Application.get_env(:bolt_sips, Bolt)])
supervisor(Bolt.Sips, [Application.get_env(:bolt_sips, Bolt)])

in stead of
{Bolt.Sips, Application.get_env(:bolt_sips, Bolt)}

What am I missing here?

First Post!

dimitarvp

dimitarvp

This looks to be the problem. Why not use a direct module/function pair?

Where Next?

Popular in Questions Top

chokchit
** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 2733ms. You can configure how long re...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
vac
Hi, I’m quite new in Elixir and I’m trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and I...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

Other popular topics Top

malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 43657 311
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New

We're in Beta

About us Mission Statement