search

Home  >  Q&A  >  body text

objective-c - iOS Domain=NSURLErrorDomain Code=-1005 "网络连接已中断。"错误

阿神阿神2771 days ago2052

reply all(4)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 16:09:12

    Is the server or network unstable? You can try browsing the server interface directly with a browser to see if there are any corresponding problems. It shouldn’t be a problem with AFNetworking

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 16:09:12

    @hudi, are you sure you are not on Xcode 7 or iOS 9? If yes, it will be easier to handle. Waiting for your reply, I will give you a plan:)

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 16:09:12

    I upgraded to iOS9 and Xcode7 today. I also added those few sentences and still sometimes it will report iOS Domain=NSURLErrorDomain Code=-1005 "The network connection has been interrupted." error
    The frequency is not high, but there will still be an explanation that it is unstable. I plan not to use afnetworking. I have to find the framework again and upgraded today. I have the same problem

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 16:09:12

    I also encountered this problem. I tried many methods but couldn't solve it. I can partially solve it by judging whether the error code is equal to -1005 and reconnecting, but this method is not good. This error will not occur if you use afnetworking 3.0, but Qiniu does not support afnetworking3.0. So I have been waiting for Qiniu to update, otherwise I would not know how to solve this problem in my project.

    reply
    0
  • Cancelreply