Compass error while connection to atlas

When connection to comapss to atlas, following errors occurs-
querySrv ESERVFAIL _mongodb._tcp.mflix-bwqkj.mongodb.net.
What is the solution?

For testing, share the connection string that you’re using. I’d also suggest that you test this out in the mongo shell.

mongodb+srv://m220student:m220password@mflix-bwqkj.mongodb.net/test

And :arrow_up: :question:

Just now i have tried in shell it is connected i have used-
mongo “mongodb+srv://mflix-bwqkj.mongodb.net/test” --username m220student
and then ask password
and i entered -m220password
and start working. so in cluster what should i write

But did you try this in the mongo shell?

yes i have tried and its connected

Please share screenshots of Compass that shows:

  1. The login screen and the connection string
  2. The error message
2 Likes

Thanks, It resolved. Actually I am using company VPN so after deactivating it , started working

1 Like