QASystemOnMedicalKG
QASystemOnMedicalKG copied to clipboard
how to solve py2neo.errors.ProtocolError: Cannot decode response content as JSON
Greetings can anyone please help me to figure out how to rectify this error, neo4j console is running and active too
py2neo
Neo4j
thank you in advance
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