nicolewhite / neo4j-flask

Flaskr Extended with Neo4j and Py2neo.
http://nicolewhite.github.io/neo4j-flask/
312 stars 114 forks source link

505 error #1

Closed vandan-revanur closed 9 years ago

vandan-revanur commented 9 years ago

i cloned the repo and used the same code. i got the neo4j server running on localhost/7474. But when i run the app i get a 505 error saying :Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. Please help me resolve it. 505

nicolewhite commented 9 years ago

I am unable to reproduce your error. In run.py, can you change

app.run(host='0.0.0.0', port=port)

to

app.run(host='0.0.0.0', port=port, debug=True)

and tell me if you get a stacktrace when visiting localhost:5000 after restarting?

vandan-revanur commented 9 years ago

i got a py2neo.error.unauthorised on the browser. this is the stacktrace.

stacktrace

nicolewhite commented 9 years ago

Ah, you must be on Neo4j 2.2. You'll need to authenticate in models.py when connecting to the graph. http://py2neo.org/2.0/essentials.html#authentication

I'll close this issue once I make some changes to the code to reflect this.

nicolewhite commented 9 years ago

Closing with https://github.com/nicolewhite/neo4j-flask/commit/5f26fc91d5879a09fc9108ecf2359c1806151fe6