Skip to content Skip to sidebar Skip to footer

Service Unavailable Error Using Neo4j Driver For Python

I am new to neo4j and trying to execute the demo project(Movie search) provided in neo4j website. While doing so I am getting an error to instantiate neo4j server from python. Alte

Solution 1:

You have to add your bolt port when defining the bolt url like below:

import os
from json import dumps
from flask import Flask, g, Response, request
from neo4j.v1 import GraphDatabase, basic_auth
app = Flask(__name__, static_url_path='/static/')
password = os.getenv("NEO4J_PASSWORD")
driver = GraphDatabase.driver('bolt://localhost:7687',auth=basic_auth("neo4j", password))
print driver

hope this helps!


Post a Comment for "Service Unavailable Error Using Neo4j Driver For Python"