V
V
Vitya Podpriklopolny2019-08-19 10:41:55
MongoDB
Vitya Podpriklopolny, 2019-08-19 10:41:55

Problems with MongoDB Atlas?

Good afternoon!
I'm writing a test application on Node
Constantly when I use MongoDB Atlas there are some problems with connecting to the cluster. I added my ip to the whitelist , and the next day there was another problem with the connection. I went into the panel, and added ip again and it worked. Apparently I have a dynamic ip and it changed after a while.
This went on for some time. Then it stopped working again, I add ip , but still the error

MongoNetworkError: failed to connect to server [cluster0-shard-00-01-ngbam.mongodb.net:27017] on first connect [Error: connect ECONNREFUSED 52.58.188.237:27017
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1054:14) {
  name: 'MongoNetworkError',
  errorLabels: [Array],
  [Symbol(mongoErrorContextSymbol)]: {}
}]

I even set the setting that you can connect to the database from any ip, but it doesn't work!
The problem is solved either by creating a new account, or by creating a new cluster (new project). Well, what should I do now, constantly create new databases and accounts?
Please tell me what could be the reason, and how can I get rid of this scourge? Thanks in advance

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