-
-
Notifications
You must be signed in to change notification settings - Fork 878
IOS/Swift Retrieve file field after login throws error code: 151 (version: 1.12) #812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @Leo-One, thanks for the report. Is there any chance you can log network response on logout per instructions here - https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/wiki/Network-Debug-Tool |
Hi @nlutsenko This error does not occur in queries (PFQuery(className: "AnyClass")) or when sign up. Only in login. I'll try to use the network debug tool. |
Thanks. I wonder if there is something missing in Parse-server implementation of login endpoint. |
I configured the network debug. From a simple query (PFQuery): there is url field inside "userProfilePhoto" attribute From an update (PFUser.currentUser().saveInBackgroundWithBlock) just after the sign up: there is url field inside "profilePhoto" attribute From Login: no url field inside "profilePhoto" attribute |
It looks that is lacking url property for file fields in the json response of the login function of the iOS/Swift SDK. |
Yup, looks like a server bug. |
The code below works well if the user had signed up and didn't log out yet.
But 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)
Apparently, login function is not retrieving extra file fields properly:
The text was updated successfully, but these errors were encountered: