2016-11-23 218 views
0

我使用API​​網關代理和Lambda集成。AWS API網關代理和Lambda集成(代理端點錯誤)

問題是端點響應。 我的Lambda函數返回此值。

{ 
    "statusCode": 400, 
    "headers": { 
     "Content-Type": "application/json" 
    }, 
    "body": "{\"error\":{\"code\":3,\"message\":\"secretKey is invalid\"}}" 
} 

但是,下面是API網關方法測試日誌。

Wed Nov 23 08:01:52 UTC 2016 : Endpoint response body before transformations: {"statusCode":400} 

需要幫助。

+0

這是什麼問題?身體不見了?那麼也許嘗試用200來看看身體是否存在。 – Digitalkapitaen

回答

0

您好像在集成請求上設置了模擬集成。您是否可以通過設置「使用Lambda代理集成」複選框來驗證您是否指向了Lambda函數?

相關問題