skip to Main Content

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


  1. 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,

    1. head out to your Atlas Dashboard under Database Deployment,
    2. click Connect,
    3. then choose Connect your application.
    4. On the Node.js driver version, lower that to 2.2.12 or later.
      This should give the connection string.
    Login or Signup to reply.
  2. 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:

    1. 208.67.222.222
    2. 1.1.1.1
    3. 8.8.8.8
    4. 9.9.9.9
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search