incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

K-out 接口返回异常请教

Open Ghosttttt opened this issue 7 years ago • 6 comments

Expected behavior 期望表现

image

Actual behavior 实际表现

{type something here...} image

Steps to reproduce the problem 复现步骤

采用hugegraph-client中k-out的测试样例, image 其中遍历深度确认是给定的,疑惑为什么还会报这种错?

Ghosttttt avatar Mar 27 '19 05:03 Ghosttttt

@Ghosttttt 请提供一下使用的hugegraph和hugegraph-client版本号。

zhoney avatar Mar 27 '19 06:03 zhoney

hugegraph-client:1.6.9 hugegraph:0.9.1 @zhoney 直接是在client中跑的test

Ghosttttt avatar Mar 27 '19 07:03 Ghosttttt

@Ghosttttt 0.9属于未发布版,开发过程中会有变动。可以把server端更新为最新的master分支来解决问题。

根据你的报错信息,server端不是最新的master分支。 k-out的参数在0.9有一个变动,depth->max_depth,你使用的版本可能恰好是更新过程中的。

zhoney avatar Mar 27 '19 08:03 zhoney

@zhoney 非常感谢回答, 但是我是直接使用hugegraph-cliet的代码进行测试的,和hugegraph的version应该没有关系吧?

Ghosttttt avatar Mar 27 '19 08:03 Ghosttttt

@Ghosttttt hugegraph-client是封装的RESTful API,比如最新的发送的参数是max_depth,而server端预期接收的参数是depth,所以就认为没有传参数,认为depth参数是0,所以检查参数时会报错。

zhoney avatar Mar 27 '19 10:03 zhoney

好的 非常感谢

Ghosttttt avatar Mar 27 '19 11:03 Ghosttttt