libs3 icon indicating copy to clipboard operation
libs3 copied to clipboard

S3 on Frankfurt: ERROR: ErrorInvalidRequest - Please use AWS4-HMAC-SHA256

Open zdco opened this issue 10 years ago • 2 comments

Hi, When using libs3 with S3 on Frankfurt (eu-central-1), I get the following error:

ERROR: ErrorInvalidRequest Message: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. Extra Details: RequestId: xxxxxx HostId: xxxxxxx

Has anybody ran into this? Any idea how to fix it?

zdco avatar Sep 08 '15 07:09 zdco

Hi,

I think AWS4-HMAC-SHA256 is not supported by libs3. To workaround this problem use one of older S3 regions. You may also use AWS SDK for C++

https://aws.amazon.com/ru/blogs/aws/introducing-the-aws-sdk-for-c/

but it lacks support of older (v2) authentification mechanism

barzoj avatar Nov 10 '15 18:11 barzoj

Yes, please us the official Amazon SDK if your project is C++ based! libs3 has not had active development for some time now unfortunately.

Although looking at the example C++ code provided on that page ... that is definitely not a dialect of C++ that I would ever want to write code in. But that's a personal preference I suppose.

bjitivo avatar Nov 10 '15 18:11 bjitivo