⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
⚠️  MongoDB disconnected
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 39861252,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 39861256,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 39861289,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 43387290,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 43387268,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 43387314,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 95775451,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 95775830,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 95775502,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 163241626,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 163241626,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 163241651,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 205959486,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 205959511,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 205959542,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 256482417,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 256482394,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 256482417,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 256482370,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 256482404,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 256482410,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 264065078,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 264065103,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 264065109,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 264448608,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 264448610,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 264448611,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 288771508,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 288771545,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 288771543,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 288771517,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 288771533,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 288771532,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 297544814,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 297544826,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 297544826,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 314374340,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 314374368,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 314374392,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 314377448,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 314377448,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 314377448,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 314410166,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 314410166,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 314410166,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329045163,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329045155,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329045223,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329057546,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329057546,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329057546,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329786727,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329786729,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329786736,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329821216,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329821217,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329821216,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329885535,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329885535,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 329885535,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 335836157,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 335836237,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 335836221,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 337488615,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 337488650,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 337488646,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 340957867,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 340957867,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 340957867,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 341513753,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 341513755,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 341513756,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 386570781,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 386570775,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 386570777,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 389446740,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 389446806,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 389446821,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 389449167,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 389449167,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 389449168,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 438759110,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 438759121,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 438759110,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 438759113,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 438759117,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 438759116,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 453148885,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 453148912,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 453148988,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 453163865,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 453163865,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 453163865,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 466528658,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 466528690,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 466528710,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 466529863,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 466529864,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 466529864,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 467011543,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 467011584,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 467011552,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 473749312,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 473749365,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 473749431,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 490368342,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 490368280,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 490368308,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 510185853,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 510185847,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 510185884,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 510185917,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 510185917,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 510185917,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 524215557,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 524215559,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 524215559,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 524222605,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 524222605,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 524222605,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 547417046,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 547417045,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 547417046,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 552113966,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 552113966,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 552113966,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 570417981,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 570417983,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 570417983,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 573863783,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 573863851,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 573863824,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 573886068,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 573886068,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 573886068,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 589274633,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 589274622,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 589274670,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 589295831,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 589295832,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 589295832,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 592885797,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 592885816,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 592885862,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 599900456,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 599900465,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 599900544,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 630432222,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 630432279,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 630432299,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 649986079,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 649986079,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 649986079,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 676741867,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 676741870,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 676741903,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 696836265,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 696836266,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 696836267,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 696846622,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 696846631,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 696846632,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 701785896,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 701785896,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 701785896,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 702613677,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 702613677,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 702613677,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 703992235,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 703992235,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 703992235,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 703992363,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 703992364,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 703992364,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 704222449,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 704222449,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 704222449,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759050603,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759050640,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759050639,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759085110,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759085110,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759085110,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759090804,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759090810,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759090810,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759096664,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759096664,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 759096664,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767685559,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767685559,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767685567,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767725199,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767725199,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767725199,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767730839,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767730839,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767730841,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767736673,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767736673,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 767736675,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 781247446,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 781247447,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 781247447,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 781261149,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 781261149,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 781261149,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 839439013,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 839439008,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 839439018,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 889808595,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 889808587,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 889808631,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 917864313,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 917859695,
        lastWriteDate: 0,
        error: null,
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 917864313,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 981670034,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 981670035,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 981670035,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087183188,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087183189,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087183189,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087235856,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087235856,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087235857,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087241558,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087241558,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087241558,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087247331,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087247328,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087247331,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087252976,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087252978,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1087252978,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1119112235,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1119112185,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1119112197,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1128185562,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1128185562,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1128185563,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1129776510,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1129776519,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1129776518,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1189499736,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1189499867,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1189499806,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1227583366,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1227583369,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1227583369,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1261387689,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1261387689,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1261387690,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1274989275,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1274989283,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1274989287,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1292841134,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1292841150,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1292841174,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1295341966,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1295341967,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1295341967,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1308047196,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1308047196,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1308047198,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1313106526,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1313106526,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1313106526,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1322581104,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1322581105,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1322581105,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.20.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1350304169,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1350304169,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1350304169,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1350316979,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1350316980,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1350316980,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1351685470,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1351685470,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1351685470,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1351691274,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1351691277,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1351691277,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1352304819,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1352304819,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1352304821,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1352310383,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1352310383,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1352310383,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1352316064,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1352316061,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1352316064,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1367054613,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1367054698,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1367054646,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1367062002,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1367062002,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1367062002,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1417508689,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1417508668,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1417508730,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1460744051,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1460744051,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1460744051,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1461429378,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1461429386,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1461429396,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1478325782,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1478325782,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1478325782,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1483387364,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1483387364,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1483387365,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1484294562,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1484294562,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1484294577,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1530925960,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1530925975,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1530925970,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1563495510,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1563495510,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1563495511,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1590061474,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1590061503,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1590061501,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1590061523,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1590061485,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1590061507,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1630904806,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1630904806,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1630904806,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1643574230,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1643574230,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1643574230,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645059299,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645059300,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645059300,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645080345,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645080348,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645080350,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645412296,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645412297,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645412297,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645421944,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645421945,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645421946,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645513364,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645513364,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1645513366,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646363381,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646363382,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646363382,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646405653,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646405653,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646405653,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646424531,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646424531,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646424531,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646447233,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646447240,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646447240,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646688352,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646688353,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646688353,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646703598,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646703601,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646703601,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
MongoDB not connected. State: 2
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646709365,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646709365,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1646709367,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1680477267,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1680477321,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1680477320,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1680478561,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1680478561,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1680478562,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1695233773,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1695233773,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1695233882,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1702233122,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1702233119,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1702233174,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1704452616,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1704452653,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1704452618,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1705970057,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1705970060,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1705970093,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1729368870,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1729368838,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1729368844,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1729369489,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1729369489,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1729369489,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1817545502,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1817545503,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1817545503,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1817857489,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1817857489,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1817857490,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1850304392,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1850304392,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1850304394,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1882964320,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1882964363,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1882964355,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1909837250,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1909837250,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1909837253,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1935142346,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1935142372,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1935142373,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1935149992,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1935149992,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1935149992,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1994728134,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1994728134,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 1994728175,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2018097856,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2018097857,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2018097858,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2058682238,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2058682264,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2058682270,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2062142452,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2062142481,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2062142562,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2066683257,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2066683284,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2066683287,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327
                const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
                                     ^

