【发布时间】:2014-07-28 11:31:43
【问题描述】:
之前我的代码运行良好,突然在运行我的 Python 脚本时:
**from neo4jrestclient.client import GraphDatabase
from bottle import route, run,template,post,request,redirect
gdb = GraphDatabase("http://localhost:7474/db/data/")*
@route('/home')
def open_home():
username=""
parties=[]
return template('home',dict(username=username,parties=parties))
出现此错误:
Traceback(最近一次调用最后一次): > 文件“bottle3.py”,第 4 行,在 > gdb = > GraphDatabase("localhost:7474/db/data/") 文件 > "/usr/local/lib/ python2.7/dist-packages/neo4jrestclient/client.py", > > line 78, in init > raise NotFoundError(response.status_code, "Unable get root") neo4jrestclient.exceptions.NotFoundError: Code > [411]:需要长度。 > 客户端必须指定 Content-Length.. Unable > get root
【问题讨论】:
-
我相信您正在由另一个用户运行脚本
-
您运行的是哪个版本的 neo4jrestclient 和 Neo4j?
-
linux 2.1.3 版