MongoServerSelectError

Tell us what’s happening:
I for the love of **** can not connect to this stupid Mongo database and I am over it, like spent two days on this already over it.

Your code so far
server.js file is the same as sample one found in beginning sample, link below

My secrets:
{
“SESSION_SECRET”: “UID”,
“PORT”: “8080”,
“NODE_ENV”: “development”,
“MONGO_URI”: “mongodb+srv://UID:PW@cluster0.r1nlu.mongodb.net/?retryWrites=true&w=majority”
}

Console:
Listening on port 8080
MongoServerSelectionError: connection to 34.225.161.205:27017 closed
at Timeout._onTimeout (/home/runner/Tester-Monkey-Node/node_modules/mongodb/lib/core/sdam/topology.js:438:30)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7) {
reason: TopologyDescription {
type: ‘ReplicaSetNoPrimary’,
setName: null,
maxSetVersion: null,
maxElectionId: null,
servers: Map {
cluster0-shard-00-00.r1nlu.mongodb.net:27017’ => [ServerDescription],
‘REMOVED LINK SO I CAN POST’ => [ServerDescription],
‘REMOVED LINK SO I CAN POST’ => [ServerDescription]
},
stale: false,
compatible: true,
compatibilityError: null,
logicalSessionTimeoutMinutes: null,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
commonWireVersion: null

Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36

Challenge:
serialization-of-a-user-object
Advanced Node & Express

Link to the challenge:

My IP is active on MONGO, don’t go there with me.

Any smart one’s out there?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.