spring-cloud-aws icon indicating copy to clipboard operation
spring-cloud-aws copied to clipboard

Issue in Apache HttpClient causes exceptions when calling AWS Lambda: The request signature we calculated does not match the signature you provided

Open mateuszmrozewski opened this issue 6 years ago • 0 comments

Observed exception: com.amazonaws.services.lambda.model.AWSLambdaException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

This is caused by a change introduced in Apache HttpClient version 4.5.7: https://issues.apache.org/jira/projects/HTTPCLIENT/issues/HTTPCLIENT-1983

Greenwich.SR1 version of spring-cloud-aws includes version 4.5.8 by default. This may cause the mentioned error to appear when calling AWS Services.

A workaround for the problem is to include version 4.5.6 of Apache HttpClient explicitly.

This is just to keep as a reference for anyone who can potentially hit the issue. Once it is fixed in either Apache HttpClient or AWS SDK is adjusted to this behavior, issue can be closed.

mateuszmrozewski avatar Apr 17 '19 23:04 mateuszmrozewski