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

GeneratePresignedUri 返回的AbsoluteUri在浏览器中访问的时候报 SignatureDoesNotMatch #153

Open
DrZhong opened this issue Jan 21, 2025 · 1 comment

Comments

@DrZhong
Copy link

DrZhong commented Jan 21, 2025

Image

Image

如图所示:返回的地址直接在浏览器访问报错,

生成地址如下:https://echuanghe.oss-cn-beijing.aliyuncs.com/2025-01-21/638730556889696631.png?Expires=1737433866&OSSAccessKeyId=LTAI5tN2tCB8gVvPpg1TxtsH&Signature=8ZeMPgV4QYN4tdqncUb255knN%2Fw%3D

@philwu
Copy link
Contributor

philwu commented Feb 2, 2025

应该跟V4签名有关。根据文档,client创建好了之后,需要手动设置region

client.SetRegion("cn-beijing");

参考文档

#152 一个问题。

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

2 participants