AWS S3 - How to fix 'The request signature we calculated does not match the signature' error?

后端 未结 30 2609
谎友^
谎友^ 2020-11-29 08:05

I have searched on the web for over two days now, and probably have looked through most of the online documented scenarios and workarounds, but nothing worked for me so far.

30条回答
  •  执笔经年
    2020-11-29 08:17

    I had the same error in nodejs. But adding signatureVersion in s3 constructor helped me:

    const s3 = new AWS.S3({
      apiVersion: '2006-03-01',
      signatureVersion: 'v4',
    });
    

提交回复
热议问题