Connecting to MongoDB Atlas using Golang mgo: Persistent no reachable server to replica set
<p>I have a replica set from MongoDB atlas, to which I can connect with ANY other language, and regular mongo client, with the URL provided with the format :</p>
<p><code>mongodb://user:pass@prefix1.mongodb.net:27017,prefix2.mongodb.net:27017,prefix3.mongodb.net:27017/test?&amp;replicaSet=Cluster0-shard-0&amp;authSource=admin</code></p>
<p>No matter what I tried, adding <code>ssl=true</code> and removing, nothing works. It is always <strong>&quot;no reachable server&quot;</strong>.</p>
<p>I tried every single combination for URL, every combination for dialConfig, and also Dial and DialWithConfig configurations.</p>
<p>What could be the reason ?</p>