{"action":"created","issue":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/822","labels_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/822/labels{/name}","comments_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/822/comments","events_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/822/events","html_url":"https://github.com/Alamofire/Alamofire/issues/822","id":108674680,"number":822,"title":"My Router doesn't work after migration of Swift and update of Alamofire","user":{"login":"Luissoo","id":5419579,"avatar_url":"https://avatars.githubusercontent.com/u/5419579?v=3","gravatar_id":"","url":"https://api.github.com/users/Luissoo","html_url":"https://github.com/Luissoo","followers_url":"https://api.github.com/users/Luissoo/followers","following_url":"https://api.github.com/users/Luissoo/following{/other_user}","gists_url":"https://api.github.com/users/Luissoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Luissoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luissoo/subscriptions","organizations_url":"https://api.github.com/users/Luissoo/orgs","repos_url":"https://api.github.com/users/Luissoo/repos","events_url":"https://api.github.com/users/Luissoo/events{/privacy}","received_events_url":"https://api.github.com/users/Luissoo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-28T14:54:35Z","updated_at":"2015-09-28T15:41:27Z","closed_at":"2015-09-28T15:41:27Z","body":"Hi,\r\n\r\nI'm doing the migration of my app on Swift 2.0. I took the opportunity to also migrate Alamofire from 1.3 to 2.0.\r\n\r\nBut now my app is not working anymore, and i got many errors on the file where i use Alamofire.\r\n\r\nFirst on my enum Router declaration i got an error who say\r\n ```private enum Router: URLRequestConvertible {```\r\n\r\n>Type 'Router' does not conform to protocol 'URLRequestConvertible'\r\n\r\nSecond in all my request when i'm gonna check the ```.responseJSON { (_, _, json, error) in```\r\ni got an error who say\r\n>Tuple types '(NSURLRequest?, NSHTTPURLResponse?, Result<AnyObject>)' (aka '(Optional<NSURLRequest>, Optional<NSHTTPURLResponse>, Result<AnyObject>)') and '(_, _, _, _)' have a different number of elements (3 vs. 4)\r\nError that i didn't had before\r\n\r\nThanks for your help ! "},"comment":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/comments/143783084","html_url":"https://github.com/Alamofire/Alamofire/issues/822#issuecomment-143783084","issue_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/822","id":143783084,"user":{"login":"cnoon","id":169110,"avatar_url":"https://avatars.githubusercontent.com/u/169110?v=3","gravatar_id":"","url":"https://api.github.com/users/cnoon","html_url":"https://github.com/cnoon","followers_url":"https://api.github.com/users/cnoon/followers","following_url":"https://api.github.com/users/cnoon/following{/other_user}","gists_url":"https://api.github.com/users/cnoon/gists{/gist_id}","starred_url":"https://api.github.com/users/cnoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnoon/subscriptions","organizations_url":"https://api.github.com/users/cnoon/orgs","repos_url":"https://api.github.com/users/cnoon/repos","events_url":"https://api.github.com/users/cnoon/events{/privacy}","received_events_url":"https://api.github.com/users/cnoon/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T15:41:27Z","updated_at":"2015-09-28T15:41:27Z","body":"First problem you need to switch to return `NSMutableURLRequest` instead of `NSURLRequest`. The second is that it needs to be `responseJSON { request, response, result in`. See the [README](https://github.com/Alamofire/Alamofire/tree/2.0.2#response-handling) for version 2.0.2 for more details."}}