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

Neo4j::Driver::Exceptions::SessionExpiredException when trying to connect #69

Closed
slicksammy opened this issue Oct 10, 2021 · 1 comment

Comments

@slicksammy
Copy link
Contributor

slicksammy commented Oct 10, 2021

System
MacOs Big Sur 11.1
neo4j-ruby-driver (1.7.5)
Seabolt /usr/local/Cellar/seabolt/1.7.4
Ruby 2.7.1

Using the gem I get

2.7.1 :023 > Neo4j::Driver::GraphDatabase.driver('bolt://localhost:7687',Neo4j::Driver::AuthTokens.basic('neo4j', 'pass')) do |driver|
2.7.1 :024 >   driver.run("Match(n) return *")
2.7.1 :025 > end
Traceback (most recent call last):
        2: from (irb):22
        1: from (irb):23:in `rescue in irb_binding'
Neo4j::Driver::Exceptions::SessionExpiredException (code: `d`, error: `13`, state: `4`, error_context: `_open(/tmp/seabolt-20211010-90472-1jb6k2i/seabolt-1.7.4/src/seabolt/src/bolt/communication.c:74): unable to establish connection`)

But when I use the official neo4j python driver it works

>>> with GraphDatabase.driver('bolt://localhost:7687', auth=("neo4j", "pass")).session() as session:
...     session.run("Match(n) return *")
... 
<neo4j.work.result.Result object at 0x10a758fd0>

Did I miss an installation step? I did brew install seabolt but nothing else.

@slicksammy slicksammy changed the title cannot connect to db Neo4j::Driver::Exceptions::SessionExpiredException when trying to connect Oct 10, 2021
@slicksammy
Copy link
Contributor Author

Ruby driver does not support later versions of neo4j #63 (comment)

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

1 participant