错误:aws签名错误,签名排查,s3签名不匹配

 

<Error>

<script/>

<Code>SignatureDoesNotMatch</Code>

<Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>

1. 在/opt/file 下传入一个1.png图片。

2. 进入/opt/file 然后输入命令:

    curl -X PUT -T "/opt/file/1.png" -H "Content-Type: application/image/jpeg" "生产得预签名url"

3.  查看是否上传成功,可以判断预签名是否有问题

Logo

码道开发者社区,聚焦华为云码道 CodeArts 代码智能体,沉淀 Agent、Skill、鸿蒙开发实战内容,供开发者查阅资料、交流技术、分享工程实践

更多推荐