title: Connection to MongoDB Atlas Cluster error
body: <p>I am facing an issue connecting to my MongoDB Atlas cluster via Node.js, express and mongoose:</p>
  
  <pre><code>{ MongoNetworkError: connection 4 to mongodb-passport-auth-shard-00-00-vp7yg.mongodb.net:27017 closed
      at TLSSocket.&lt;anonymous&gt; (C:\Users\Vishesh\Documents\Projects\nodejs-passport-auth\node_modules\mongodb-core\lib\connection\connection.js:276:9)
      at Object.onceWrapper (events.js:273:13)
      at TLSSocket.emit (events.js:187:15)
      at _handle.close (net.js:606:12)
      at TCP.done (_tls_wrap.js:386:7)
    name: 'MongoNetworkError',
    errorLabels: [ 'TransientTransactionError' ],
    [Symbol(mongoErrorContextSymbol)]: {} }
  </code></pre>
  
  <p>Here is the code I used for connecting to my cluster via a Short SRV connection string:</p>
  
  <pre><code>mongoose
    .connect(
      'mongodb+srv://myname:mypwd@myapp-vp7yg.mongodb.net/test?retryWrites=true',
      { useNewUrlParser: true }
    )
    .then(() =&gt; console.log("Connected to mongodb..."))
    .catch(err =&gt; console.log(err));
  </code></pre>