I'm trying to use Gremlin sessions with Amazon Neptune. I can execute bytecode queries fine outside of a session, and I can run string queries on a sessioned client, but attempting to run a bytecode query with a sessioned client results in this error:
"code":"MalformedQueryException",
"detailedMessage":"Message with op code [bytecode] is not recognized."
I've followed the AWS documentation exactly.
Cluster cluster = Cluster.build().with {
addContactPoint('host')
port(8182)
enableSsl(true)
serializer(Serializers.GRAPHBINARY_V1D0)
create()
}
def client = cluster.connect('session ID')
println client.submit('g.V()').all().get() // works
println traversal().withRemote(DriverRemoteConnection.using(client))
.V().iterate() // returns the error above
println traversal().withRemote(DriverRemoteConnection.using(cluster))
.V().iterate() // works, without a session
I'm using Gremlin 3.4.8. How do I get this working?