Alamofire Error Domain=NSURLErrorDomain Code=-999 “cancelled”

前端 未结 5 1111
既然无缘
既然无缘 2021-01-05 14:15

I already have successfully got keychain for my token and passing it to AccessTokenAdapter class shown below. http127.0.0.1:8000/api2/projects/?format=json is passed as proj

5条回答
  •  一生所求
    2021-01-05 15:06

    In case other run into this as well as I did and it wasn't a https issue or other answer given in the many other SO posts that I found, I was getting this and found the cause to be a controller that was making a request but the controller was not to be shown. Kind of like if you have some controller that appears only on specific conditional and it, itself makes a request which is done in the viewWillAppear or other. I used a base class that determines if the call in the conditional controller should attempt the request or not. This fixed the problem for me.

提交回复
热议问题