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…
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









