ios – 错误域= com.alamofire.error.serialization.response代码= -1011“请求失败:禁止

任何人都可以帮我解决以下错误

– >在AFNetworking 2.5中使用“删除方法时出错

Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request Failed: forbidden (403)" UserInfo=0x7fec59455ac0

com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 
0x7fec59458aa0> {
 URL: http://server.net:8081/api?JobId=4&UserId=13&X-API-KEY=89823424323432424khk234kj34kj235jk 
} 

{ 
    status code: 403,headers 
    {
        Connection = "Keep-Alive";
        "Content-Length" = 43;
        "Content-Type" = "application/json; charset=utf-8";
        Date = "Tue,17 Mar 2015 13:33:57 GMT";
        "Keep-Alive" = "timeout=5,max=100";
        Server = "Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15";
            "X-Powered-By" = "PHP/5.5.15";
    }
 },

解决方法

我发现,如果我的手机时钟不同步……它不允许我更新…也许检查你的手机设置到正确的时间“自动区”,看看是否有效…这工作为了我

参考URL:https://community.fitbit.com/t5/Charge-HR/Can-t-set-up-error-Forbidden-403/td-p/1053680

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...