no primary server available
I connect my mongoDB with nodejs api but get some error with this No primary server available in digitalocan server please help me for any suggestion for this
I user the url for this
mongodb+srv://user:pwd@db-mongodb-blr1-95134-0d81563b.mongo.ondigitalocean.com/admin?authSource=admin&replicaSet=db-mongodb-blr1-95134
And I Use my monogdb compass database connection
mongodb+srv://user:pwd@db-mongodb-blr1-95134-0d81563b.mongo.ondigitalocean.com/admin?tls=true&authSource=admin&replicaSet=db-mongodb-blr1-95134&tlsCAFile=C%3A%5CUsers%5CKishan%5CMusic%5CDownloads%5Cca-certificate+%284%29.crt
and this working and i connect the server database
but not working with nodejs