{"action":"created","issue":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/157","labels_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/157/comments","events_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/157/events","html_url":"https://github.com/Alamofire/Alamofire/issues/157","id":45278719,"number":157,"title":"Error Domain=NSURLErrorDomain Code=-999 \"cancelled\"","user":{"login":"mh8a","id":6250826,"avatar_url":"https://avatars.githubusercontent.com/u/6250826?v=3","gravatar_id":"","url":"https://api.github.com/users/mh8a","html_url":"https://github.com/mh8a","followers_url":"https://api.github.com/users/mh8a/followers","following_url":"https://api.github.com/users/mh8a/following{/other_user}","gists_url":"https://api.github.com/users/mh8a/gists{/gist_id}","starred_url":"https://api.github.com/users/mh8a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mh8a/subscriptions","organizations_url":"https://api.github.com/users/mh8a/orgs","repos_url":"https://api.github.com/users/mh8a/repos","events_url":"https://api.github.com/users/mh8a/events{/privacy}","received_events_url":"https://api.github.com/users/mh8a/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-10-08T18:27:40Z","updated_at":"2015-10-02T16:18:33Z","closed_at":"2014-10-08T19:15:51Z","body":"I want to create a custom manager instance and use it:\r\n\r\n    var configuration: NSURLSessionConfiguration = NSURLSessionConfiguration.defaultSessionConfiguration()\r\n\r\n    //add the Alamofire default headers to the configuration\r\n    configuration.HTTPAdditionalHeaders = Alamofire.Manager.sharedInstance.session.configuration.HTTPAdditionalHeaders\r\n\r\n    let manager = Alamofire.Manager(configuration: configuration)\r\n\r\n    let url = NSURL(string: \"http://192.168.0.10/test\")\r\n\r\n    manager.request( NSURLRequest(URL: url) )\r\n        .response{(request, response, _, error) in\r\n            println(\"\\(error)\")\r\n        }\r\n\r\nWhich gives me an error:\r\nError Domain=NSURLErrorDomain Code=-999 \"cancelled\"\r\n\r\nIf i try this with the Singleton it works fine:\r\n\r\n    //let manager = Alamofire.Manager(configuration: configuration)\r\n    let manager = Alamofire.Manager.sharedInstance\r\n\r\nShouldn't the above code work with a custom instanced manager, too?\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/comments/145076003","html_url":"https://github.com/Alamofire/Alamofire/issues/157#issuecomment-145076003","issue_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/157","id":145076003,"user":{"login":"DFernando28","id":12397040,"avatar_url":"https://avatars.githubusercontent.com/u/12397040?v=3","gravatar_id":"","url":"https://api.github.com/users/DFernando28","html_url":"https://github.com/DFernando28","followers_url":"https://api.github.com/users/DFernando28/followers","following_url":"https://api.github.com/users/DFernando28/following{/other_user}","gists_url":"https://api.github.com/users/DFernando28/gists{/gist_id}","starred_url":"https://api.github.com/users/DFernando28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFernando28/subscriptions","organizations_url":"https://api.github.com/users/DFernando28/orgs","repos_url":"https://api.github.com/users/DFernando28/repos","events_url":"https://api.github.com/users/DFernando28/events{/privacy}","received_events_url":"https://api.github.com/users/DFernando28/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T16:18:32Z","updated_at":"2015-10-02T16:18:32Z","body":"my  Log show:\r\n\r\n ERROR: Could not connect to the server\r\n\r\nError Domain=NSURLErrorDomain Code=-999 \"cancelled\" UserInfo=0x78fc41e0 {NSErrorFailingURLKey=myURL, NSErrorFailingURLStringKey=myURL, NSLocalizedDescription=cancelled}"}}