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

couldn't connect to neo4j #1729

Open
syj121 opened this issue Dec 5, 2024 · 2 comments
Open

couldn't connect to neo4j #1729

syj121 opened this issue Dec 5, 2024 · 2 comments

Comments

@syj121
Copy link

syj121 commented Dec 5, 2024

rails 6.1
ruby 3.1.1
activegraph 11.1.0
neo4j 5.25.1

class Book
  include ActiveGraph::Node
  property :title, type: String
end
driver = Neo4j::Driver::GraphDatabase.driver(uri, Neo4j::Driver::AuthTokens.basic(username, password))
ActiveGraph::Base.driver = driver

driver is ok.but when execute
Book.find_by(title: "desc")
making error,shows

NoMethodError: undefined method `[]' for nil:NilClass

          query('CALL dbms.components()', {}, skip_instrumentation: true).first[:versions][0]
                                                                               ^^^^^^^^^^^
@klobuczek
Copy link
Member

Without analyzing the bug closer I suspect the dbms.components procedure changed the result structure recently. Do you have the bandwidth to find out which neo4j version started breaking?

@syj121
Copy link
Author

syj121 commented Dec 6, 2024

I tried the version for 4.1, 4.2, 5.12, 5.25, but all performed the same error @klobuczek

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