Mongoose: MongoError: failed to connect to server [127.0.0.1:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]

Created on 14 Aug 2017  路  1Comment  路  Source: Automattic/mongoose

Version :
Node JS : 7.10.0
Mongoose : 4.11
Mongo : 3.4.1

MongoError: failed to connect to server [127.0.0.1:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]

Scenario : Trying to connect with remote server, with this URL

mongoose.connection.openUri("mongodb://id:pass@ip/db)

Dont know why it gets triggered on 127.0.0.1

Note: The server which is establishing the connection is a https based server. (is this is a issue?)

Most helpful comment

mongod is probably not running, did you check for that?

>All comments

mongod is probably not running, did you check for that?

Was this page helpful?
0 / 5 - 0 ratings