Hello Yezzer, If you think this is caused by errors on the GCP side, you are encouraged to rather open an issue in the Public Issue Tracker <https://issuetracker.google.com/>, as more details are needed to investigate, some of which are of a private nature. A publicly visible thread like this one is not suitable for such an investigation.
There is a community tutorial <https://cloud.google.com/community/tutorials/mongodb-atlas-appengineflex-nodejs-app> "Hello World app - MongoDB Atlas and App Engine flexible environment with Node.js" that may serve as a good example. It is worthwhile going through it and verifying that you have set all details correctly. On Tuesday, 02 February 2021 at 11:03:53 UTC-5 Yezzer wrote: > Hi, > > 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 } } > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/04cf81f1-82e4-46c2-847c-7950d2628c0bn%40googlegroups.com.