-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Email isn't set as username on signup #1340
Comments
The latest parse server is 2.2.4 ;) can you update and see if the issue is still here? |
@flovilmart Sorry for the delay. Yes, I finally managed to update to 2.2.4 on AWS can I still see the same issue. The username is still generated and isn't given the email value I give it at sign up, both on iOS and Android. |
Ok that's annoying, I'll have a look before next week |
Ok thanks. I'll be downgrading to 2.0 in the meantime, because it's pretty critical to me that users can't log back in. |
That's very very odd as this is properly covered by unit tests here. Can you run the server with environment var |
What does it look like in mongodb? the randomly generated string is generated at the time we link/create an anonymous user. |
{ |
alright thx! |
Do you have a beforeSave on _User? |
No - should I? |
nope, just to scratch out potential problems |
Hmmm... I just noticed I do a saveEventually when I login anonymously (before sign up):
Could that be a problem? |
yeah, that may be related as you may introduce a race condition here... ParseAnonymousUtils.logIn will save your user anyway |
Weird it's working on older versions of Parse-Server though. Let me test without it. |
we changed a few things over time, and may have introduce a problem. can you run your server with VERBOSE=1 so we have all the logs? |
Yeah - AWS Beanstalk is slow today. I'm requesting the logs as we speak. |
use |
ok i'm in with ssh. Where can I find the logs? |
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.logging.html that would be in /var/log/nodejs/ or in /srv/... |
PUT /parse/classes/_User/DpYUKuoTqx { host: 'parse-server-birder.elasticbeanstalk.com', |
hmmm is verbose not working? |
no calls before or after? this is what you get with VERBOSE |
This what I have just before... |
ok so if there is no other call on _User/DpYUKuoTqx that's really odd |
Just noticed this. When I logout after signing up, and log in anonymously, it returns the same _User/DpYUKuoTqx: POST /parse/users { host: 'parse-server-birder.elasticbeanstalk.com', Right after, there's the log in call that fails: GET /parse/login { host: 'parse-server-birder.elasticbeanstalk.com', |
it's very odd that |
Have you tested on your side? I tried with Parse-Server 2.2.4, and 2.1.6, and still the same issue. I also removed the "saveEventually", but it didn't help. |
So I just tried deploying the app on Heroku instead of AWS... and now it works. SO INFURIATING. I have no idea why it had that behaviour on AWS. Sorry for wasting your time, and a huge thank you for your contribution to Parse. :) |
no problem! here to help. That's odd what's happening on AWS. But if you can stick to heroku, you'll be better off for now, Elastic Beanstalk is not that easy to manage. ;) |
I'm running the latest Parse-Server (2.1.6) and Parse (1.6.12) on my AWS EB instance. I noticed that when the user signs up via the iOS or Android clients with signUpInBackground, the user's username becomes a random string (e.g. "username": "52927b5594f76b391cc6fbdcbe2da63c"), even though I set the user's username to be the email.
Therefore, user's can't relogin because their email isn't associated to their username.
Here's a snippet of the Android code:
Any ideas on why this is happening? Thanks!
The text was updated successfully, but these errors were encountered: