You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[nodemon] 2.0.7
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node server.js
info - Using webpack 5. Reason: no next.config.js https://nextjs.org/docs/messages/webpack5
event - compiled successfully
Epress server running on ${PORT}
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 (C:\Users\sadan\Course\node_modules\mongoose\lib\connection.js:846:32)
at C:\Users\sadan\Course\node_modules\mongoose\lib\index.js:351:10
at C:\Users\sadan\Course\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:5
at new Promise ()
at promiseOrCallback (C:\Users\sadan\Course\node_modules\mongoose\lib\helpers\promiseOrCallback.js:30:10)
at Mongoose._promiseOrCallback (C:\Users\sadan\Course\node_modules\mongoose\lib\index.js:1149:10)
at Mongoose.connect (C:\Users\sadan\Course\node_modules\mongoose\lib\index.js:350:20)
at connectDb (C:\Users\sadan\Course\utilsServer\connectDb.js:5:20)
at Object. (C:\Users\sadan\Course\server.js:12:1)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
setName: null,
maxSetVersion: null,
maxElectionId: null,
servers: Map(3) {
'cluster0-shard-00-01.wzkf6.mongodb.net:27017' => [ServerDescription],
'cluster0-shard-00-02.wzkf6.mongodb.net:27017' => [ServerDescription],
'cluster0-shard-00-00.wzkf6.mongodb.net:27017' => [ServerDescription]
},
stale: false,
compatible: true,
compatibilityError: null,
logicalSessionTimeoutMinutes: null,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
commonWireVersion: null
}
}
[nodemon] app crashed - waiting for file changes before starting...
The text was updated successfully, but these errors were encountered:
[nodemon] 2.0.7
[nodemon] to restart at any time, enter
rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting
node server.js
info - Using webpack 5. Reason: no next.config.js https://nextjs.org/docs/messages/webpack5
event - compiled successfully
Epress server running on ${PORT}
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 (C:\Users\sadan\Course\node_modules\mongoose\lib\connection.js:846:32)
at C:\Users\sadan\Course\node_modules\mongoose\lib\index.js:351:10
at C:\Users\sadan\Course\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:5
at new Promise ()
at promiseOrCallback (C:\Users\sadan\Course\node_modules\mongoose\lib\helpers\promiseOrCallback.js:30:10)
at Mongoose._promiseOrCallback (C:\Users\sadan\Course\node_modules\mongoose\lib\index.js:1149:10)
at Mongoose.connect (C:\Users\sadan\Course\node_modules\mongoose\lib\index.js:350:20)
at connectDb (C:\Users\sadan\Course\utilsServer\connectDb.js:5:20)
at Object. (C:\Users\sadan\Course\server.js:12:1)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
setName: null,
maxSetVersion: null,
maxElectionId: null,
servers: Map(3) {
'cluster0-shard-00-01.wzkf6.mongodb.net:27017' => [ServerDescription],
'cluster0-shard-00-02.wzkf6.mongodb.net:27017' => [ServerDescription],
'cluster0-shard-00-00.wzkf6.mongodb.net:27017' => [ServerDescription]
},
stale: false,
compatible: true,
compatibilityError: null,
logicalSessionTimeoutMinutes: null,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
commonWireVersion: null
}
}
[nodemon] app crashed - waiting for file changes before starting...
The text was updated successfully, but these errors were encountered: