nsurlerrordomain

“NSURLErrorDomain” - code: 18446744073709550594 Ajax call on Xcode 7

烂漫一生 提交于 2019-12-01 18:13:05
I am trying to make an asynchronous call from Xcode 7 as follows and I end up seeing this error "NSURLErrorDomain" - code: 18446744073709550594 This code was fine when I used it in Xcode 6. Has anybody else seen this error? var task = NSURLSession.sharedSession().dataTaskWithURL(url!, completionHandler: { (var data, response, error) -> Void in if(response != nil) { if (isJSONP){ if let prefixData = "(".dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false) { var prefixRange = data!.rangeOfData(prefixData,options:NSDataSearchOptions(), range: NSMakeRange(0, data!.length)) if let

“NSURLErrorDomain” - code: 18446744073709550594 Ajax call on Xcode 7

不羁岁月 提交于 2019-12-01 17:36:15
问题 I am trying to make an asynchronous call from Xcode 7 as follows and I end up seeing this error "NSURLErrorDomain" - code: 18446744073709550594 This code was fine when I used it in Xcode 6. Has anybody else seen this error? var task = NSURLSession.sharedSession().dataTaskWithURL(url!, completionHandler: { (var data, response, error) -> Void in if(response != nil) { if (isJSONP){ if let prefixData = "(".dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false) { var prefixRange =

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

随声附和 提交于 2019-12-01 16:09:51
I am using the following code to post an image to my server. @IBAction func postButtonPressed(sender: UIButton) { let task = NSURLSession.sharedSession().dataTaskWithRequest(createRequest("http://xx.xx.xxx.xxx/xxxx/"), completionHandler: { data, response, error in println(NSString(data: data, encoding: NSUTF8StringEncoding)) }) task.resume() } where createRequest() creates the required NSURLRequest object. This works fine when I use a simulator . The problem is that I am getting the following error when I run my app on an iPhone. Error Domain=NSURLErrorDomain Code=-1001 "The operation couldn’t

NSURLErrorDomain error -1021

梦想与她 提交于 2019-12-01 02:03:59
I'm developing an app were I integrated dropbox. Login is done properly also I'm able to create folder in dropBox. But when I try to load file I'm getting error Following error I'm getting error making request to /1/files_put/dropbox/Info.plist - Error Domain=NSURLErrorDomain Code=-1021 "The operation couldn’t be completed. (NSURLErrorDomain error -1021.)" UserInfo=0x6859bc0 {destinationPath=/Info.plist, sourcePath=/Users/bcod/Library/Application Support/iPhone Simulator/5.0/Applications/0E1EE43C-8F6B-40FA-8696-D3992DA2DCE5/DBRoulette.app/Info.plist} I'm not getting this error when I'm

NSURLErrorDomain error code -999 in iOS

允我心安 提交于 2019-11-26 17:21:51
I've been trying to use Corona SDK's Facebook API to post the score on the game I'm developing on facebook. However, I'm having a problem with it. During the first time I try to post to facebook, I get this error after login and user authentication: NSURLErrorDomain error code -999 Then, it won't post on facebook. What are possible causes of this error and how can I address it? I tried searching the web but couldn't find information about it. Thanks in advance. By the way, I am not using webview on my app. Just the widget api and a show_dialog listener in my Facebook class. The error has been

Undocumented NSURLErrorDomain error codes (-1001, -1003 and -1004) using StoreKit

≯℡__Kan透↙ 提交于 2019-11-26 14:50:58
I'm writing StoreKit-related code, and I'm getting some rather troubling error codes when I try to add a purchase to the queue. So far, I've experienced error codes -1003 and -1004 and I can't find anything about those codes on the internet. Running a product request returns valid product numbers, so I don't know why calls to [[SKPaymentQueue defaultQueue] addPayment:aPayment]; would fail with this undocumented problem. The same code also works without the errors on one device but not on another. The questions I have are, as of yet, unanswered: What do these codes mean? How can I mitigate this

Undocumented NSURLErrorDomain error codes (-1001, -1003 and -1004) using StoreKit

泪湿孤枕 提交于 2019-11-26 05:57:18
问题 I\'m writing StoreKit-related code, and I\'m getting some rather troubling error codes when I try to add a purchase to the queue. So far, I\'ve experienced error codes -1003 and -1004 and I can\'t find anything about those codes on the internet. Running a product request returns valid product numbers, so I don\'t know why calls to [[SKPaymentQueue defaultQueue] addPayment:aPayment]; would fail with this undocumented problem. The same code also works without the errors on one device but not on

NSURLErrorDomain error code -999 in iOS

萝らか妹 提交于 2019-11-26 05:25:20
问题 I\'ve been trying to use Corona SDK\'s Facebook API to post the score on the game I\'m developing on facebook. However, I\'m having a problem with it. During the first time I try to post to facebook, I get this error after login and user authentication: NSURLErrorDomain error code -999 Then, it won\'t post on facebook. What are possible causes of this error and how can I address it? I tried searching the web but couldn\'t find information about it. Thanks in advance. By the way, I am not