If port comes in as a string mongodb-core is throwing an error. Using parseInt to avoid.
node_modules/mongodb-core/lib/topologies/replset.js:118
throw new MongoError("seedlist entry must contain a host and port");
^
MongoError: seedlist entry must contain a host and port
at node_modules/mongodb-core/lib/topologies/replset.js:118:13
at Array.forEach (native)
at new ReplSet (node_modules/mongodb-core/lib/topologies/replset.js:115:12)
at new ReplSet (node_modules/mongodb/lib/replset.js:176:17)
at getReplicaSetServers (node_modules/mongodb-migrate/lib/db.js:22:9)
at Object.getConnection (node_modules/mongodb-migrate/lib/db.js:59:9)
at performMigration (node_modules/mongodb-migrate/index.js:268:6)
at commands.down (node_modules/mongodb-migrate/index.js:211:4)
at runMongoMigrate (node_modules/mongodb-migrate/index.js:320:10)
at Object. (node_modules/mongodb-migrate/index.js:380:2)
If port comes in as a string mongodb-core is throwing an error. Using parseInt to avoid.
node_modules/mongodb-core/lib/topologies/replset.js:118 throw new MongoError("seedlist entry must contain a host and port"); ^ MongoError: seedlist entry must contain a host and port at node_modules/mongodb-core/lib/topologies/replset.js:118:13 at Array.forEach (native) at new ReplSet (node_modules/mongodb-core/lib/topologies/replset.js:115:12) at new ReplSet (node_modules/mongodb/lib/replset.js:176:17) at getReplicaSetServers (node_modules/mongodb-migrate/lib/db.js:22:9) at Object.getConnection (node_modules/mongodb-migrate/lib/db.js:59:9) at performMigration (node_modules/mongodb-migrate/index.js:268:6) at commands.down (node_modules/mongodb-migrate/index.js:211:4) at runMongoMigrate (node_modules/mongodb-migrate/index.js:320:10) at Object. (node_modules/mongodb-migrate/index.js:380:2)