Error: Error Domain=NSURLErrorDomain Code=-1001 “The request timed out.”

后端 未结 7 874
借酒劲吻你
借酒劲吻你 2020-11-29 08:02

I am working on an application in Xcode 6.1, iOS 8.1; the application was working completely fine till 2 days before, but today as I executed it I got an error in the web se

相关标签:
7条回答
  • 2020-11-29 09:03

    Ok, I lost a lot of time investigeting similar issue.

    In my case the problem was strange (bad?) firewall on the server. It was banning device when there was many (not so many) requests in short period of time.

    I believe you can do easy test if you are facing similar issue.

    1. Send a lot of (depends of firewall settings) requests in loop (let's say 50 in 1 second).
    2. Close/Kill app (this will close connections to server)
    3. (OPTIONAL) Wait a while (lets say 60 seconds)
    4. Start app again and try send request

    If you now got timeout for all next requests, you probably have same issue and you should talk

    with sever guys.

    PS: if you don't have access to server you can give user info that he should restart wifi on device to quit that timeout loop. It could be last resort in some cases.

    0 讨论(0)
提交回复
热议问题