Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot convert v[#12:0] - class org.apache.tinkerpop.gremlin.orientdb.OrientVertex to JSON #8327

Closed
a-marcel opened this issue Jun 13, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@a-marcel
Copy link

OrientDB Version: 3.0.2 tinkerpop

Java Version: 8

OS: Linux debian

Hello,

when i use the rest api with gremlin orientdb cannot convert a Vertex to Json.

Thanks
Marcel

Expected behavior

I would expect a correct path

Actual behavior

And errormessage:

java.lang.UnsupportedOperationException: Cannot convert v[#12:0] - class org.apache.tinkerpop.gremlin.orientdb.OrientVertex to JSON

Steps to reproduce

curl -s -XPOST https://<domain>/command/<database>/gremlin -d '{"command": "g.V().has(\"key\",\"123\").out().values(\"names\").path()"}' | jq '.'
{
  "errors": [
    {
      "reason": 501,
      "code": 501,
      "content": "java.lang.UnsupportedOperationException: Cannot convert v[#12:0] - class org.apache.tinkerpop.gremlin.orientdb.OrientVertex to JSON"
    }
  ]
}
curl -s -XPOST https://<domain>/command/<database>/gremlin -d '{"command": "g.V().has(\"key\",\"123\").out().out().values(\"names\").tree().sideEffect(System.out.&println)"}' | jq '.'
{
  "errors": [
    {
      "reason": 501,
      "code": 501,
      "content": "java.lang.UnsupportedOperationException: Cannot convert v[#12:0] - class org.apache.tinkerpop.gremlin.orientdb.OrientVertex to JSON"
    }
  ]
}
wolf4ood added a commit to orientechnologies/orientdb-gremlin that referenced this issue Jun 14, 2018
@wolf4ood wolf4ood self-assigned this Jun 14, 2018
@wolf4ood wolf4ood added the bug label Jun 14, 2018
@wolf4ood
Copy link
Member

Hi @marcelalburg

i've just pushed a fix. It will be available in 3.0.3.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants