The services are failing on the following reasons:

I am using Alamofire for making networking calls, The service calls are failing on the following reasons:


A few reasons are listed below, The original urls are replaced with dummy urls.


FAILURE: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSUnderlyingError=0x1182bd920 {Error Domain=kCFErrorDomainCFNetwork Code=-999 "(null)" UserInfo={_kCFStreamErrorCodeKey=89, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey=https://someurl.php, NSErrorFailingURLKey=https://someurl.php, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=89, NSLocalizedDescription=cancelled}

FAILURE: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={NSUnderlyingError=0x105fe8030 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, NSErrorFailingURLStringKey=https://sampleurl.php, NSErrorFailingURLKey=https://example.php, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSLocalizedDescription=A server with the specified hostname could not be found.}


Seeking an active solution for this problem.

Thanks & Regards

These errors are pretty self explanatory:

  • Error -999 is

    NSURLErrorCancelled
    , meaning that something cancelled the request.
  • Error -1003 is

    NSURLErrorCannotFindHost
    , meaning that the DNS lookup failed.

Are you able to easily reproduce these failures? If so, my recommended next step is to enable CFNetwork diagnostic logging, which will give you some insight into the source of the error.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
The services are failing on the following reasons:
 
 
Q