{"action":"closed","issue":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/812","repository_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/812/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/812/comments","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/812/events","html_url":"https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/812","id":131923450,"number":812,"title":"IOS/Swift Retrieve file field after login throws error code: 151 (version: 1.12)","user":{"login":"leo-one","id":2694753,"avatar_url":"https://avatars.githubusercontent.com/u/2694753?v=3","gravatar_id":"","url":"https://api.github.com/users/leo-one","html_url":"https://github.com/leo-one","followers_url":"https://api.github.com/users/leo-one/followers","following_url":"https://api.github.com/users/leo-one/following{/other_user}","gists_url":"https://api.github.com/users/leo-one/gists{/gist_id}","starred_url":"https://api.github.com/users/leo-one/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo-one/subscriptions","organizations_url":"https://api.github.com/users/leo-one/orgs","repos_url":"https://api.github.com/users/leo-one/repos","events_url":"https://api.github.com/users/leo-one/events{/privacy}","received_events_url":"https://api.github.com/users/leo-one/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"nlutsenko","id":606991,"avatar_url":"https://avatars.githubusercontent.com/u/606991?v=3","gravatar_id":"","url":"https://api.github.com/users/nlutsenko","html_url":"https://github.com/nlutsenko","followers_url":"https://api.github.com/users/nlutsenko/followers","following_url":"https://api.github.com/users/nlutsenko/following{/other_user}","gists_url":"https://api.github.com/users/nlutsenko/gists{/gist_id}","starred_url":"https://api.github.com/users/nlutsenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlutsenko/subscriptions","organizations_url":"https://api.github.com/users/nlutsenko/orgs","repos_url":"https://api.github.com/users/nlutsenko/repos","events_url":"https://api.github.com/users/nlutsenko/events{/privacy}","received_events_url":"https://api.github.com/users/nlutsenko/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-02-07T02:15:51Z","updated_at":"2016-02-07T03:22:42Z","closed_at":"2016-02-07T03:22:42Z","body":"The code below works well if the user had signed up and didn't log out yet.\r\nBut if the user logs out and then logs in again, it throws the following error: **[Error]: Can't download a file that doesn't exist on the server or locally. (Code: 151, Version: 1.12.0)**\r\nApparently, login function is not retrieving extra file fields properly:\r\n\r\n```\r\nif let user = PFUser.currentUser() {\r\n  if let photo = user[\"profilePhoto\"] as? PFFile {\r\n    photo.getDataInBackgroundWithBlock({ (data: NSData?, error: NSError?) -> Void in\r\n      dispatch_async(dispatch_get_main_queue(), {\r\n        if let data = data {\r\n          self.profileImageView.image = UIImage(data: data)\r\n        }\r\n      })\r\n    })\r\n  }\r\n}\r\n```"}}