登录 立即注册
金钱:

Code4App-iOS开发-iOS 开源代码库-iOS代码实例搜索-iOS特效示例-iOS代码例子下载-Code4App.com

求助,AFNetworking发送post请求,总是返回error[复制链接]

2017-01-03 16:12:46.810 注册请求demo[4685:369538] 注册失败返回 = Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: forbidden (403)" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x600000237100> { URL: http://114.67.59.57:8484/api/register } { status code: 403, headers {

Connection = "keep-alive";
"Content-Length" = 105;
"Content-Type" = "application/json";
Date = "Tue, 03 Jan 2017 08:12:46 GMT";
Server = nginx;

} }, NSErrorFailingURLKey=http://114.67.59.57:8484/api/register, com.alamofire.serialization.response.error.data=<7b0a2020 20202265 72726f72 5f636f64 65223a20 22534543 55524954 595f434f 44455f49 4e464f5f 4552524f 52222c20 0a202020 20226d65 73736167 65223a20 225c7539 6138635c 75386263 315c7537 3830315c 75346530 645c7536 6236335c 75373836 65220a7d 0a>, com.alamofire.serialization.response.error.string={

"error_code": "SECURITY_CODE_INFO_ERROR", 
"message": "\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e"

}
, NSLocalizedDescription=Request failed: forbidden (403)}

zs-liao 417查看 · 2回复 · 2017-1-3 16:14 有用(0
共2个回答
zs-liao 2017-1-3 16:37 回复

Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}

IO10101 2017-1-4 10:04 回复

403 (禁止) 服务器拒绝请求

需要登入后才可以评论 登录 | 立即注册
*滑动验证:
关闭

每日头条

通过邮件订阅最新 Code4App 信息
上一条 /4 下一条
联系我们
关闭
合作电话:
13802416937
Email:
435399051@qq.com
商务市场合作/投稿
问题反馈及帮助
联系我们

广告投放| Github|申请友链|手机版|Code4App ( 粤ICP备15117877号-1 )

返回顶部 返回版块