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

Code for GraphQL + React Event Booking API Series: https://academind.com/learn/node-js/graphql-with-node-react-full-app/
394 stars 302 forks source link

rsError: queryTxt ETIMEOUT cluster0.rsiaf.mongodb.net #16

Open wael93 opened 4 years ago

wael93 commented 4 years ago

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'
}