Closed surajpra closed 3 years ago
What is the actual error? TopologyDescription
is often a property of connection errors, but not the actual error message itself.
Based on the topology state, it might be that your IP is not in the IP whitelist for this Atlas cluster. Can you please double check that you can connect using the mongo
shell or Compass?
Do you want to request a feature or report a bug? bug What is the current behavior? Getting error while connecting through replicaset db.
If the current behavior is a bug, please provide the steps to reproduce. connection uri : mongodb+srv://superman:***@cluster0.cts4x.mongodb.net/ultimate-db?authSource=admin&replicaSet=atlas-99t0pg-shard-0&readPreference=primary
What is the expected behavior? Perfect Connection What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version. Node.js: 12.18.3 Mongoose: 5.10.1 MongoDB : 4.2.8 Enterprise