-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.5.2, 3.5.3
-
Component/s: Authentication
-
Empty show more show less
Connection Configuration
mongodb://sample_user:kT9J*Hp#t7?m6Hs@localhost:27017/test_db
Error
When I run the application I am getting the following error
UnhandledPromiseRejectionWarning: MongoParseError: Incomplete key value pair for option
at parseQueryString (/appl/node_modules/mongodb/lib/core/uri_parser.js:406:13)
I did some debug on the uri_parser file and got this parsed object.
{{[Object: null prototype]
{ '*m6Hs*@127.0.0.1:27017/test_db': '' }}}
{{}}
Solution:
**
- I discovered that the password has the "?" char, it breaks the connection string at some point, my solution was to remove the question mark to the password string, but it seems something possible to fix by code.