I have developed API in AWS using Lambda NodeJS. It working as per requirement with correct response but periodically it's giving below error.
{
"errorType": "Runtime.ExitError",
"errorMessage": "RequestId: 3401bb1f-eb50-4c39-87cd-ce1188ce9150 Error: Runtime exited with error: exit status 129"
}
Above error only occurs when I used MySQL database connection with SQL operation in code.
Please Suggest.
I got this error when i uploaded an incorrect json file to my S3; When i ran the URL from API gateway, i got this error but no real hints;
When i tested the Lambda function, i got the specific place of issue in the JSON file on the Execution Results section of the Lambda Management Console.
Documenting this here to help someone in the future.
This error could be because of running out of connections at MySQL connection pool. You need to reuse the connection while making subsequent lambda calls. The connection need to be closed at the end of lambda lifecycle.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With