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

后端 未结 30 2616
谎友^
谎友^ 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:37

    Another possible issue might be that the meta values contain non US-ASCII characters. For me it helped to UrlEncode the values when adding them to the putRequest:

    request.Metadata.Add(AmzMetaPrefix + "artist", HttpUtility.UrlEncode(song.Artist));
    request.Metadata.Add(AmzMetaPrefix + "title", HttpUtility.UrlEncode(song.Title));
    

提交回复
热议问题