-
-
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
"invalid field name: _failed_login_count" from api.parse.com #2745
Comments
As we move forward, it's very likely those issues arise :) for those new features you should exclusively use Parse-server and parse-dashboard as parse.com wont get updated to support those. |
same issue here. Deleting _failed_login_count and _email_verify_token_expires_at fields from users table in mLab were the only solution that made my app work again (luckily down time was minor). I guess the temporary solution suggested is what everyone should do in the migration process. Otherwise the server be down sooner than expected. Currently the default is using this features which may break lots of live apps... |
@sidan5 like mentioned in the previous comment, parse-server specific features won't be supported on api.parse.com nor the dashboard.parse.com. If you plan to use those, make sure you're fully migrated first! |
@flovilmart That I understand but real app still use Parse Hosted server till I finish crafting my server, update the app and users would update. That could take a while. Not knowing those added fields break Parse Hosted server could be a disaster for some apps. Actually if I didn't do that I would never catch this issue in time which could result with my app be broken completely on production (at least to users that haven't update the app)... |
Yeah but those added fields should only be there if you use those particular features, not otherwise. Did you enable those additional features? And you're 100% right testing locally before deploying :) I can't encourage more to do that! |
Yea but there is no mention to that. Also using this feature is default on the example of email verification (probably a comment there would be best). Problem I have that this (even in a single user) makes queries fail... |
What example are you talking about? parse-server-example? |
The README.md file at https://github.com/ParsePlatform/parse-server/blob/master/README.md currently says:
Please let us know how you would like us to modify the README.md and I will update it and submit a pull request. |
@cherukumilli I think adding something like that would be nice: // IMPORTANT NOTICE: This feature would add '_failed_login_count' and '_email_verify_token_expires_at' to the user table, that makes the user on queries on user table unreachable when using parse hosted server and could break your app till you finish migration completely Maybe even add a recommendation not to use this feature at all if there are any app clients that are still using Parse Hosted server |
After upgrading to Parse Server >= 2.2.19 and configuring
accountLockout
(from #2601) Hosted Parse API calls to/login
or/classes/_User
return:{"code":105,"error":"invalid field name: _failed_login_count"}
Steps to reproduce
accountLockout
._failed_login_count
to the _User object in database.Expected Results
User can login with correct username and password.
Actual Outcome
Parse returns
{"code":105,"error":"invalid field name: _failed_login_count"}
Environment Setup
Temporary Solution:
Disable
accountLockout
config and remove_failed_login_count
from all _User objects.From what I can tell, api.parse.com is doing a check on fields before returning the object. Since
_failed_login_count
starts with_
it considers it an invalid field and returns the error.I don't think there is a fix on Parse Server side that would make sense, so I'll disable
accountLockout
until migration is complete.The text was updated successfully, but these errors were encountered: