adrianhajdin/ecommerce

error (payload): error: cannot connect to mongodb. details: querytxt etimeout

Opened this issue · 3 comments

please help me to resolve this issue.
I've tried following this solution
https://stackoverflow.com/questions/61800062/error-querytxt-etimeout-when-connecting-to-mongodb-atlas-using-mongoose
but it's still not working.

did u fix the issue? @adekmo

yes i did, i dont know why but i only change the version mongodb to 2.2.12 or later when choose connect to cluster with driver.

I fixed it simply by running: networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4