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

restful-api Gremlin traversal返回结果是乱码

Open lingxingzhang opened this issue 6 years ago • 2 comments

执行 curl -XGET "http://192.168.10.234:8081/gremlin?gremlin=hugegraph0701.traversal().V('1:account-00050')" 返回的结果 是压缩的结果吗?怎么解析呢? image

lingxingzhang avatar Jul 02 '20 04:07 lingxingzhang

@lingxingzhang 服务端返回的批量顶点/边是压缩(gzip)过的,可以使用管道重定向至gunzip进行解压(curl http://example | gunzip),也可以用Firefox的postman或者Chrome浏览器的restlet插件发请求,会自动解压缩响应数据。

javeme avatar Jul 02 '20 07:07 javeme

好的 谢谢您

lingxingzhang avatar Jul 02 '20 09:07 lingxingzhang