Lambda function has high error rate
Why do I see this?
More than 5% of the invocations for one of your lambda functions have failed in the last 60 minutes.
What does this mean?
You most likely have a bug in your code that is causing your Lambda runtime to crash. This includes issues with your code such as throwing an exception, syntax errors, and more. Functions that haven't been updated in a long while and have been left unmaintained can also contribute to a high error rate.
This event will notify you when the percentage of the invocations that failed, goes beyond 5% in 60 minutes.
How do I fix “Lambda function has high error rate”?
If you were notified of this event for any of your Lambda functions, there is likely a bug in the code, in which case you can check for any syntax or typing errors, such as accessing undefined event object attributes.
In many cases, processing of unexpected data can also cause the lambda runtime to crash. This can refer to the event data or additional data retrieved within the function. It involves inputs that are not identical 100% of the time. To fix this, you must determine what data was present in your function when an unsuccessful invocation occurred.