neo4j-rstats / neo4r

A Modern and Flexible Neo4J Driver
https://neo4j-rstats.github.io/user-guide/
Other
106 stars 30 forks source link

Empty reply from server #101

Open chrisoraruf opened 3 months ago

chrisoraruf commented 3 months ago

Can someone help me understand why after i open a valid connection to neo4j

connection <- neo4j_api$new(
  url = "http://localhost:7687", 
  user = "neo4j", 
  password = "password"
)

connection$ping()

200

After calling the classical

'MATCH (n) return n' %>% call_neo4j(connection)

I got the following error? Error in curl::curl_fetch_memory(url, handle = handle) : Empty reply from server

davidlrosenblum commented 3 months ago

7687 is the bolt port. You should use the http port - usually 7474

On May 9, 2024, at 2:16 PM, chrisoraruf @.***> wrote:

Can someone help me understand wjy after i open a valid connection to neo4j

connection <- neo4j_api$new( url = "http://localhost:7687", user = "neo4j", password = "password" )

connection$ping() 200

After calling the classical

'MATCH (n) return n' %>% call_neo4j(connection)

I got the following error? Error in curl::curl_fetch_memory(url, handle = handle) : Empty reply from server

— Reply to this email directly, view it on GitHub https://github.com/neo4j-rstats/neo4r/issues/101, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBXAGH7V7RNYOWOXDM2XWTZBO4PHAVCNFSM6AAAAABHPIPP76VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4DQMRRGQ3TMNI. You are receiving this because you are subscribed to this thread.

chrisoraruf commented 3 months ago

Even with port 7474 is not working. And user is neo4j, password is password, because I am using the python driver similarly and there it works in that way. The problem is not the ping itself that I know it is a bit buggy, but i get an API Error after the query.