We are using mongodb community addition . We are able to connect to independent nodes primary, and 2 replicas using direct connection. But when we try to connect to replica set using url:-
mongodb://sorterapp:[email protected]:27017,15.207.33.131:27017,13.234.13.53:27017/?authSource=sorter&replicaSet=stagesorter
It is not able to connect. Error:- getaddrinfo ENOTFOUND primary
Not sure what is the error We tried using mongo compass as well as application library