Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pachecoio opened this issue Jun 18, 2024 · 2 comments
Open

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

pachecoio opened this issue Jun 18, 2024 · 2 comments

Comments

@pachecoio
Copy link

Environment

  • Elixir version 1.16.3
  • neo4j:5.20.0
  • Connection scheme (bolt://, bolt+routing:// or neo4j://):
  • Bolt.Sips version 2.0.11:
  • Operating system: Mac Osx and Ubuntu 20

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
Copy link
Owner

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants