API网关自定义授权者之谜503

时间:2019-08-15 17:10:53

标签: amazon-web-services aws-lambda aws-api-gateway

我设置了一个AWS API Gateway,以使用lambda作为其自定义授权者。大多数请求成功通过授权者,对于缺少令牌或令牌错误的请求,我也可以看到预期的Unauthorized错误(API网关返回401s)。

我的问题是少数无法解释的API错误,记录如下:

(example-api-request-id) Starting authorizer: some-id for request: some-uuid
(example-api-request-id) Incoming identity: ***********************
(example-api-request-id) Endpoint request URI: https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/arn:aws:lambda:us-west-2:redacted:function:redacted:production/invocations
(example-api-request-id) Endpoint request headers: [TRUNCATED]
(example-api-request-id) Endpoint request body after transformations: {"type":"TOKEN","methodArn":"arn:aws:execute-api:us-west-2:redacted:redacted/production/GET/some_path","authorizationToken":"some-valid-token"}
(example-api-request-id) Sending request to https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/arn:aws:lambda:us-west-2:redacted:function:redacted:production/invocations
(example-api-request-id) Lambda invocation failed with status: 503. Lambda request id: example-lambda-request-id
(example-api-request-id) Execution failed due to configuration error: Authorizer error

据我所知,这是这些错误请求之一的完整生命周期-example-api-request-id没有更多条目。

如果我去搜索example-lambda-request-id的授权者lambda日志,根本没有条目,甚至没有START RequestId: example-lambda-request-id

我在这里看到什么?我该如何调试这些错误?

0 个答案:

没有答案