Skip to content
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

Error when accessing mongodb without authentication (username and password) #4

Open
nelvanbalthazar opened this issue Apr 14, 2020 · 0 comments

Comments

@nelvanbalthazar
Copy link

nelvanbalthazar commented Apr 14, 2020

Hi There,

I got error when migrating data to mongodb database that doesnt have authentication

{ MongoParseError: Invalid empty username provided at parseConnectionString

i leave an empty string in this part
const targetConnectionOptions = { host: config.get('MONGODB_HOST'), user: '', password: '' , };

do you have solution for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant