buffering timed out 🟩 Node.js

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

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

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