-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Unable to save Anonymous user #1230
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
Can you update your package.json to reference version 2.2.2 of parse-server, npm install and try again, and check the server logs for more information? |
Thanks for your reply.
The anonymous login still fails with error:
I deleted the app and re-installed it with clean cache. Same error! |
Did you set the client key on when initializing parse-server? |
No. Just appID and masterKey.
|
Yeah most likely as you,re sending it from the client I'm not sure parse-server likes it :) |
Sure, I give it a try when I get home.
|
In my opinion, no client keys should be set on the server (Rest, client, windows, js), and then no client keys are required from the clients (even though you can set/send them.) If any are set on the server, then all requests require them. You will figure this out. Unauthorized means you're not using the right combination of server / appId or there's a client key set and it doesn't match. |
I just followed the document, which says no client key is required, and I didn't set the clientKey on the server side.
|
Also, wondering why I get a successful query response back from server, but unable to save anonymous user?
|
The client can send a key, and the server will ignore it... As for the save On Tuesday, March 29, 2016, Mike [email protected] wrote:
|
@flovilmart was right, parse-server didn't like it :) Adding the clientKey on the server side fixed the issue. It seems at least for iOS SDK 1.12.0 we need clientKey on the server side. |
we'll have a look some time, I refactored at one point the key checking algorithm a while ago but I can't seem to remember what the expected behaviour is. If you pass a client key and the server don't have one, maybe the server should let is pass, maybe not... I'm lost. Glad it fixed it. |
Setup parse-server on AWS, and passed the CRUD transactions successfully. In my app which is working with parse.com, i switched to my hosted parse-server and it fails when trying the save anonymous user. Even the simple query fails. See codes below:
Environment Setup
Steps to reproduce when saving current user
Logs/Trace
Steps to reproduce when query a class
Logs/Trace
The text was updated successfully, but these errors were encountered: