J
J
jeruthadam2019-07-02 15:39:39
MongoDB
jeruthadam, 2019-07-02 15:39:39

Why is the driver not reconnecting to monge?

Monga is not running.

const client = new MongoClient(url, {
  useNewUrlParser: true,
  autoReconnect: true,
  reconnectTries: 60,
  reconnectInterval: 1000,
});

I expected retries from the server to connect, but nothing happens. How to reconnect?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question