qiniu / objc-sdk

Qiniu Resource (Cloud) Storage Objective-C SDK for Mac/iOS
http://developer.qiniu.com
MIT License
435 stars 197 forks source link

403 Forbidden #297

Closed mkerj closed 5 years ago

mkerj commented 5 years ago

7.1.x / AFNetworking-3.x 7.0.x / AFNetworking-2.x token 是从服务端获取的。以上两个版本突然就出现这个问题了,昨天还可以。 源码: QNUploadManager upManager = [[QNUploadManager alloc]init]; [upManager putFile:filePath key:file.tmpfileName token:result[@"data"][@"upToken"] complete:^(QNResponseInfo info, NSString key, NSDictionary resp) { if(info.ok){ [self log:[NSString stringWithFormat:@"编号:[%ld]描述文件上传七牛成功...",file.mid] color:ColorSucces]; file.status = 2; [CWNotification postNotificationName:CWNotificationMobileprovisionUploadSuccess object:self userInfo:@{CWNotificationMobileprovisionKey:file}]; }else{ [self log:[NSString stringWithFormat:@"编号:[%ld]上传七牛云失败!%d",file.mid,info.statusCode] color:ColorFailure]; file.status = 3; [CWNotification postNotificationName:CWNotificationMobileprovisionUploadFailure object:self userInfo:@{CWNotificationMobileprovisionKey:file}]; } } option:nil];

错误:

<QNResponseInfo= id: 1556773655613976, ver: 7.0.19, status: 403, requestId: (null), xlog: (null), xvia: (null), host: upload.qiniu.com ip: 14.119.81.15 duration: 0.032021 s time: 1556773655 error: Error Domain=qiniu.com Code=403 "(null)" UserInfo={error=

403 Forbidden

403 Forbidden


nginx

}