title: Error: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out."
body: <p>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 service &amp; the error is printed below.</p>
  
  <blockquote>
    <p>Error: Error Domain=NSURLErrorDomain Code=-1001 "The request timed
    out." UserInfo=0x7c6899b0 {NSErrorFailingURLStringKey=,
    NSErrorFailingURLKey=, NSLocalizedDescription=The request timed
    out., NSUnderlyingError=0x7c688f60 "The request timed out."}</p>
  </blockquote>
  
  <p>I had used AFNetworking 2.x and following code snippet to make network call:</p>
  
  <pre><code>AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
  manager.requestSerializer = [AFJSONRequestSerializer serializer];
  manager.responseSerializer = [AFJSONResponseSerializer serializer];
  manager.responseSerializer.acceptableContentTypes=[manager.responseSerializer.acceptableContentTypes setByAddingObject:@"text/html"];
  
  [manager POST:&lt;URL&gt;
     parameters:&lt;parameters&gt;
        success:^(AFHTTPRequestOperation *operation, id responseObject) {
  
            NSLog(@"JSON: %@", responseObject);
            NSError *error = nil;
            NSDictionary *JSON = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingAllowFragments error:&amp;error];
            if (error) {
                NSLog(@"Error serializing %@", error);
            }
            NSLog(@"Dictionary %@", JSON);
            NSLog(@"Success");
        }
        failure:^(AFHTTPRequestOperation *operation, NSError *error) {
            NSLog(@"Error: %@", error);
        }]; 
  }
  </code></pre>
  
  <p><b> UPDATE: </b> I had done quit/relaunched the iOS Simulator.app, reseted content &amp; settings, but nothing worked.</p>