Atlas MongoDB connection
问题 I am trying to connect to Atlas MongoDB with the following URI (provided by mongodb connection string ) module.exports = { mongoURI:'mongodb+srv://<user>:<password>@cluster0-un6sk.mongodb.net/test? retryWrites=true' }; //connect to mongoose mongoose .connect(db) .then( ()=>console.log('mongoDB connected')) .catch(err => console.log(err)); I get the following error : { MongoNetworkError: connection 3 to cluster0-shard-00-00-un6sk.mongodb.net:27017 closed at TLSSocket.<anonymous> (C:\Users