I am developing a MERN stack application. My Node web server used to work fine. Recently however, whenever I start my Node server, I get the following error:
[1] Error: queryTxt ESERVFAIL cluster0.b4oyxi0.mongodb.net
[0] [HPM] Error occurred while proxying request localhost:3000/api/users/login to http://localhost:5000/ [ECONNRESET] (https://nodejs.org/api/errors.html#errors_common_system_errors)
[1] [nodemon] app crashed - waiting for file changes before starting...
What does this error mean and how can I fix it?
2
Answers
Not exactly sure what the error means. I encountered a similar error and the non +srv connection string did it for me.
To get one,
This should give the connection string.
It’s a DNS server issue. Try changing your DNS server in your network settings to any of these, or any other trusted one you know: