Problem description:
Mongodb Gets Timeout When Connecting From Replit
{
error: MongooseError: Operation users.findOne()
buffering timed out after 10000ms
at Timeout. (/home/runner/LaamarDistributionServerProduction/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:198:23)
at listOnTimeout (node:internal/timers:559:17),
user: undefined
}
/home/runner/LaamarDistributionServerProduction/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:198
const err = new MongooseError(message);
^
MongooseError: Operation users.findOne()
buffering timed out after 10000ms
at Timeout. (/home/runner/LaamarDistributionServerProduction/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:198:23)
at listOnTimeout (node:internal/timers:559:17)
Expected behavior:
To Connect Normally To database
Steps to reproduce:
Just Connect To Any Mongodb cluster using nodejs on replit