buffering timed out Node.js Origin: Application & API OSI layer 7 · Application Last updated 12 Oct 2026

MongooseError: Operation `users.find()` buffering timed out after 10000ms

Mongoose queued a query waiting for a connection that never opened.

Exact message you may see buffering timed out afterOperation buffering timed out
Seen on: Node.js

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

  1. await mongoose.connect(uri) before starting the server
  2. Add the server IP in Atlas Network Access
  3. Log connection errors (mongoose.connection.on('error'))

Detailed fix by platform

Node.js

  1. javascript
    await mongoose.connect(process.env.MONGODB_URI);
    app.listen(3000);

How to diagnose

  1. Connect — Awaited and succeeding?
  2. 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:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

Atlas: bad auth: Authentication failed — MongoServerError: bad auth : Authentication failed. (Atlas user / special characters in password) (MongoDB)Atlas: bad auth: Auth…BSONObj size is invalid / exceeds maximum document size (16MB) — MongoServerError: BSONObj size: 17825792 (0x1100000) is invalid. Size must be between 0 and 16793600(16MB) (MongoDB)BSONObj size is inval…CastError ObjectId — CastError: Cast to ObjectId failed for value "x" (type string) at path "_id" (Node.js)CastError ObjectIdE11000 duplicate key — MongoServerError: E11000 duplicate key error collection: db.users index: email_1 dup key (Node.js)E11000 duplicate keyHikariCP timeout — HikariPool-1 - Connection is not available, request timed out after 30000ms (Java)HikariCP timeoutMongoose ValidationError — ValidationError: User validation failed: email: Path `email` is required. (Node.js)Mongoose ValidationEr…MongoParseError: options usenewurlparser / useunifiedtopology not supported — MongoParseError: option usenewurlparser is not supported (MongoDB)MongoParseError: opti…MongoServerError: operation exceeded time limit — MongoServerError: operation exceeded time limit (MaxTimeMSExpired) / Query timed out (MongoDB)MongoServerError: ope…buffering…

Explore the map of this error Full error map →

🧠 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.