Closed jbmusso closed 8 years ago
Closing this as this was an issue on our side. The error resulted from a wrong usage of the client. The request should have been formatted this way:
{
"requestId": "2160a1d0-ae17-11e5-a9b1-fd3c55aea4b5",
"processor": "",
"op": "eval",
"args": {
"gremlin": "g.addV(label, 'user', 'firstname', p1)",
"bindings": {
"p1": "Alice"
},
"accept": "application/json",
"language": "gremlin-groovy"
}
}
Greetings. Using Titan 1.0.0 with DynamoDB local, I'm unable to execute scripts with bound parameters sent to Gremlin Server via Websocket. Scripts with no parameters work fine. I'm using the default
gremlin-server-local.yaml
file (default setup from http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.TitanDB.DownloadingAndRunning.html#Tools.TitanDB.DownloadingAndRunning.title). Everything works fine from the Gremlin console. Also using java version "1.8.0_45".The following query works: Gremlin Server returns intermediate and termination messages, and the vertex gets added to the graph:
However, the same query with bound parameters fails to execute. Gremlin server doesn't stream any message back to the client, and no vertex is added to the graph:
Gremlin Server throws, here's the complete stacktrace:
I'm using https://github.com/jbmusso/gremlin-javascript and can dig into the internal if needed. Client tests work fine against TP 3.0.1, including scripts executed with bound parameters.