I get an error from unauthorized access from AFNetworking even though the request is working fine (as it happens on the site).
Error Domain=NSURLErrorDomain Code=-999 "The operation couldn't be completed (NSURLErrorDomain error -999.)" UserInfo=0x1fd4a080 {NSErrorFailingURLKey=http:
The strange thing is that it returns this error, but in fact it has no problem with completing the request (on the server, the information goes through just fine and that's it).
AFHTTPClient *httpClient = [[[AFHTTPClient alloc] initWithBaseURL:url] autorelease]; [httpClient postPath:@"" parameters:[NSDictionary dictionaryWithDictionary:params] success:^(AFHTTPRequestOperation *operation, id responseObject) { NSLog(@"Success: %@", [responseObject objectFromJSONData]); } failure:^(AFHTTPRequestOperation *operation, NSError *error) { NSLog(@"Error: %@", error.description); }];
thanks for the help
source share