Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nodemon] app crashed - waiting for file changes before starting... #1855

Closed
Sadanandgadwal opened this issue May 18, 2021 · 0 comments
Closed

Comments

@Sadanandgadwal
Copy link

[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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant