Closed AtharvaThorve closed 3 years ago
Hi @AtharvaThorve,
could you check if the server is listening on the correct port by running the query CALL dbms.listConfig() YIELD name, value WHERE name IN ['dbms.connector.bolt.enabled', 'dbms.connector.bolt.listen_address'] RETURN name, value
on the Neo4j Desktop?
If it's listening, You could also check if the windows firewall is not blocking the connection.
@bigmontz
When I executed the command CALL dbms.listConfig() YIELD name, value WHERE name IN ['dbms.connector.bolt.enabled', 'dbms.connector.bolt.listen_address'] RETURN name, value
I got this output:
And both McAfee antivirus and windows defender firewall has not shown any blocked connection
@AtharvaThorve,
could you try to connect to the server running telnet localhost 7687
and checking if it connects? You could also run netstat -a -n
to check in which interface Neo4j is listening.
@bigmontz
I executed both the commands
The output of netstat -a -n
was (all the highlighted part is of the port 7687):
When I executed telnet localhost 7687
command I got a blank screen with telnet running.
@AtharvaThorve can you try to replace bolt://localhost with bolt://127.0.0.1 instead? Just to make sure that name resolving works as expected. EDIT: Don't bother, I can see that it resolved ok in the error message
@AtharvaThorve, which version of NodeJS are you using?
@bigmontz The node version I am using is 12.14.1
@AtharvaThorve
I've tried to reproduce the error here, but I couldn't. Are you running the code using node script.js
over the cmd
? Could you try with the firewalls disabled?
@bigmontz No, actually I was using wsl 2 setup but when I switched to windows powershell it executed properly. I still don't understand why it wasn't executing properly in wsl though. Thank you for all your help 🙌.
Did this get resolved? @AtharvaThorve
The connection between the Neo4j server and the neo4j-driver is not being established.
Neo4j Version: 4.1.0 Enterprise via Neo4j Desktop 1.3.10 Neo4j Mode: Single instance(?) Driver version: ^4.1.2 Operating System: Windows 10 Home
Steps to reproduce
I tried to test neo4j-driver with the code example given in the docs.
index.js
I'm starting my Neo4j instance from Neo4j Desktop. The following is the log output when the instance starts:
Expected behavior
Running
node index.js
should result in:Alice
being printed on the console.Actual behavior
Running
node index.js
results in: