![](/img/trans.png)
[英]passing POST request body through Amazon API Gateway to Lambda
[英]Does Api Gateway allow post request without request body
我已經創建並指定了路徑參數作為 id 並使用它從 db 獲取數據,然后使用 http 從數據庫發布數據。 我正在使用 AWS ApiGateway 來管理此端點,但是,當我傳遞 id 並嘗試在沒有請求正文或一些隨機有效請求正文的情況下測試 api 網關上的端點時,它顯示:
"errors": [
{
"title": "Error in API Gateway",
"code": "DEFAULT_5XX"
}
]
它還在日志中顯示以下內容:
Illegal character in path at index 101: http://example.local/orders/items/create/{id}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.