{"action":"created","issue":{"url":"https://api.github.com/repos/netguru/ResponseDetective/issues/5","labels_url":"https://api.github.com/repos/netguru/ResponseDetective/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/netguru/ResponseDetective/issues/5/comments","events_url":"https://api.github.com/repos/netguru/ResponseDetective/issues/5/events","html_url":"https://github.com/netguru/ResponseDetective/issues/5","id":98616735,"number":5,"title":"All requests made with Alamofire manager cancelled after adding InterceptingProtocol","user":{"login":"mateuszbuda","id":5720638,"avatar_url":"https://avatars.githubusercontent.com/u/5720638?v=3","gravatar_id":"","url":"https://api.github.com/users/mateuszbuda","html_url":"https://github.com/mateuszbuda","followers_url":"https://api.github.com/users/mateuszbuda/followers","following_url":"https://api.github.com/users/mateuszbuda/following{/other_user}","gists_url":"https://api.github.com/users/mateuszbuda/gists{/gist_id}","starred_url":"https://api.github.com/users/mateuszbuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateuszbuda/subscriptions","organizations_url":"https://api.github.com/users/mateuszbuda/orgs","repos_url":"https://api.github.com/users/mateuszbuda/repos","events_url":"https://api.github.com/users/mateuszbuda/events{/privacy}","received_events_url":"https://api.github.com/users/mateuszbuda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/netguru/ResponseDetective/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"akashivskyy","id":565231,"avatar_url":"https://avatars.githubusercontent.com/u/565231?v=3","gravatar_id":"","url":"https://api.github.com/users/akashivskyy","html_url":"https://github.com/akashivskyy","followers_url":"https://api.github.com/users/akashivskyy/followers","following_url":"https://api.github.com/users/akashivskyy/following{/other_user}","gists_url":"https://api.github.com/users/akashivskyy/gists{/gist_id}","starred_url":"https://api.github.com/users/akashivskyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akashivskyy/subscriptions","organizations_url":"https://api.github.com/users/akashivskyy/orgs","repos_url":"https://api.github.com/users/akashivskyy/repos","events_url":"https://api.github.com/users/akashivskyy/events{/privacy}","received_events_url":"https://api.github.com/users/akashivskyy/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-08-02T15:26:35Z","updated_at":"2015-08-12T16:53:51Z","closed_at":"2015-08-09T14:10:25Z","body":"After I've added ResponseDetective to my project and assigned InterceptingProtocol to protocol classes of configuration used to create Alamofire manager\r\n\r\n    configuration.protocolClasses = [InterceptingProtocol.self]\r\n    manager = Alamofire.Manager(configuration: configuration)\r\n\r\nall my requests are canceled.\r\n\r\nResponseDetective prints requests and responses correctly, but Alamofire manager response callback is always called with the following error:\r\n\r\n    Optional(Error Domain=NSURLErrorDomain Code=-999 \"cancelled\" UserInfo=0x7f9683068010 {NSErrorFailingURLKey=http://private-c73ea-roommatev2.apiary-mock.com/sessions, NSLocalizedDescription=cancelled, NSErrorFailingURLStringKey=http://private-c73ea-roommatev2.apiary-mock.com/sessions})"},"comment":{"url":"https://api.github.com/repos/netguru/ResponseDetective/issues/comments/130368516","html_url":"https://github.com/netguru/ResponseDetective/issues/5#issuecomment-130368516","issue_url":"https://api.github.com/repos/netguru/ResponseDetective/issues/5","id":130368516,"user":{"login":"AnthonyMDev","id":6243461,"avatar_url":"https://avatars.githubusercontent.com/u/6243461?v=3","gravatar_id":"","url":"https://api.github.com/users/AnthonyMDev","html_url":"https://github.com/AnthonyMDev","followers_url":"https://api.github.com/users/AnthonyMDev/followers","following_url":"https://api.github.com/users/AnthonyMDev/following{/other_user}","gists_url":"https://api.github.com/users/AnthonyMDev/gists{/gist_id}","starred_url":"https://api.github.com/users/AnthonyMDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnthonyMDev/subscriptions","organizations_url":"https://api.github.com/users/AnthonyMDev/orgs","repos_url":"https://api.github.com/users/AnthonyMDev/repos","events_url":"https://api.github.com/users/AnthonyMDev/events{/privacy}","received_events_url":"https://api.github.com/users/AnthonyMDev/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T16:53:51Z","updated_at":"2015-08-12T16:53:51Z","body":"It seems that `stopLoading` is being called, which is canceling the request. But when I check out the `response` in the debugger, I see that the response from the server is there. I just also have an error `NSURLErrorDomain code=-999 \"canceled\"`\r\nBecause there is an error, my validation is failing.\r\n\r\n`ResponseDetective` is also never logging the responses."}}