Skip to content

Instantly share code, notes, and snippets.

@DragonOsman
Created July 1, 2022 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DragonOsman/eac8fe5aa20e284b2217afea4d21dcbf to your computer and use it in GitHub Desktop.
Save DragonOsman/eac8fe5aa20e284b2217afea4d21dcbf to your computer and use it in GitHub Desktop.
MongooseServerSelectionError: connection <monitor> to 34.198.25.25:27017 closed
at NativeConnection.Connection.openUri (E:\programming\node-auth\node_modules\mongoose\lib\connection.js:819:32)
at E:\programming\node-auth\node_modules\mongoose\lib\index.js:377:10
at E:\programming\node-auth\node_modules\mongoose\lib\helpers\promiseOrCallback.js:32:5
at new Promise (<anonymous>)
at promiseOrCallback (E:\programming\node-auth\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:10)
at Mongoose._promiseOrCallback (E:\programming\node-auth\node_modules\mongoose\lib\index.js:1220:10)
at Mongoose.connect (E:\programming\node-auth\node_modules\mongoose\lib\index.js:376:20)
at initiateMongoServer (E:\programming\node-auth\config\db.js:7:20)
at Object.<anonymous> (E:\programming\node-auth\index.js:5:1)
at Module._compile (node:internal/modules/cjs/loader:1105:14) {
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
servers: Map(3) {
'cluster0-shard-00-02.asbjy.mongodb.net:27017' => [ServerDescription],
'cluster0-shard-00-00.asbjy.mongodb.net:27017' => [ServerDescription],
'cluster0-shard-00-01.asbjy.mongodb.net:27017' => [ServerDescription]
},
stale: false,
compatible: true,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
setName: 'atlas-ggib80-shard-0',
logicalSessionTimeoutMinutes: undefined
},
code: undefined
}
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
MongooseServerSelectionError: connection <monitor> to 34.198.25.25:27017 closed
at NativeConnection.Connection.openUri (E:\programming\node-auth\node_modules\mongoose\lib\connection.js:819:32)
at E:\programming\node-auth\node_modules\mongoose\lib\index.js:377:10
at E:\programming\node-auth\node_modules\mongoose\lib\helpers\promiseOrCallback.js:32:5
at new Promise (<anonymous>)
at promiseOrCallback (E:\programming\node-auth\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:10)
at Mongoose._promiseOrCallback (E:\programming\node-auth\node_modules\mongoose\lib\index.js:1220:10)
at Mongoose.connect (E:\programming\node-auth\node_modules\mongoose\lib\index.js:376:20)
at initiateMongoServer (E:\programming\node-auth\config\db.js:7:20)
at Object.<anonymous> (E:\programming\node-auth\index.js:5:1)
at Module._compile (node:internal/modules/cjs/loader:1105:14) {
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
servers: Map(3) {
'cluster0-shard-00-02.asbjy.mongodb.net:27017' => ServerDescription {
_hostAddress: HostAddress {
isIPv6: false,
host: 'cluster0-shard-00-02.asbjy.mongodb.net',
port: 27017
},
address: 'cluster0-shard-00-02.asbjy.mongodb.net:27017',
type: 'Unknown',
hosts: [],
passives: [],
arbiters: [],
tags: {},
minWireVersion: 0,
maxWireVersion: 0,
roundTripTime: -1,
lastUpdateTime: 10633191,
lastWriteDate: 0,
error: MongoNetworkError: connection <monitor> to 34.198.25.25:27017 closed
at Connection.onClose (E:\programming\node-auth\node_modules\mongodb\lib\cmap\connection.js:138:19)
at TLSSocket.<anonymous> (E:\programming\node-auth\node_modules\mongodb\lib\cmap\connection.js:65:46)
at TLSSocket.emit (node:events:527:28)
at node:net:709:12
at TCP.done (node:_tls_wrap:582:7) {
[Symbol(errorLabels)]: Set(0) {}
}
},
'cluster0-shard-00-00.asbjy.mongodb.net:27017' => ServerDescription {
_hostAddress: HostAddress {
isIPv6: false,
host: 'cluster0-shard-00-00.asbjy.mongodb.net',
port: 27017
},
address: 'cluster0-shard-00-00.asbjy.mongodb.net:27017',
type: 'Unknown',
hosts: [],
passives: [],
arbiters: [],
tags: {},
minWireVersion: 0,
maxWireVersion: 0,
roundTripTime: -1,
lastUpdateTime: 10632359,
lastWriteDate: 0,
error: MongoNetworkError: connection <monitor> to 50.19.188.17:27017 closed
at Connection.onClose (E:\programming\node-auth\node_modules\mongodb\lib\cmap\connection.js:138:19)
at TLSSocket.<anonymous> (E:\programming\node-auth\node_modules\mongodb\lib\cmap\connection.js:65:46)
at TLSSocket.emit (node:events:527:28)
at node:net:709:12
at TCP.done (node:_tls_wrap:582:7) {
[Symbol(errorLabels)]: Set(0) {}
}
},
'cluster0-shard-00-01.asbjy.mongodb.net:27017' => ServerDescription {
_hostAddress: HostAddress {
isIPv6: false,
host: 'cluster0-shard-00-01.asbjy.mongodb.net',
port: 27017
},
address: 'cluster0-shard-00-01.asbjy.mongodb.net:27017',
type: 'Unknown',
hosts: [],
passives: [],
arbiters: [],
tags: {},
minWireVersion: 0,
maxWireVersion: 0,
roundTripTime: -1,
lastUpdateTime: 10632542,
lastWriteDate: 0,
error: MongoNetworkError: connection <monitor> to 54.85.23.35:27017 closed
at Connection.onClose (E:\programming\node-auth\node_modules\mongodb\lib\cmap\connection.js:138:19)
at TLSSocket.<anonymous> (E:\programming\node-auth\node_modules\mongodb\lib\cmap\connection.js:65:46)
at TLSSocket.emit (node:events:527:28)
at node:net:709:12
at TCP.done (node:_tls_wrap:582:7) {
[Symbol(errorLabels)]: Set(0) {}
}
}
},
stale: false,
compatible: true,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
setName: 'atlas-ggib80-shard-0',
logicalSessionTimeoutMinutes: undefined
},
code: undefined
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment