Hi, I am just doing normal CRUD operation using mongoose in my nodejs application, and suddenly this error pop out.
/usr/src/app/node_modules/mongodb/lib/cmap/connection_pool.js:262
connection.onError(new errors_1.PoolClearedOnNetworkError(this));
^
PoolClearedOnNetworkError: Connection to ac-727rc86-shard-00-01.fgbtzus.mongodb.net:27017 interrupted due to server monitor timeout
at ConnectionPool.interruptInUseConnections (/usr/src/app/node_modules/mongodb/lib/cmap/connection_pool.js:262:36)
at /usr/src/app/node_modules/mongodb/lib/cmap/connection_pool.js:249:41
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
address: 'ac-727rc86-shard-00-01.fgbtzus.mongodb.net:27017',
[Symbol(errorLabels)]: Set(1) { 'RetryableWriteError' }
}
May I ask what may lead to this error, and how I can solve it or retry the connection using mongoose?