The JS parsing of the mongodb connection string is incorrect:
> var mongoHost = 'mongodb://kaloianm-ubuntu:12345/?connectTimeoutMS=30000&socketTimeoutMS=30000'; > mongoHost mongodb://kaloianm-ubuntu:12345/?connectTimeoutMS=30000&socketTimeoutMS=30000 > var mongo = new Mongo(mongoHost); 2016-02-17T16:17:10.121-0500 E QUERY [thread1] Error: Unknown exception : @(shell):1:17
The reason why it fails is that the regular expression used by the MongoURI parser treats the entire string as the hostname.
- is depended on by
-
CXX-846 Connection string URI parsing is no correct
- Closed
- related to
-
SERVER-22383 mongo shell should permit mongodb:// URI without database name
- Closed