MongooseError: Operation `users.find()` buffering timed out after 10000ms
Mongoose queued a query waiting for a connection that never opened.
buffering timed out afterOperation buffering timed out Meaning
Mongoose buffers commands until connect() succeeds. If the connection fails (wrong URI, IP not whitelisted on Atlas, no await), queries time out after 10s.
Common causes
- mongoose.connect not called or not awaited
- Atlas IP access list missing your server
- Wrong connection string / credentials
- Multiple mongoose instances (connection on one, models on another)
⚡ Quick fix
- await mongoose.connect(uri) before starting the server
- Add the server IP in Atlas Network Access
- Log connection errors (mongoose.connection.on('error'))
Detailed fix by platform
Node.js
- javascript
await mongoose.connect(process.env.MONGODB_URI); app.listen(3000);
How to diagnose
- Connect — Awaited and succeeding?
- Network — Atlas access list?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Atlas: bad auth: Authentication failed MongoServerError: bad auth : Authentication failed. (Atlas user / special characters in password)
- BSONObj size is invalid / exceeds maximum document size (16MB) MongoServerError: BSONObj size: 17825792 (0x1100000) is invalid. Size must be between 0 and 16793600(16MB)
- CastError ObjectId CastError: Cast to ObjectId failed for value "x" (type string) at path "_id"
Most viewed in Node.js
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 12 Oct 2026