QASystemOnMedicalKG icon indicating copy to clipboard operation
QASystemOnMedicalKG copied to clipboard

how to solve py2neo.errors.ProtocolError: Cannot decode response content as JSON

Open Gokulmishra opened this issue 2 years ago • 2 comments

Greetings can anyone please help me to figure out how to rectify this error, neo4j console is running and active too

py2neo

py2neoerror

Neo4j image

Gokulmishra avatar Dec 20 '22 18:12 Gokulmishra

thank you in advance

Gokulmishra avatar Dec 20 '22 18:12 Gokulmishra

I solved the problem with this code:

self.g = Graph( host="127.0.0.1", port=7687,
user="neo4j", password="【Your Neo4j Password】" )

PORT NOT 7474, you can see the right port in http://127.0.0.1:7474/browser/, when you login the neo4j admin page, you could see the right port in this text:

You are connected as user neo4j to neo4j://127.0.0.1:7687 Connection credentials are stored in your web browser.

python=3.7 py2neo=2021.2.3 neo4j=5.3.0

Yumeka999 avatar Dec 29 '22 09:12 Yumeka999