I was testing an endpoint for running an installed query:
GET /query/{graph_name}/{query_name}
(see: Built-in Endpoints :: Docs)
Everything works fine, until I try to use read_committed
param.
Here is the procedure to reproduce.
- Create and install a simple query:
CREATE QUERY aaa() {
STRING a = "keya";
String b = "keyb";
PRINT a, b;
print a as kuku;
PRINT [a, b] as result;
}
- Send “good” rest request:
curl http://192.168.0.105:9000/query/mygraph/aaa
Everything is ok. There is a response from the API.
- Send “bad” request:
curl http://192.168.0.105:9000/query/mygraph/aaa?read_committed=false
You’ll get an error and RESTPP will go down.