Closed devangelito closed 4 years ago
.NET SDK already does clockskew correction by default. Could you provide request ids for the requests that results in expired signature eception?
Out of curiosity how long does your Lambda function run and what is the timeout set on your Lambda function?
Hello @sstevenkang, Below are sample request ids:
To answer @normj, we have currently set timeout to 5 minutes.
We have a lambda function developed in C# (dotnetcore) that invokes another lambda function. Intermittently, we are getting this Amazon.Lambda.AmazonLambdaException from AmazonLambdaClient.Invoke() due to expired signature (internally thrown via Amazon.Runtime.Internal.HttpErrorResponseException).
Expected Behavior
AmazonLambdaClient.Invoke() does not encounter this exception intermittently. Not sure if clock-skew correction is also in place for Lambda functions, but internal retry mechanism would be great.
Current Behavior
Intermittently, invocation of lambda function from a lambda function results to exception. Stack trace below:
Steps to Reproduce (for bugs)
Happens intermittently, so can't really provide steps to ensure it happens. On the other hand, the below code snippet is used:
Possible Solution
Manually implement retry for Lambda invocation whenever this exception occurs.
Your Environment