Add support for Mongo 3.6 connection strings
See original GitHub issueI’m using the MongoDb from https://cloud.mongodb.com/ and the version 3.6 offers me a connection string like this:
mongodb+srv://foo:myRealPassword@cluster0.mongodb.net/test
When I try to use it, I simply receive MongoError: getaddrinfo ENOTFOUND
. Any thoughts? If I switch back to mongodb://foo:myRealPassword@mycluster0-shard-00-00.mongodb.net:27017,mycluster0-shard-00-01.mongodb.net:27017,mycluster0-shard-00-02.mongodb.net:27017/admin?ssl=true&replicaSet=Mycluster0-shard-0&authSource=admin
it works.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:5
Top Results From Across the Web
Connection String URI Format — MongoDB Manual
This file is used to validate the certificate presented by the mongod / mongos instance. This option is not supported by all drivers....
Read more >Here to SRV you with easier replica set connections | MongoDB
We can run this script using the node specified in the 3.6 connection string as a parameter. The node is specified in the...
Read more >FAQ: Connection String Options — MongoDB Atlas
Atlas provides multiple connection strings. These strings allow you to connect to your clusters from both public and private contexts.
Read more >Get Connection String — Start with Guides - MongoDB
In this guide, you will retrieve your database deployment's connection string. Add your IP address to the allowlist to allow access to your...
Read more >Connect via Your Application — MongoDB Atlas
Your driver version must be compatible with your version of the MongoDB server. We recommend choosing the latest driver that is compatible with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@michaelauderer In my opinion Monk should be updated. It is a tiny layer over mongo and it should bring in the new driver to support enhancements and features offered by new version of mongo.
The package is still using “mongodb”: “^2.1.18”, which does not support the new connection string format by mongo. As per the official mongo docs mentioned here, the native driver needs to be updated to v3.0.0 in order to utilise the new DNS Seedlist Connection Format.