Python ArangoDB REST遍历返回无效的startVertex

Python ArangoDB REST遍历返回无效的startVertex,python,graph-databases,arangodb,nosql,Python,Graph Databases,Arangodb,Nosql,我一直在尝试使用REST API在python中进行一些简单的遍历: import requests url = "http://localhost:8529/_api/traversal" d = { "startVertex": 'V/62824208658', "graphName" : "G", "direction" : "outbound"} r = requests.post(url, data = json.dumps(d)) print r.json() 但我得到的是: {

我一直在尝试使用REST API在python中进行一些简单的遍历:

import requests

url = "http://localhost:8529/_api/traversal"
d = { "startVertex": 'V/62824208658', "graphName" : "G", "direction" : "outbound"}
r = requests.post(url, data = json.dumps(d))
print r.json()
但我得到的是:

{u'errorMessage': u'invalid startVertex', u'errorNum': 1202, u'code': 404, u'error': True}
我确信垂直和图形是存在的。我已经创建了它们,并使用图形界面手动将vertice连接到另一个vertice

有人知道为什么吗


干杯,

错误消息似乎很清楚,我看了一下遍历的实现 只有在数据库中找不到顶点时,它才会返回此错误


要确认,请尝试获取http://localhost:8529/_api/document/V/62824208658要检查顶点是否存在

好的,我发现了问题,您正在处理数据库测试数据库,但您的遍历请求正在处理(默认)系统数据库。 将呼叫更改为:

url = "http://localhost:8529/_db/test_db/_api/traversal"
别忘了定义一个方向;)

干杯

弗洛里安