Smart Insights Rules

Product Documentation
Smart Insights Rules
Navigate through spaces
⌘K
Smart Insights Rules
AWS Lambda
Lambda function runtime is upgradeable
Lambda function is nearing memory limit
Lambda function has over provisioned memory
Lambda function is near the concurrent limit
Lambda function has started to throttle requests
Lambda function is not tagged
Lambda function is nearing timeout
Lambda function has high error rate
Lambda function is not being used
API Gateway
API Gateway has high 4xx error percentage
API Gateway has high 5xx error percentage
API Gateway latency is nearing timeout
API Gateway has high latency compared to the previous day
DynamoDB
DynamoDB has read throttles
DynamoDB has write throttles
DynamoDB has high latency
DynamoDB Table is nearing provisioned WCUs
DynamoDB Table is nearing provisioned RCUs
Docs powered by archbee 

API Gateway has high 5xx error percentage

5min
Pillar: Reliability Severity: Critical Frequency: 15 minutes

Why do I see this?

One of your API endpoints has a high 5xx error rate.

What does this mean?

API gateway uses the HTTP response codes to convey errors. 5xx errors are server-side errors that are indicated by the 5xx HTTP response code. These codes range from 500 to 599 and can mean many things including:

  • 500 Error: Internal Server Error
  • 502 Error: Bad Gateway
  • 503 Error: Service Unavailable
  • 504 Error: Endpoint Request Timed-out 

This event warns you when one of your API endpoints has shown to have a high 5XX error percentage in the last 15 minutes.

How do I fix "API Gateway has high 5xx error percentage"?

The first thing to do is to make sure you have enabled execution logging and access logging in your Amazon CloudWatch Logs. That will make sure that data such as the total count of the server-side errors can be captured.

These errors can be caused due to many reasons including incompatible upgrades, incorrect error mapping, missing or corrupt files, incorrect permissions, broken API integration with AWS services, or errors in the Lambda function code.

You can start by looking into your Lambda code and making sure it's bug-free. For errors indicating incorrect error mapping, you can set up mock integrations. Some 5xx errors are also caused if you've exceeded the service quota limit, so check your API Gateway quota limit.

As a general rule to troubleshoot 5xx errors, you can make sure you follow and adhere to AWS' developer guide to working with API gateways.

You can also check out this detailed developer guide to troubleshooting 5xx errors for API Gateway.

Updated 03 Mar 2023
Did this page help you?
Yes
No
PREVIOUS
API Gateway has high 4xx error percentage
NEXT
API Gateway latency is nearing timeout
Docs powered by archbee 
TABLE OF CONTENTS
Why do I see this?
What does this mean?
How do I fix "API Gateway has high 5xx error percentage"?