繁体   English   中英

API 网关在响应时间超过 3000 毫秒时抛出错误

[英]API Gateway throwing error on response taking longer than 3000 ms

AWS API 网关抛出错误如下: Response Headers

Date: Sat, 30 Jan 2021 08:15:16 GMT
Content-Type: application/json
Content-Length: 16
Connection: keep-alive
x-amzn-RequestId: a9933c61-83d1-4ce5-814a-aebb4634d2bc
x-amzn-ErrorType: AuthorizerConfigurationException
x-amz-apigw-id: Z9BOtFf-hcwFdiw=

响应体

{"message":null}

这是有关请求的更多信息

Status: 500Internal Server Error
Time: 3.18 s
Size: 309 B

我的设置涉及请求从客户端传递到 AWS API GATEWAY > NLB > ALB > ECS Cluster Service Task Response 以同样的方式返回。 我认为此错误是由于响应时间超过 3 秒而引起的。 但我不知道如何解决它。 如何在不抛出错误的情况下允许超过 3000 毫秒的响应。

根据评论。

该问题是由 lambda Authorizer引起的。 默认的 lambda 超时为 3 秒,这不足以让 function 成功完成。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM