MongoServerSelectionError: Server selection timed out after 30000 ms cpanel

Hello…

I deployed my node js application so a hosted domain server which i’m using mongoDB as my database. It was working fine for a while then i started getting when it tried to reconnect from the server. Everything works fine locally on my device and IP is allowed on all. it’s a MONGO + SRV connection
MongoServerSelectionError: Server selection timed out after 30000 ms

MongoDB connection error: MongoServerSelectionError: Server selection timed out after 30000 ms
    at EventTarget.<anonymous> (/home/smarthi1/nodevenv/api.smarthivesms.com/20/lib/node_modules/mongodb/lib/sdam/topology.js:276:34)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:814:20)
    at EventTarget.dispatchEvent (node:internal/event_target:749:26)
    at abortSignal (node:internal/abort_controller:371:10)
    at TimeoutController.abort (node:internal/abort_controller:393:5)
    at Timeout.<anonymous> (/home/smarthi1/nodevenv/api.smarthivesms.com/20/lib/node_modules/mongodb/lib/utils.js:1011:92)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7) {
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'ac-ybwkr6x-shard-00-00.mvitc24.mongodb.net:27017' => [ServerDescription],
      'ac-ybwkr6x-shard-00-01.mvitc24.mongodb.net:27017' => [ServerDescription],
      'ac-ybwkr6x-shard-00-02.mvitc24.mongodb.net:27017' => [ServerDescription]
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-q1prnl-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [Symbol(errorLabels)]: Set(0) {}
}
/home/smarthi1/nodevenv/api.smarthivesms.com/20/lib/node_modules/mongoose/lib/connection.js:851
    err = new ServerSelectionError();