No primary server available

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

Are you sure the IP address of the source context is on the Atlas IP Access List?

You are using a certificate file in Compass but you don’t seem to use the same file in your node.js connection. Check your driver’s manuals on how to do that.