I'm trying to connect to MongoDB Atlas from App Engine, but getting errors. I've whitelisted
0.0.0.0/0 on MongoDB Atlas as this is just a test project.
I can connect fine from my local node server. Any ideas as to what I can try?
MongoServerSelectionError: connection <monitor> to
35.224.187.131:27017 closed
at Timeout._onTimeout (/app/node_modules/mongodb/lib/core/sdam/topology.js:438:30)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7) {
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
setName: 'atlas-loe0la-shard-0',
maxSetVersion: null,
maxElectionId: null,
servers: Map {
'
cluster0-shard-00-00.pntaf.mongodb.net:27017' => [ServerDescription],
'
cluster0-shard-00-01.pntaf.mongodb.net:27017' => [ServerDescription],
'
cluster0-shard-00-02.pntaf.mongodb.net:27017' => [ServerDescription]
},
stale: false,
compatible: true,
compatibilityError: null,
logicalSessionTimeoutMinutes: 30,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
commonWireVersion: 9
}
}