Menu
  • HOME
  • TAGS

AFNetworking issue with UStream API request for channel's video list

ios,afnetworking,afnetworking-2,afhttprequestoperation,nsurlerrordomain

My code was fine but there was an issue with my iphone simulator. Reset Content and Settings did the trick. Thanks to k6sandeep for the help.

NSURLErrorDomain code=-1005 from GKLeaderboard loadScoresWithCompletionHandler:

ios,ios8,game-center,nsoperationqueue,nsurlerrordomain

For some reason this alternative call does not lead to errors: GKLeaderboard *leaderboard = [[GKLeaderboard alloc] initWithPlayers:@[ GKLocalPlayer.localPlayer ]]; leaderboard.identifier = leaderboardIdentifier; leaderboard.timeScope = GKLeaderboardTimeScopeAllTime; [leaderboard loadScoresWithCompletionHandler:^(NSArray *scores, NSError *error) { // ... }]; Problem solved....

NSURLErrorDomain Code=-1001 error when a http post request is sent

ios,swift,nsurlsession,nsurlerrordomain

Apparently my post request was getting a timeout error since I was sending an image that the server would find too large. I scaled down the images in order to make my images acceptable by the server. As this post suggests, NSURLErrorDomain Code=-1001 error might be caused by many things...

Difference between a connection failed or no response in an https connection in iPhone

swift,nsurlconnection,xcode6.3,nsurlerrordomain

NSURLConnectionDelegate method -connection:didFailWithError: provides you with error describing reason for failure. You can differentiate between situations based on error.code - list of codes here.