I am trying to get response from lambda in AWS API Gateway. I always get no data message with 200. But I return different message in lambda. Gateway and Lambda connected with non-proxy, because I have to add X-AMZ-Invocation-Type : event for async response. How can I change body of response using lambda?
1 Answers
1
votes
The message you see is not coming from lambda. At async invocation; api gateway returns the response first, then make a request to lambda "asynchronously". it is normal you to see different messages between lambda and api gateway test. You can't change response the body of response using lambda.
No response will be return with async integration (couldn't find it documentation to support this - but tried several times)