2
votes

REQUEST: POST body to ApiGateway to Lambda with Content-type:text/plain

RESPONSE: "message": "Internal server error"

Body example:

{"a":"first", "b":"second"}

Which configuration did i need to change to accept this Content-Type? For json/application, it works just fine.

1
Are you seeing any logs from the lambda in CloudWatch logs? Does lambda logs has this error? - Chetan
I'm also seeing this, I'm just setting up a mock integration on API Gateway.. not using lambda at all.. did you solve this? - Rodrigo Reis

1 Answers

0
votes

When creating a resource, use lambda proxy integration.

enter image description here

For more information read here.