I'm creating a forum for my physics engine website so that people can share their saves with everyone. It works on localhost with MongoDB, but when I upload it to Render, I get an error that says,
MongoServerSelectionError: C09C71AF47700000:error:0A000438:SSL
and the website says, "Cannot GET /". Here is the full error message:
MongoServerSelectionError: C09C71AF47700000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1605:SSL alert number 80
at Topology.selectServer (/opt/render/project/src/node_modules/mongodb/lib/sdam/topology.js:321:38)
at async Topology._connect (/opt/render/project/src/node_modules/mongodb/lib/sdam/topology.js:200:28)
at async Topology.connect (/opt/render/project/src/node_modules/mongodb/lib/sdam/topology.js:152:13)
at async topologyConnect (/opt/render/project/src/node_modules/mongodb/lib/mongo_client.js:233:17)
at async MongoClient._connect (/opt/render/project/src/node_modules/mongodb/lib/mongo_client.js:246:13) {
errorLabelSet: Set(0) {},
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
servers: Map(3) {
'boxsandcluster-shard-00-01.uumcy.mongodb.net:27017' => [ServerDescription],
'boxsandcluster-shard-00-02.uumcy.mongodb.net:27017' => [ServerDescription],
'boxsandcluster-shard-00-00.uumcy.mongodb.net:27017' => [ServerDescription]
},
stale: false,
compatible: true,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
setName: 'atlas-zq9ej0-shard-0',
maxElectionId: null,
maxSetVersion: null,
commonWireVersion: 0,
logicalSessionTimeoutMinutes: null
},
code: undefined,
The routes not requiring MongoDB work, but any connecting to MongoDB doesn't work and results in an error.
How can I fix this?
MongoDB version is 6.15.0.
[ServerDescription]hides a lot of relevant information - can you get it to display that?