您的位置:首页 > Web前端 > JavaScript

AFNetworking 返回的错误信息 总结

2014-08-18 21:13 288 查看
1.初看以为是后台没写好,原来是没联网,(我开的WiFi,联通未登录,请求数据直接跳到了[b]URL: http://27.39.80.80/ ,联通的登录页。表现就是[b]Code=-1016
 )
[/b][/b]

Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable content-type: text/html" UserInfo=0x170271680 {AFNetworkingOperationFailingURLResponseErrorKey=<NSHTTPURLResponse:
0x170231da0> { URL: http://27.39.80.80/ } { status code: 200, headers {

    "Content-Length" = 1019;
    "Content-Type" = "text/html;charset=UTF-8";
    Date = "Mon, 18 Aug 2014 13:01:18 GMT";
    Server = "Apache-Coyote/1.1";
} }, NSLocalizedDescription=Request failed: unacceptable content-type: text/html, NSErrorFailingURLKey=http://27.39.80.80/}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  AFNetworking json