Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

阿里云OSS下载报错:SignatureDoesNotMatch #137

Open
bluishwu opened this issue Feb 24, 2024 · 5 comments
Open

阿里云OSS下载报错:SignatureDoesNotMatch #137

bluishwu opened this issue Feb 24, 2024 · 5 comments

Comments

@bluishwu
Copy link

配置正确后能正常上传文件,但下载时报错SignatureDoesNotMatch:

<Error>
<Code>SignatureDoesNotMatch</Code>
<Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>
<RequestId>65DA19AE09E59839308E9C36</RequestId>
<HostId>testexample.oss-cn-hangzhou.aliyuncs.com</HostId>
<AWSAccessKeyId>LTAI5tRU7E3nDdJtkibD62m7</AWSAccessKeyId>
<SignatureProvided>IRmZh4spCWLR926M9ukbnSmFzJ0=</SignatureProvided>
<StringToSign>GET 1708795817 /testexample/testexample/share/data/2024/02/25/7316ceba652e43159ecfa9f69d634672.webp</StringToSign>
<StringToSignBytes>47 45 54 0A 0A 0A 31 37 30 38 37 39 35 38 31 37 0A 2F 66 69 6C 65 62 6F 78 2D 77 6F 6F 6C 69 6F 2F 66 69 6C 65 62 6F 78 2D 77 6F 6F 6C 69 6F 2F 73 68 61 72 65 2F 64 61 74 61 2F 32 30 32 34 2F 30 32 2F 32 35 2F 37 33 31 36 63 65 62 61 36 35 32 65 34 33 31 35 39 65 63 66 61 39 66 36 39 64 36 33 34 36 37 32 2E 77 65 62 70 </StringToSignBytes>
<EC>0002-00000307</EC>
<RecommendDoc>https://api.aliyun.com/troubleshoot?q=0002-00000307</RecommendDoc>
</Error>
@j710328466
Copy link

这个问题主要是AWSAccessKeyId值不对,需要改成 OSSAccessKey

@j710328466
Copy link

@veoco 可以兼容一下

@j710328466
Copy link

@gooduw 简单的处理办法是把oss的bucket设置为公共读

@560e
Copy link

560e commented Jul 29, 2024

大佬,求你阿里云OSS配置的示例截图,我学习参考下,谢谢

@bluishwu
Copy link
Author

大佬,求你阿里云OSS配置的示例截图,我学习参考下,谢谢

抱歉,早就没用了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants