didier
Hi there!
I have a problem with Bolt.Sips and Phoenix. I configured my phoenix app for Bolt as explained in the github page of Bolt.sips but I have the following error while invoking Bolt.Sips.conn : (MatchError) no match of right hand side value:
It’s like the config file is not taken into account. I don’t understand what’s happening. If someone can help me, it would be fantastic! ![]()
Here is my mix.ex file :
def application do
[mod: {ElmDbz, []},
applications: [:phoenix, :phoenix_html, :bolt_sips, :cowboy, :logger, :gettext]]
end
defp deps do
[{:phoenix, "~> 1.1.6"},
{:phoenix_html, "~> 2.4"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.9"},
{:cowboy, "~> 1.0"},
{:bolt_sips, "~>0.1"},
{:boltex, github: "florinpatrascu/boltex"}]
end
And the config.ex file :
config :bolt_sips, Bolt,
hostname: 'localhost',
basic_auth: [username: "neo4j", password: "***"]
And the controller :
defmodule ElmDbz.CharacterController do
use ElmDbz.Web, :controller
alias Bolt.Sips, as: Bolt
def index(conn, _params) do
cypher = """
MATCH (p:Person) RETURN p as character
"""
data = Bolt.query!(Bolt.conn, cypher)
render(conn, "index.json", characters: data)
end
end
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Just published claude-code-elixir, a plugin marketplace for Claude Code with Elixir support. These are the plugins I’ve been using for my...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 3- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
NobbZ
Is it a typo or is your config file called
config.ex? It should beconfig.exs.Also I do not know how the engine does handle the newlines before and after your query, please try to use a single-double-quoted string instead.
PS: I never used that package nor do I even know what it does, nor did I use neo4j.
didier
Yes, it’s a typo, sorry. It’s config.exs. I just look at github’s author : GitHub - florinpatrascu/bolt_movies_elixir_phoenix: A very simple web application using Neo4j with Elixir, Phoenix, and: Bolt.Sips; an Elixir driver for Neo4j’s Bolt newest network protocol. · GitHub. He is querying with multiple lines, so I did the same.
I’m pretty sure this is a configuration problem because when I use Bolt.Sips in iex, it works :
iex> {:ok, _p} = Bolt.Sips.start_link(host: “localhost”)
iex> conn = Bolt.Sips.conn
iex> Bolt.Sips.query!(conn, “MATCH (p:Person) RETURN p as character”)
NobbZ
First thing I stumble upon is starting the worker in the supervisor via
worker(Bolt.Sips, [Application.get_env(:bolt_sips, Bolt)]), he does read the configuration manually and pass it to the worker.You are not showing how you do handle your supervisor, so I assume you are not even having the worker in your supervision tree.