Reputation: 31
There is no exception when I am trying without the Username and Password but I got error while giving value for user and password.
{
"name": "Mongo",
"connector": "mongodb",
"url": "",
"host": "127.0.0.1",
"port": 27017,
"user": "username",
"password": "password",
"database": "otc",
"useNewUrlParser": true
}
Upvotes: 1
Views: 149
Reputation: 31
Actually the issue was the password I used, I used special characters (eg. '%') in my password so while parsing the URL the URL parser Package used in loopback-mongo-connector threw this exception.
Upvotes: 2
Reputation: 56
The URL option overrides all the other options, so If you send a string with no characters it will override anyway. So the alternatives are just using the URL or delete it and then try again.
Upvotes: 0