Details
-
Task
-
Status: In Progress
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
This issue about when query with invalid json on experiment route, s2rest doesn't any notice for user.
For example,
curl -X POST -H "Content-Type: application/json" -d '{
"[[user_id]]": "A"
"[[filter]]" : "(1,2,3)"
}' 'localhost:9000/graphs/experiment/f1f2a18e-b83e-4828-9441-746e674907e2/test/test
Above json body is invalid, because it is missing comma after "A".
Below is s2rest result.
{
"size": 0,
"degrees": [],
"results": [],
"isEmpty": true
}
Users of s2graph are hard to find mistakes, because any errors doesn't occur.
So experiment controller should outputs an error when query with invalid json.