Hi guys, I’m trying to POST some JSON Data and then use extract and assign policies to save them in BaaS usergrid.
I have also included a Raise Fault policy to get an error if we didn’t submit required fields.
In console when I add header and post a json in body and send as an POST request I get the following error.
HTTP/1.1 500 Internal Server ErrorContent-Length:153Connection:keep-aliveContent-Type:application/json{
"fault": {
"faultstring": "Failed to execute the ExtractVariables: Extract-Comments-Post",
"detail": {
"errorcode": "steps.extractvariables.ExecutionFailed"
}
}
}
I know that this error comes when there is no JSON payload and hence ExtractVariable policy fails to extract the data. But I’m posting json data in body. So how can I proceed with this?
I’ve attached the policy here,please have a look and suggest me what to do.
