-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
(base) leotreasure@Leos-MBP backend % node main 3001
mongodb+srv://admin:undefined@postax.a1vpe.mongodb.net/AnalysisDep?retryWrites=true&w=majority
mongodb+srv://admin:undefined@postax.a1vpe.mongodb.net/AnalysisDep?retryWrites=true&w=majority
the options [userFindAndModify] is not supported
express-validator: requires to express-validator/check are deprecated.You should just use require("express-validator") instead.
(node:89785) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
App Listening on port 3001
(base) leotreasure@Leos-MBP frontend % npm start
Database connection error MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/
/Users/leotreasure/CryptoCount/backend/node_modules/mongoose/lib/connection.js:839
const serverSelectionError = new ServerSelectionError();
^
MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/
at NativeConnection.Connection.openUri (/Users/leotreasure/CryptoCount/backend/node_modules/mongoose/lib/connection.js:839:32)
at /Users/leotreasure/CryptoCount/backend/node_modules/mongoose/lib/index.js:348:10
at /Users/leotreasure/CryptoCount/backend/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
at new Promise (<anonymous>)
at promiseOrCallback (/Users/leotreasure/CryptoCount/backend/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
at Mongoose._promiseOrCallback (/Users/leotreasure/CryptoCount/backend/node_modules/mongoose/lib/index.js:1140:10)
at Mongoose.connect (/Users/leotreasure/CryptoCount/backend/node_modules/mongoose/lib/index.js:347:20)
at InitiateMongoServer (/Users/leotreasure/CryptoCount/backend/config/db.js:12:18)
at Object.<anonymous> (/Users/leotreasure/CryptoCount/backend/main.js:13:1)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
setName: null,
maxSetVersion: null,
maxElectionId: null,
servers: Map(3) {
'postax-shard-00-01.a1vpe.mongodb.net:27017' => ServerDescription {
address: 'postax-shard-00-01.a1vpe.mongodb.net:27017',
error: MongoNetworkError: connection <monitor> to 3.222.228.106:27017 closed
at /Users/leotreasure/CryptoCount/backend/node_modules/mongodb/lib/cmap/connection.js:68:15
at Map.forEach (<anonymous>)
at TLSSocket.<anonymous> (/Users/leotreasure/CryptoCount/backend/node_modules/mongodb/lib/cmap/connection.js:67:20)
at TLSSocket.emit (node:events:390:28)
at node:net:687:12
at TCP.done (node:_tls_wrap:580:7),
roundTripTime: -1,
lastUpdateTime: 1875631116,
lastWriteDate: null,
opTime: null,
type: 'Unknown',
topologyVersion: undefined,
minWireVersion: 0,
maxWireVersion: 0,
hosts: [],
passives: [],
arbiters: [],
tags: []
},
'postax-shard-00-02.a1vpe.mongodb.net:27017' => ServerDescription {
address: 'postax-shard-00-02.a1vpe.mongodb.net:27017',
error: MongoNetworkError: connection <monitor> to 54.205.212.181:27017 closed
at /Users/leotreasure/CryptoCount/backend/node_modules/mongodb/lib/cmap/connection.js:68:15
at Map.forEach (<anonymous>)
at TLSSocket.<anonymous> (/Users/leotreasure/CryptoCount/backend/node_modules/mongodb/lib/cmap/connection.js:67:20)
at TLSSocket.emit (node:events:390:28)
at node:net:687:12
at TCP.done (node:_tls_wrap:580:7),
roundTripTime: -1,
lastUpdateTime: 1875631198,
lastWriteDate: null,
opTime: null,
type: 'Unknown',
topologyVersion: undefined,
minWireVersion: 0,
maxWireVersion: 0,
hosts: [],
passives: [],
arbiters: [],
tags: []
},
'postax-shard-00-00.a1vpe.mongodb.net:27017' => ServerDescription {
address: 'postax-shard-00-00.a1vpe.mongodb.net:27017',
error: MongoNetworkError: connection <monitor> to 34.233.192.55:27017 closed
at /Users/leotreasure/CryptoCount/backend/node_modules/mongodb/lib/cmap/connection.js:68:15
at Map.forEach (<anonymous>)
at TLSSocket.<anonymous> (/Users/leotreasure/CryptoCount/backend/node_modules/mongodb/lib/cmap/connection.js:67:20)
at TLSSocket.emit (node:events:390:28)
at node:net:687:12
at TCP.done (node:_tls_wrap:580:7),
roundTripTime: -1,
lastUpdateTime: 1875630407,
lastWriteDate: null,
opTime: null,
type: 'Unknown',
topologyVersion: undefined,
minWireVersion: 0,
maxWireVersion: 0,
hosts: [],
passives: [],
arbiters: [],
tags: []
}
},
stale: false,
compatible: true,
compatibilityError: null,
logicalSessionTimeoutMinutes: null,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
commonWireVersion: null
}
}
Node.js v17.2.0
Metadata
Metadata
Assignees
Labels
No labels