首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Bulbs/Neo4j:创建图形对象时出现身份验证错误

Bulbs/Neo4j:创建图形对象时出现身份验证错误
EN

Stack Overflow用户
提问于 2015-05-01 12:11:33
回答 1查看 482关注 0票数 2

我是一个新手,正在努力学习Python,Bulbs,Neo4j。我不知道如何调试这个问题,这个问题是在我刚开始尝试创建Graph对象时出现的。下面是回溯:

代码语言:javascript
复制
 File "test.py", line 12, in __init__
    self.graph = Graph()
  File "C:\Python27\lib\site-packages\bulbs\neo4jserver\graph.py", line 55, in __init__
    super(Graph, self).__init__(config)
  File "C:\Python27\lib\site-packages\bulbs\base\graph.py", line 58, in __init__
    self.vertices = self.build_proxy(Vertex)
  File "C:\Python27\lib\site-packages\bulbs\base\graph.py", line 124, in build_proxy
    return self.factory.build_element_proxy(element_class, index_class)
  File "C:\Python27\lib\site-packages\bulbs\factory.py", line 19, in build_element_proxy
    primary_index = self.get_index(element_class,index_class,index_name)
  File "C:\Python27\lib\site-packages\bulbs\factory.py", line 27, in get_index
    index = index_proxy.get_or_create(index_name)
  File "C:\Python27\lib\site-packages\bulbs\neo4jserver\index.py", line 87, in get_or_create
    resp = self.client.get_or_create_vertex_index(index_name,index_config=config)
  File "C:\Python27\lib\site-packages\bulbs\neo4jserver\client.py", line 742, in get_or_create_vertex_index
    return self.create_vertex_index(index_name, *args, **kwds)
  File "C:\Python27\lib\site-packages\bulbs\neo4jserver\client.py", line 697, in create_vertex_index
    resp = self.request.post(path, params)
  File "C:\Python27\lib\site-packages\bulbs\rest.py", line 131, in post
    return self.request(POST, path, params)
  File "C:\Python27\lib\site-packages\bulbs\rest.py", line 184, in request
    http_resp = self.http.request(uri, method, body, headers)
  File "C:\Python27\lib\site-packages\httplib2\__init__.py", line 1608, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "C:\Python27\lib\site-packages\httplib2\__init__.py", line 1359, in _request
    for authorization in self._auth_from_challenge(host, request_uri, headers, response, content):
  File "C:\Python27\lib\site-packages\httplib2\__init__.py", line 1243, in _auth_from_challenge
    challenges = _parse_www_authenticate(response, 'www-authenticate')
  File "C:\Python27\lib\site-packages\httplib2\__init__.py", line 317, in _parse_www_authenticate
    raise MalformedHeader("WWW-Authenticate")
httplib2.MalformedHeader: WWW-Authenticate

我在Windows 7上运行,如果这很重要的话。有人能帮上忙吗?

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2015-05-01 17:50:45

根据https://code.google.com/p/httplib2/issues/detail?id=289的说法,当您正在访问的服务发送401并请求身份验证时,httplib2会抛出该错误。

由于2.2版Neo4j具有默认启用的内置身份验证,请参阅http://neo4j.com/docs/stable/security-server.html#security-server-auth

因此,您可以在创建连接时向灯泡提供您的用户名和密码(不知道灯泡的详细信息,因此无法在此处提供更精确的建议),也可以通过设置关闭neo4j服务器中的身份验证

代码语言:javascript
复制
dbms.security.auth_enabled=false

neo4j-server.properties中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29981491

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档