【问题标题】:AWS API Gateway proxy and Lambda Integration (Proxy Endpoint Error)AWS API Gateway 代理和 Lambda 集成(代理端点错误)
【发布时间】:2017-04-07 03:28:51
【问题描述】:

我使用 API Gateway 代理和 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}

需要帮助。

【问题讨论】:

  • 问题出在哪里?尸体不见了?然后也许用 200 试试看身体是否在场。

标签: proxy aws-lambda aws-api-gateway


【解决方案1】:

您似乎在集成请求上设置了模拟集成。您能否通过设置“使用 Lambda 代理集成”复选框验证您实际上指向的是 Lambda 函数吗?

【讨论】:

    猜你喜欢
    • 2021-09-11
    • 1970-01-01
    • 2019-10-26
    • 1970-01-01
    • 2018-11-13
    • 2018-05-04
    • 1970-01-01
    • 2018-01-23
    • 2021-09-19
    相关资源
    最近更新 更多