To fetch the cancel alerts using REST API
"POST /api/alerts/query" with body as "{"cancelTimeRange":{"startTime":1510711500000,"endTime":1510711800000}}" is not working.
Getting Error as -
{
"message": "Internal Server error, cause unknown.",
"moreInformation": [
{
"name": "errorMessage",
"value": "Failed to execute function IControllerApi.queryAlerts : com.vmware.vcops.platform.gemfire.GemfireFunction$MethodInvocationException: NullPointerException: "
}
],
"httpStatusCode": 500,
"apiErrorCode": 500
}
If I use {"startTimeRange":{"startTime":1510711500000,"endTime":1510711800000}} , it is working.
Am I missing some thing here?
Thanks in advance.
- Akshat