[英]AWS API Gateway occasionally gives 4xx Error
I'm currently using API Gateway's REST API and getting about 200-300 hits every 5 minutes.我目前正在使用 API 网关的 REST API 并且每 5 分钟获得大约 200-300 次点击。 I've enabled CloudWatch logs on the API level for errors and turned on Detailed CloudWatch Metrics.
我已针对错误在 API 级别启用了 CloudWatch 日志,并打开了详细的 CloudWatch 指标。
I've also set CloudWatch Alerts for any time the API returns a 4xx error.我还为 API 返回 4xx 错误的任何时间设置了 CloudWatch 警报。
I get 4xx errors randomly, but never in chunks.我随机收到 4xx 错误,但从来没有出现过。 I'll probably get 1 every 3-4 hours.
我可能每 3-4 小时就会得到 1 个。 However, these errors aren't being logged in CloudWatch for me to troubleshoot.
但是,这些错误没有记录在 CloudWatch 中供我进行故障排除。
Is it normal to get random 4xx errors every now and then?偶尔出现随机 4xx 错误是否正常?
Please enable access logging with appropriate context variables请使用适当的上下文变量启用访问日志记录
https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.