-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Warnings: Unable to ensure uniqueness for usernames #2699
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
I get a similar one:
(Express 4.14.0, Parse-Server 2.2.19, hosting DB on MLab) |
Check your username/password and that that user have the required permissions on the database. and for @haydenbleasel |
It's not really a question for this forum but I would check the databaseURI and make sure it's correct. Could also be a number of other issues, a search for the error gives you plenty of reading material. |
The databaseURI is definitely correct, I have done a massive search and it's not yielding much luck. I believe it might be coupled with #2580 since I get this straight after:
Update: Appears to be more related to #2446. |
Are you using version 2.2.19? |
@flovilmart Yep as mentioned above 👍 |
The headers already sent error should not yield in 2.2.19 as we removed the next() calls on success. You probably have a middleware for handling errors. For the databaseURI problem, that's probably related to the issue you mentioned but I don't have that error myself, and can properly connect to the replicaset. Do you have any special chars in your username/password? |
My username field is the same as the email field at the moment (so we can log in with email). Perhaps the @ character? |
Yeah... that may interfere with the URL parser as it will see 2 @'s. @ and : can be problematic for some URL parsers when providing username/pass inline. Like:
|
Oh sorry I thought you meant my actual app login haha. No my database user / pass doesn't have any special characters. BTW, this issue just got resolved for me. It works at home but not at the office. Weird. |
that's odd. And from the office, you can connect correctly to the DB from the CLI? |
I just got home and everything's working correctly. From the office all day (no code changes since then), I've had the two errors mentioned above (MongoError and Can't Set Headers). The DB connection from CLI is kinda sketchy - their firewall is pretty intense though (university). |
So, get yourself a VPN or a remote server when working from the uni :) |
Yep my bad haha, problem solved. |
Glad you found the solution! Closing |
Is there any logs that mongo would provide so you can drill down that issue? That is highly unlikely to be an issue with parse-server itself, but probably with your authentication mechanism with mongo. |
Usually happens behind a proxy or if you are working locally without an active internet connection which is somehow weird to me. |
I am still seeing this error - password has some special characters like |
@jashsayani can you update your password without special chars? |
I am not sure if removing special characters from the password is a move in the right direction. Its generated by mLab and used by the hosted Parse solution for writing data thats sent to |
I'm asking that to see if there is an encoding problem with the mondo DB URL. We pass that URL directly to the MongoDB node module and should not apply any transformation. Can you connect to the database with the same URL with the MongoDB node module? |
Seems to be working with: https://github.com/rsercano/mongoclient I believe it uses the Mongo node module. |
Not the same version though, the module you suggest is using 2.1.18, we're at 2.2.10. You'd need to try directly with mongo client version 2.2.10. |
Recently, I updated parse server to 2.2.25 and set mongoDB with replication set.
It's same as the Parse.com migration setup and no problem. The error message is here.
|
Closing due to lack of activity, please update to latest parse-server version and open a new issue if the issue persist. Don't forget to include your current:
|
I am writing a server that uses ParseServer (Express + ParseServer), and I see this when I run it:
I see that Mongo is having issues with querying the schema? Probably an indexing issue?
The text was updated successfully, but these errors were encountered: