我已经在 Aws 上使用 parse.com 配置了 MongoDB Atlas,为 MongoDB Atlas Cluster 完成了配置。我可以使用 SSH 连接到 Mongo Atlas 集群,也可以使用我的 localhost parse.com 库连接到 Mongo Atlas 集群。但是当我尝试使用 AWS 上的解析服务器连接到 Mongo Atlas 时出现以下错误
Uncaught internal server error. { MongoError: no valid replicaset members found
at Timeout._onTimeout (/var/application/juicebarParse/parse-server/node_modules/mongodb-core/lib/topologies/replset.js:660:33)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5) name: 'MongoError'
message: 'no valid replicaset members found' } MongoError: no valid
replicaset members found
at Timeout._onTimeout (/var/application/juicebarParse/parse-server/node_modules/mongodb-core/lib/topologies/replset.js:660:33)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
下面是我的连接字符串
mongodb://crajput:PASSWORD@cluster0-shard-00-00-qhwh9.mongodb.net:27017,cluster0-shard-00-01-qhwh9.mongodb.net:27017,cluster0-shard-00-02-qhwh9.mongodb.net:27017/DB_NAME?replicaSet=Cluster0-shard-0&authSource=admin&ssl=true