I am trying to create an API endpoint to execute my AWS Lambda function in my mobile application. When I create a custom API and test the POST method, I get the proper response code of 200 and the correct String phrase returns: "The name is {input}"
.
However, when I try to import this API into my project, it does not show up in the SDK. When I try and create an API through the Mobile Hub, I follow the same exact steps, but when I enter the POST method, I get the following error message:
Endpoint response body before transformations: "The name is InputName"
Fri Mar 10 17:39:33 UTC 2017 : Endpoint response headers: {x-amzn-Remapped-Content-Length=0, x-amzn-RequestId=8599f413-05b8-11e7-92d2-75672f730ae7, Connection=keep-alive, Content-Length=23, Date=Fri, 10 Mar 2017 17:39:32 GMT, Content-Type=application/json}
Fri Mar 10 17:39:33 UTC 2017 : Execution failed due to configuration error: Output mapping refers to an invalid method response: 200
Fri Mar 10 17:39:33 UTC 2017 : Method completed with status: 500