Start a new topic

Retrieving Raw Custom Endpoint Request


I'm issuing an SNS call from AWS which sends a content-type: text/plain header. Kinvey seems to ignore the body of the request on anything other than content-type: application/json and all that's in request.body is and empty object {}.

Is there any way to hook into the raw request of the endpoint? Something like request.raw would be useful and I would then be able to parse the body myself.

Any advice? There's no way to alter the headers on AWS SNS so hoping I can find a solution in Kinvey.

1 Comment

Hey Patrick, Unfortunately we don't currently support the behavior you've mentioned here. When you POST to Kinvey, it needs to be JSON. I haven't investigated SNS fully, but this documentation seems to point to JSON formatting for SNS:
Login or Signup to post a comment