florinpatrascu / bolt_sips

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

DBConnection.Holder.checkout(#PID<0.X.X>, [timeout: 15000 ]) #116

Open pachecoio opened 5 months ago

pachecoio commented 5 months ago

Environment

Current behavior

I am getting the following error when trying to perform a simple query:

DBConnection.Holder.checkout(#PID<0.X.X>, [timeout: 15000 ])

Is this because of a non-supported version or could it be a misconfiguration on my end? Thanks in advance!

Here is the config I am using:

config :bolt_sips, Bolt,
  url: "bolt://localhost:7687",
  basic_auth: [username: "neo4j", password: "testtest"],
  pool_size: 10

And here is the test case:

  test "Test query works" do
    conn = Bolt.Sips.conn()
    query = "MATCH (n) RETURN n"
    result = Bolt.Sips.query!(conn, query)
  end

Dockerfile with the neo4j config:

services:
  neo4j:
    image: neo4j:5.20.0
    environment:
      - NEO4J_AUTH=neo4j/testtest
    ports:
      - '7474:7474'
      - '7473:7473'
      - '7687:7687'
florinpatrascu commented 5 months ago

I'm sorry but I haven't used neo4j for a while. I honestly don't think there is any compatibility issue at the connection level at least, but if there is maybe you can check with the other public library mentioned in the readme? And I guess you can connect to the server from your browser, after starting the server from docker, right?! Maybe you don't have access to the network shared by docker?! Just a theory.

pachecoio commented 5 months ago

Thanks for the quick response. The connection works fine both accessing from the browser and also using other libraries. Boltx for example works ok. Using other languages also works fine, I built the same project with go and the same connection info works ok.