Start a new topic

Retrieving Raw Custom Endpoint Request

Hello,



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.



Thanks
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: http://docs.aws.amazon.com/sns/latest/dg/json-formats.html
Login or Signup to post a comment