Amazon APi gateway fails to generate transformed request

前端 未结 2 1996
心在旅途
心在旅途 2021-01-18 04:45

I was trying the integration of Amazon API gateway with Lambda function. I was successfully able to achieve though but when I tried with curl it fails.

Lambda method

相关标签:
2条回答
  • 2021-01-18 05:01

    In my case the problem was that I did not Deploy the API, so it was not updated for external use. See Amazon API Gateway : response body is not transformed when the API is called via Postman?

    0 讨论(0)
  • 2021-01-18 05:03

    Please make sure your content-type what you defined in integration request template.

    You can try this curl command.

    curl -X POST https://aaaaaaa.execute-api.us-west-2.amazonaws.com/beta/apitest/xml -H "Content-Type: application/json" --data-binary "Articletext"

    0 讨论(0)
提交回复
热议问题