{"action":"opened","issue":{"url":"https://api.github.com/repos/alexeyxo/swift-apns/issues/4","repository_url":"https://api.github.com/repos/alexeyxo/swift-apns","labels_url":"https://api.github.com/repos/alexeyxo/swift-apns/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/alexeyxo/swift-apns/issues/4/comments","events_url":"https://api.github.com/repos/alexeyxo/swift-apns/issues/4/events","html_url":"https://github.com/alexeyxo/swift-apns/issues/4","id":166985532,"number":4,"title":"Fatal error in sendPush","user":{"login":"didier-v","id":3208836,"avatar_url":"https://avatars.githubusercontent.com/u/3208836?v=3","gravatar_id":"","url":"https://api.github.com/users/didier-v","html_url":"https://github.com/didier-v","followers_url":"https://api.github.com/users/didier-v/followers","following_url":"https://api.github.com/users/didier-v/following{/other_user}","gists_url":"https://api.github.com/users/didier-v/gists{/gist_id}","starred_url":"https://api.github.com/users/didier-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didier-v/subscriptions","organizations_url":"https://api.github.com/users/didier-v/orgs","repos_url":"https://api.github.com/users/didier-v/repos","events_url":"https://api.github.com/users/didier-v/events{/privacy}","received_events_url":"https://api.github.com/users/didier-v/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-22T07:23:25Z","updated_at":"2016-07-22T07:23:25Z","closed_at":null,"body":"The error happens  in the completion handler of the task:\r\nin APNSNetwork.swift -> sendPush\r\n\r\n     let task = self.session?.dataTaskWithRequest(request, completionHandler: { (data, response, err) -> Void in\r\n    let (statusCode, status) = APNServiceStatus.checkStatusCode((response as! NSHTTPURLResponse)) \r\n\r\n\r\nI got an error (err = Error Domain=NSURLErrorDomain Code=-1001 \"The request timed out.\") and response is nil\r\nForce unwrap of response causes a fatal error.\r\n\r\n \r\n"}}
{"actor":{"display_login":"didier-v"}}