academind/yt-graphql-react-event-booking-api

rsError: queryTxt ETIMEOUT cluster0.rsiaf.mongodb.net

wael93 opened this issue · 0 comments

I use mongoo connection url Like

**mongoose
  .connect(
    `mongodb+srv://${process.env.MONGO_USER}:${
      process.env.MONGO_PASSWORD
    }@cluster0.rsiaf.mongodb.net/${process.env.MONGO_DB}?retryWrites=true&w=majority&ssl=true`
  , { useNewUrlParser: true })
  .then(() => {
    app.listen(3000);
  })
  .catch(err => {
    console.log(err);
  });**

but alwes apper same erorr

rsError: queryTxt ETIMEOUT cluster0.rsiaf.mongodb.net
    at QueryReqWrap.onresolve [as oncomplete] (dns.js:203:19) {
  errno: undefined,
  code: 'ETIMEOUT',
  syscall: 'queryTxt',
  hostname: 'cluster0.rsiaf.mongodb.net'
}