getting this issue -> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 “The request timed out.”

finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 “The request timed out.” UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x282fbd800 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 “(null)” UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <7060BA29-10BA-40C9-91AB-DCA082E5F038>.<235>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
 “LocalDataTask <7060BA29-10BA-40C9-91AB-DCA082E5F038>.<235>”
),NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=<xyz.com>, NSErrorFailingURLKey=<xyz.com>, _kCFStreamErrorDomainKey=4}

getting this issue in some rare scenario, unable to find solution for this? anyone can help to resolve this?

because of this issue some times app stucks with loader screen and unable to work further.

I just replaced our server url with <xyz.com>.

I have checked with iPad 3rd generation.

Replies

Error -1001 is a NSURLErrorTimedOut, which can happen for a wide variety of reasons. You wrote:

getting this issue in some rare scenario

Rare scenarios with a device your control, like in your test farm? Or rare scenarios coming in from the field?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • Hey, actually we don't know the exact reason as well as we can't able to reproduce this constantly. This issue reported on our base url

  • we're using graphql queries. sending queries in string format as params. And it's completely working fine other times.

  • Suddenly getting this error and if we just quit and reopen the app it's again working fine. Someone help.