MongoServerSelectionError: connect ECONNREFUSED 159.143.50.233:27017
    at Topology.selectServer (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:327:38)
    at async Topology._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:200:28)
    at async Topology.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/sdam/topology.js:152:13)
    at async topologyConnect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:264:17)
    at async MongoClient._connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:277:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:202:13)
    at async MongoClient.connect (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/mongo_client.js:446:16) {
  errorLabelSet: Set(0) {},
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'cluster0-shard-00-00.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-00.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2072520866,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.233',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-01.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-01.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2072520866,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.50.253:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.50.253:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.50.253',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      },
      'cluster0-shard-00-02.t1woc.mongodb.net:27017' => ServerDescription {
        address: 'cluster0-shard-00-02.t1woc.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        minRoundTripTime: 0,
        lastUpdateTime: 2072520867,
        lastWriteDate: 0,
        error: MongoNetworkError: connect ECONNREFUSED 159.143.51.15:27017
            at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
            at TLSSocket.wrapper (node:events:639:12)
            at TLSSocket.emit (node:events:514:28)
            at emitErrorNT (node:internal/streams/destroy:170:8)
            at emitErrorCloseNT (node:internal/streams/destroy:129:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errorLabelSet: Set(1) { 'ResetPool' },
          beforeHandshake: false,
          [cause]: Error: connect ECONNREFUSED 159.143.51.15:27017
              at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
            errno: -111,
            code: 'ECONNREFUSED',
            syscall: 'connect',
            address: '159.143.51.15',
            port: 27017
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        maxMessageSizeBytes: null,
        maxWriteBatchSize: null,
        maxBsonObjectSize: null,
        primary: null,
        me: null,
        '$clusterTime': null,
        iscryptd: false
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-2zjt85-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [cause]: MongoNetworkError: connect ECONNREFUSED 159.143.50.233:27017
      at TLSSocket.<anonymous> (/home/academi1/nodevenv/pcbserver.bitobi.co.uk/24/lib/node_modules/mongodb/lib/cmap/connect.js:286:44)
      at TLSSocket.wrapper (node:events:639:12)
      at TLSSocket.emit (node:events:514:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    errorLabelSet: Set(1) { 'ResetPool' },
    beforeHandshake: false,
    [cause]: Error: connect ECONNREFUSED 159.143.50.233:27017
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2021:16) {
      errno: -111,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '159.143.50.233',
      port: 27017
    }
  }
}

Node.js v24.21.0
