AWS - Api网关POST主体,内容类型:text / plain而不是json / application to lambda

问题描述 投票:1回答:1

请求:使用Content-type将文本发布到Api Gateway到Lambda:text / plain

回复:“消息”:“内部服务器错误”

身体示例:

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

我需要更改哪种配置才能接受此内容类型?对于json / application,它工作得很好。

amazon-web-services aws-lambda aws-api-gateway
1个回答
0
投票

创建资源时,请使用lambda代理集成。

enter image description here

有关read here的更多信息。

© www.soinside.com 2019 - 2024. All rights reserved.