最近用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
This 403 means that the signature has expired. Check whether the set expiration time is correct or the client time is inconsistent with the standard time.
v0.api.upyun.com This is the API interface