❌ Error fetching lead posts: MongoServerSelectionError: connect ECONNREFUSED 159.41.183.254:27017
    at Topology.selectServer (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async autoConnect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/operations/execute_operation.js:102:13)
    at async abortable (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/utils.js:1188:16)
    at async executeOperation (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/operations/execute_operation.js:40:11)
    at async AggregationCursor._initialize (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/cursor/aggregation_cursor.js:57:26) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'ac-ir6ctii-shard-00-01.mq3iyab.mongodb.net:27017' => [ServerDescription],
      'ac-ir6ctii-shard-00-02.mq3iyab.mongodb.net:27017' => [ServerDescription],
      'ac-ir6ctii-shard-00-00.mq3iyab.mongodb.net:27017' => [ServerDescription]
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-ttrqul-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.41.183.254:27017
      at TLSSocket.<anonymous> (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at Object.onceWrapper (node:events:639:26)
      at TLSSocket.emit (node:events:524:28)
      at emitErrorNT (node:internal/streams/destroy:169:8)
      at emitErrorCloseNT (node:internal/streams/destroy:128:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.41.183.254:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.41.183.254',
      port: 27017
    }
  }
}
❌ Error fetching lead posts: MongoTopologyClosedError: Topology is closed
    at processWaitQueue (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/sdam/topology.js:571:44)
    at Topology.selectServer (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/sdam/topology.js:314:9)
    at tryOperation (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/operations/execute_operation.js:148:33)
    at executeOperation (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/operations/execute_operation.js:78:22)
    at AggregationCursor._initialize (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/cursor/aggregation_cursor.js:57:73)
    at AggregationCursor.cursorInit (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/cursor/abstract_cursor.js:632:38)
    at AggregationCursor.fetchBatch (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/cursor/abstract_cursor.js:666:24)
    at AggregationCursor.next (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/cursor/abstract_cursor.js:342:28)
    at [Symbol.asyncIterator] (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/cursor/abstract_cursor.js:250:45)
    at AsyncGenerator.next (<anonymous>) {
  errorLabelSet: Set(0) {}
}
❌ Error fetching lead posts: MongoServerSelectionError: connect ECONNREFUSED 159.41.183.219:27017
    at Topology.selectServer (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async autoConnect (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/operations/execute_operation.js:102:13)
    at async abortable (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/utils.js:1188:16)
    at async executeOperation (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/operations/execute_operation.js:40:11)
    at async AggregationCursor._initialize (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/cursor/aggregation_cursor.js:57:26) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'ac-ir6ctii-shard-00-00.mq3iyab.mongodb.net:27017' => [ServerDescription],
      'ac-ir6ctii-shard-00-02.mq3iyab.mongodb.net:27017' => [ServerDescription],
      'ac-ir6ctii-shard-00-01.mq3iyab.mongodb.net:27017' => [ServerDescription]
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-ttrqul-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.41.183.219:27017
      at TLSSocket.<anonymous> (/home/tyfxvbkb/nodevenv/server.educationreport24.com/20/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at Object.onceWrapper (node:events:639:26)
      at TLSSocket.emit (node:events:524:28)
      at emitErrorNT (node:internal/streams/destroy:169:8)
      at emitErrorCloseNT (node:internal/streams/destroy:128:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.41.183.219:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.41.183.219',
      port: 27017
    }
  }
}
