Neo4j::Driver::Exceptions::SessionExpiredException when trying to connect
slicksammy opened this issue · 1 comments
slicksammy commented
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 commented
Ruby driver does not support later versions of neo4j #63 (comment)