1 Answer
- Newest
- Most votes
- Most comments
1
To trace and debug 5xx errors in your API Gateway when Lambdas show no errors and logs are clean, follow these steps:
- Enable access logging in API Gateway for detailed request/response logs.
- Inspect CloudWatch access logs for patterns or specific requests causing 5xx errors.
- Turn on AWS X-Ray for API Gateway and Lambda for end-to-end request tracing.
- Analyze CloudWatch metrics for API Gateway, focusing on 5xx and backend connection errors.
- Confirm no changes in API configuration that might affect integration responses or timeouts.
- Check for requests with large payloads that could exceed size limits for API Gateway and Lambda.
Relevant content
- asked 7 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 16 days ago
- AWS OFFICIALUpdated 2 years ago
Thanks, this helped me find the source. Specifically, enabling the access logs and analyzing the IP addresses in question. Turns out we were under a distributed attack for exactly 24 hours.