0

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.

2
  • Have you installed mongoDB on your render instance? Commented Apr 15 at 5:53
  • [ServerDescription] hides a lot of relevant information - can you get it to display that? Commented Apr 16 at 16:59

1 Answer 1

0

You need to add current IP adress, on mongo atlas.

After doing that it will work

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.