error (payload): error: cannot connect to mongodb. details: querytxt etimeout
Opened this issue · 3 comments
adekmo commented
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.
ahmadsohail404 commented
did u fix the issue? @adekmo
adekmo commented
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.
ahmadsohail404 commented
I fixed it simply by running: networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4