Open wael93 opened 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' }
I use mongoo connection url Like
but alwes apper same erorr