Mongoose's newspaper when I upgraded from [email protected] to [email protected], there was a problem:
Unhandled rejection Mongoerror:no MONGOs proxies found in seed list
What to do, when I Google a bit found:
https://github.com/christkv/mongodb-core/issues/118
It turned out to be a MONGO bug.
Hey, yo! Look at the source, this is [email protected]
Mongoose.prototype.createConnection = function (URI, options) {
var conn = new Connection (this);
This.connections.push (conn);
var rsoption = Options && (options.replset | | options.replset);
if (arguments.length) {
if (rgxreplset.test (arguments[0]) | | Checkreplicasetinuri (ARGUMENTS[0])) {
Conn.op ENSET.APPLY (conn, arguments);
} else if (Rsoption &&
(Rsoption.replicaset | | rsoption.rs_name)) {
Conn.openSet.apply (conn, arguments);
} else {
conn.open.apply (conn, arguments);
}
}
return conn;
};
Look at the lower version of [email protected]
Mongoose.prototype.createConnection = function (URI, options) {
var conn = new Connection (this);
This.connections.push (conn);
if (arguments.length) {
if (Rgxreplset.test (arguments[0]) | | Checkreplicasetinuri (ARGUMENTS[0])) {
CONN.OPENSET.APPLY (conn, arguments);
} else if (Options && options.replset &&
(Options.replset.replicaSet | | options.replset.rs_name)) {
CONN.OPENSET.APPLY (conn, arguments);
} else {
CONN.OPEN.APPLY (conn, arguments);
}
}
Return conn;
};
That is, in the low version, your MongoDB has made a replica set configuration and do not do replication set configuration can be connected to MongoDB, in high Ben if you make a copy set, the options in the parameters need to add a
Replset or Replset S is true, and the copy set is not made to be false.
MongoDB has a pit error no mongos proxies found in seed list