Answer the question
In order to leave comments, you need to log in
When the Internet is disconnected, I can not connect via nodejs to mongodb. Where is the mistake?
I connect through the console without any problems, but when I start the application it gives an error:
Error Connecting to database: { [MongoError: getaddrinfo ENOENT localhost:27017]
name: 'MongoError',
message: 'getaddrinfo ENOENT localhost:27017' }
db: 'mongodb://' + (process.env.DB_PORT_27017_TCP_ADDR || 'localhost') + '/mean-dev',
Answer the question
In order to leave comments, you need to log in
message: 'getaddrinfo ENOENT localhost:27017'"Can't get DNS for localhost domain - no internet."
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question