如何在 Amazon API 网关中修复 "Invalid mapping expression parameter specified"

How to fix "Invalid mapping expression parameter specified" in Amazon API Gateway

如您所见,我尝试设置一个名为 'name' 的简单查询参数。

TBH,我不完全理解“映射自”是什么意思,I just followed the official example document here (step 7) 并将其设置为 method.request.querystring.name。但是它仍然抱怨它无效。

我刚试过这个,在你可以将它添加到“集成请求”之前,你必须将它添加到“方法请求”(方法可视化流程中“集成请求”之前的那个) ).我相信这实际上是您链接的页面中的第 6 步。