Mongoose 6/ Mongo Atlas: MongoNetworkError: getaddrinfo ENOTFOUND on SRV resolved address #15698
Unanswered
sadeghhosseini
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I had a lot of similar issues this week due to DNS issues with my ISP (ATT) - have you tried connecting on a different network? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use mongoose version 6.
I use a connection string like this to connect to Mongo Atlas.
mongodb+srv://<username>:<password>@xxxx.yyyyy.mongodb.net/?retryWrites=true&w=majority&appName=zzzz. Today after a year I gotMongoNetworkError: getaddrinfo ENOTFOUND ac-abcxyz-lb.yyyyy.mongodb.neterror.It seems that
ac-abcxyz-lb.yyyyy.mongodb.netis the address of a node returned in the SRV DNS lookup to which Mongoose is trying to connect, but DNS fails to resolve the address and mongoose keeps using the same address, without fetching a new address and trying that.Is there anyway that I can setup mongoose to take care of this situation by fetching and trying a new address?
Beta Was this translation helpful? Give feedback.
All reactions