Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Lambda API issue "Error: Runtime exited with error: exit status 129"

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.

like image 867
pratik Avatar asked Aug 09 '26 19:08

pratik


2 Answers

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.

like image 177
Akber Iqbal Avatar answered Aug 12 '26 08:08

Akber Iqbal


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.

like image 37
winter Avatar answered Aug 12 '26 09:08

winter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!