I’m trying to connect to my MongoDB atlas cluster with Compass.
This is my uri: mongodb+srv://username:email@example.com/test?retryWrites=true&w=majority
But after 10s trying to connect, I get the error: querySrv ETIMEOUT _mongodb._tcp.boursogame-9eaqw.mongodb.net
I have found this solution on stack overflow (express - Can't connect to MongoDB Atlas (queryTxt ETIMEOUT) - Stack Overflow) wich worked for me, so here is my second uri that work for connecting via Compass : mongodb://username:firstname.lastname@example.org:27017,boursogame-shard-00-01-9eaqw.mongodb.net:27017,boursogame-shard-00-02-9eaqw.mongodb.net:27017/test?ssl=true&replicaSet=ClusterMasjeed1-shard-0&authSource=admin&retryWrites=true
But now I want to connect via a nodejs application and I can’t make it work. I don’t really understand what I’m doing wrong. I tried on an other computer and I made it works easily with the first uri. Help?
Ps: All IP are whitelisted (0.0.0.0) and my port 27017 is open (tryed on portquiz.net:27017)
@Sebastian_Alvarado Please start a new topic for your issue including relevant details of your environment such as the specific version of the driver/client you are trying to connect with and any error messages received.