AWS Lambda "errorMessage": Task timed out after 3.00 seconds

Lambda function showing the below error in test when changing file format from png to text

"errorMessage": "2020-07-17T07:06:45.969Z b66dd037-ba01-4025-97db-6527b486eac8 Task timed out after 3.00 seconds" 

2 Answers

I have same error - increasing the timeout resolved it:

In the AWS Management Console:

lambda function -> configuration -> General configuration -> Edit Timeout 

enter image description here

0

The default Lambda timeout is 3 seconds.

To resolve this do one of the following:

  • Increase the timeout of your Lambda function, it can be upto 15 minutes. The recommendation would be to set it to the duration of how long you anticipate it will take.
  • Increase the resources (memory/CPU) so that your function is quicker at performing its target action.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like