Hi I am getting the following error when nodes app is trying to access Atlas db from google app engine. Following steps I followed
- Upgrade to M10 cluster
- Created a VPC network on GAE
- Created a mongodb peering connection with GAE project id & VPC network
- Created a reciprocal connection on GAE side with mongo atlas Project ID & Project Name
- Connections on both the sides are active.
- Added default atlas CIDR in IP white list
- Try to access db through GAE node app. Verified the connection string url is correct, tried to access db locally with local ip white list, the same issue occured
Getting following error.
Note: ‘xxx’ is place holder
Any suggestion on how to resolve this issue?
{
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
servers: Map {
'xxx-00-pri.xxx.mongodb.net:27017' => [ServerDescription],
'xxx-01-pri.xxx.mongodb.net:27017' => [ServerDescription],
'xxx-02-pri.xxx.mongodb.net:27017' => [ServerDescription]
},
stale: false,
compatible: true,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
setName: 'atlas-7rmoin-shard-0',
maxElectionId: null,
maxSetVersion: null,
commonWireVersion: 0,
logicalSessionTimeoutMinutes: null
},
code: undefined,
[Symbol(errorLabels)]: Set {}
}