I sent an email to Kinvey support and they helped me a lot. Some of my mistakes:
- The JSON that I was returning back was wrong [*];
- I didn't add in the header of my response the Content-Type and status.
Now it works perfectly!
[*] The JSON that I send back in the body of the response is:
{
"request": {
"method": "<redacted>",
"username": "<redacted>",
"entityId": "<redacted>",
"collectionName": "<redacted>",
"headers": {
"connection": "<redacted>",
"host": "<redacted>",
"x-forwarded-for": "<redacted>",
"x-forwarded-port": "<redacted>",
"x-kinvey-api-version": "<redacted>",
"x-real-ip": "<redacted>",
"authorization": "<redacted>",
"x-forwarded-proto": "<redacted>"
},
"body": "<redacted>",
"params": "<redacted>"
},
"response": {
"complete": True,
"headers": {
"x-powered-by": "<redacted>",
"x-kinvey-api-version": "<redacted>",
"x-kinvey-request-id": "<redacted>"
},
"body": {},
"error": None,
"statusCode": 200
}
}
Thanks again to Brian in the Kinvey support!
[]'s