Unable To Connect To MongoDB

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

This issue has been reported earlier and is still being worked upon.

Is There Any Workaround For It To work

No, since the issue is server-sided I assume not. But let’s see if someone else from community knows about any.

We are aware of this issue and I have prompted the team for an update. We are tracking this issue here: People unable to link to MongoDB | Incidents

2 Likes

Facing the same problem.