Skip to content

Instantly share code, notes, and snippets.

@espeed
Created November 12, 2011 19:07
Show Gist options
  • Save espeed/1360966 to your computer and use it in GitHub Desktop.
Save espeed/1360966 to your computer and use it in GitHub Desktop.
python try.py
CONTENT TYPE application/json
HEADERS {'Content-Type': 'application/json', 'Accept': 'application/json'}
POST url: http://localhost:8182/graphs/tinkergraph/tp/gremlin
POST body: {"script": "g.setMaxBufferSize(0);g.startTransaction();g.V;tx.stopTransaction(TransactionalGraph.Conclusion.SUCCESS)"}
SystemError: ({'status': '500', 'transfer-encoding': 'chunked', 'server': 'grizzly/2.1.1', 'connection': 'close', 'date': 'Sat, 12 Nov 2011 19:06:33 GMT', 'access-control-allow-origin': '*', 'content-type': 'application/json'}, '{"message":"","error":"javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: groovy.lang.MissingMethodException.setMaxBufferSize() is applicable for argument types: () values: []","api":{"description":"evaluate an ad-hoc Gremlin script for a graph.","parameters":{"rexster.returnKeys":"an array of element property keys to return (default is to return all element properties)","rexster.showTypes":"displays the properties of the elements with their native data type (default is false)","rexster.offset.end":"end index for a paged set of data to be returned","rexster.offset.start":"start index for a paged set of data to be returned","script":"the Gremlin script to be evaluated"}},"success":false}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment