huuro

huuro

Xandra Cassandra Connection Error

Hi guys, when I am trying to connect to a local Cassandra database running on 127.0.0.1 using this configuration case Xandra.start_link(nodes: [“127.0.0.1”], authentication: {Xandra.Autheniticator.Password, [username: username, password: password]}) do {:ok, conn} -> {:ok, conn} true -> IO.puts(“suck bubble”)
I’m getting this error:

`[error] GenServer pid<0.7526.0> terminating
** (RuntimeError) Connect raised a UndefinedFunctionError error. The exception details are hidden, as
they may contain sensitive data such as database credentials.

Xandra.Autheniticator.Password.response_body/1
(xandra) Elixir.Xandra.Protocol.erl:61: Xandra.Protocol.encode_request/3
(xandra) Elixir.Xandra.Connection.Utils.erl:75: Xandra.Connection.Utils.authenticate_connection/4
(xandra) Elixir.Xandra.Connection.erl:31: Xandra.Connection.connect/1

Last message: nil
State: Xandra.Connection
[error] GenServer IntelliJElixir.Debugger.Server terminating`

I put the app username and password which I defined in cqlsh.

Using GUI Cassandra client I am able to connect to DB without problems.

Any Ideas, I tried everything…

Where Next?

Popular in Questions Top

Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
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
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
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New

Other popular topics Top

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
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
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
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42716 114
New

We're in Beta

About us Mission Statement