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

生成临时下载URL错误 #166

Open
zjilvufe opened this issue Nov 20, 2024 · 1 comment
Open

生成临时下载URL错误 #166

zjilvufe opened this issue Nov 20, 2024 · 1 comment

Comments

@zjilvufe
Copy link

1、通过工具上传照片到obs服务上
2、使用3.24.9的esdk-obs-java-bundle的createTemporarySignature方法,生成的地址为:https://ip:port/xx.jpg?AccessKeyId=aa&Expires=1732003383&Signature=stufPFd1SJh93tiziSWmeXa3gW4%3D
3、使用这个地址访问,obs报缺少参数AWSAccessKeyId
4、定位发现apiVersion 使用obs导致,使用v2就可以

@liqiuqiu111
Copy link

ObsConfiguration obsConfiguration = new ObsConfiguration();
obsConfiguration.setAuthType(AuthTypeEnum.V2);
obsConfiguration.setAuthTypeNegotiation(false);
obsConfiguration.setEndPoint("https://obs.cn-north-4.myhuaweicloud.com");
ObsClient obsClient = new ObsClient(ak, sk, securityToken, obsConfiguration)
通过以上config参数可以指定访问桶数据的协议方式为s3.

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