你的位置:首页 > 软件开发 > 操作系统 > NSLocalizedDescription=Request failed: unacceptable content

NSLocalizedDescription=Request failed: unacceptable content

发布时间:2015-10-10 22:00:18
使用AFNetworking请求一个网站出现了以下错误 Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content- ...

使用AFNetworking请求一个网站出现了以下错误

 

Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/html" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x7fc688f34d00> { URL: http://xxx.xxx.xxx } { status code: 200, headers {  "Content-Encoding" = gzip;  "Content-Type" = "text/html";  Date = "Sat, 10 Oct 2015 13:44:28 GMT";  Server = "nginx/1.4.1";  Vary = "Accept-Encoding";  "X-Cache" = "MISS from RJ-ZSBGP-CDN-75";  "X-Powered-By" = "PHP/5.4.16";} }, NSErrorFailingURLKey=http://xxx.xxx.xxx, com.alamofire.serialization.response.error.data=<7b227374 61746522 3a227375 63636573 73222c22 6d657373 61676522 3a22222c 22726573 756c7422 3a5b5d7d>, NSLocalizedDescription=Request failed: unacceptable content-type: text/html}

原标题:NSLocalizedDescription=Request failed: unacceptable content

关键词:ip

ip
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。