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

pod 'AliyunOSSiOS','2.9.2-framework' 版本上传图片文件报错"未能找到使用指定主机名的服务器" #398

Open
s1lence2012 opened this issue May 14, 2024 · 2 comments

Comments

@s1lence2012
Copy link

s1lence2012 commented May 14, 2024

                OSSPutObjectRequest *put = [OSSPutObjectRequest new];
                put.bucketName = tokenModel.bucketName;
                put.objectKey = hashmodel.objectName;
                put.uploadingData = obj.fileData;
                OSSTask *putTask = [self.client putObject:put];
                [putTask continueWithBlock:^id(OSSTask *task) {
                     error.localizedDescription = "未能找到使用指定主机名的服务器"
                }]

上传图片文件时,使用上述APi遇到报错,有遇到过吗,有什么已知处理方案吗?

@Choyi
Copy link

Choyi commented May 14, 2024

使用 2.10.20 遇到同样问题,回退到 2.10.8 没有问题

@wlll129
Copy link
Contributor

wlll129 commented Jun 28, 2024

麻烦发下完整的错误

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