Rumah > Soal Jawab > teks badan
最近用upyun上传图片出现如下问题:
Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: forbidden (403)" UserInfo=0x7cb0b700 {NSErrorFailingURLKey=http://v0.api.upyun.com/rongyi/, com.alamofire.serialization.response.error.response= { URL: http://v0.api.upyun.com/rongyi/ } { status code: 403, headers {
"Access-Control-Allow-Origin" = "*";
Connection = "keep-alive";
"Content-Type" = "text/html; Charset=utf-8";
Date = "Tue, 31 Mar 2015 09:42:29 GMT";
Server = "vivi/0.4";
"Transfer-Encoding" = Identity;
"X-Error-Code" = 4032006;
"X-Request-Id" = 1600c6bbc5fe11626a0c904cf494cae7;
"X-Request-Path" = "api-php-222, ctn-zj-ngb-102";
"X-Vivi-Streaming" = on;
} }, NSLocalizedDescription=Request failed: forbidden (403)}
不知有没有同样出现问题的iOS们
还有就是很有疑问DEMO里面的#define API_DOMAIN @"http://v0.api.upyun.com/"是干啥的?
PHP中文网2017-04-17 14:00:47
这个 403 的意思代表签名过期,看下设置的过期时间是否果断或者客户端时间跟标准时间不一致。
v0.api.upyun.com 这个是 API 接口