'nodemon server is giving this error when i am starting the server with npm run start-dev
MongoServerSelectionError: getaddrinfo EAI_AGAIN cluster0-shard-00-01.qvjmj.mongodb.net at Timeout._onTimeout (/media/alax/New Volume/Programming Hero/Assignment/Assignment-11/medi-house-server/node_modules/mongodb/lib/sdam/topology.js:318:38) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7) { reason: TopologyDescription { type: 'ReplicaSetNoPrimary', servers: Map(3) { 'cluster0-shard-00-02.qvjmj.mongodb.net:27017' => [ServerDescription], 'cluster0-shard-00-00.qvjmj.mongodb.net:27017' => [ServerDescription], 'cluster0-shard-00-01.qvjmj.mongodb.net:27017' => [ServerDescription] }, stale: false, compatible: true, heartbeatFrequencyMS: 10000, localThresholdMS: 15, setName: 'atlas-swmcof-shard-0', logicalSessionTimeoutMinutes: undefined }, code: undefined, [Symbol(errorLabels)]: Set(0) {} }
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
