没有为gremlin查询显示Curl输出

没有为gremlin查询显示Curl输出,curl,gremlin,janusgraph,gremlin-server,Curl,Gremlin,Janusgraph,Gremlin Server,尝试使用curl执行查询。输出不显示在终端上。 使用的参考: 服务器上使用的命令: curl -v -POST -H 'Content-type: application/json' http://localhost:8182 -d '{"gremlin": "g.V().count()"}' 输出: * Rebuilt URL to: http://localhost:8182/ * Trying 127.0.0.1... * Conn

尝试使用curl执行查询。输出不显示在终端上。 使用的参考:

服务器上使用的命令:


curl -v -POST -H 'Content-type: application/json'  http://localhost:8182 -d '{"gremlin": "g.V().count()"}'

输出:

 * Rebuilt URL to: http://localhost:8182/
 *   Trying 127.0.0.1...
 * Connected to localhost (127.0.0.1) port 8182 (#0)
> POST / HTTP/1.1
> Host: localhost:8182
> User-Agent: curl/7.47.0
> Accept: */*
> Content-type: application/json
> Content-Length: 57
>
 * upload completely sent off: 57 out of 57 bytes

它卡在这里,因此我终止它。 我希望计数显示在屏幕上或指定的文件中。

curl--location--request POST'localhost:8182'--header'内容类型:application/json'--data raw'{“gremlin”:“g.V().count()”}'

对我有用。
我想你可以查一下janusgraph的日志。查看janusgraph服务器是否收到您的请求。

Janus服务器是否配置为HTTP请求?如果仅为WebSocket配置,则可能是问题所在…是的,它同时为WebSocket和Http配置