MongoParseError: options usenewurlparser / useunifiedtopology not supported MongoDB Origin: Data OSI layer 7 · Application Last updated 5 Nov 2026

MongoParseError: option usenewurlparser is not supported

Old connection options removed in Mongoose 6 / driver 4 are still passed to mongoose.connect.

Exact message you may see MongoParseError: option usenewurlparser is not supportedMongoParseError: option useunifiedtopology is not supportedoption usecreateindex is not supportedMongoParseError: options usecreateindex, usefindandmodify are not supportedMongoParseError: option X is not supported
Seen on: MongoDB Node.js

Meaning

useNewUrlParser, useUnifiedTopology, useCreateIndex, useFindAndModify no longer exist. Remove them from connect(uri, options); they're default behaviour. The same error appears with other unknown options after upgrading drivers.

Common causes

  • Code copied from old tutorials
  • Upgrade to Mongoose 6+/driver 4+
  • Unsupported options (useCreateIndex, useFindAndModify)
  • Options passed in the URI
  • Typos in option names

⚡ Quick fix

  1. Remove useNewUrlParser/useUnifiedTopology/useCreateIndex/useFindAndModify
  2. Pass only supported options (see driver docs)
  3. Check npm ls mongoose mongodb

Detailed fix by platform

Node.js

  1. await mongoose.connect(process.env.MONGODB_URI); with no deprecated options

How to diagnose

  1. Options — Deprecated ones?
  2. Version — Mongoose 6+?
  3. URI — Unknown parameters?

🔧 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: Data. Errors that are often confused with or caused by this one (click to open):

buffering timed out — MongooseError: Operation `users.find()` buffering timed out after 10000ms (Node.js)buffering timed outCastError: Cast to Date/Number/Boolean failed — Mongoose: CastError: Cast to date failed for value "abc" (type string) at path "createdAt" (MongoDB)CastError: Cast to Da…MissingSchemaError: Schema hasn't been registered for model — Mongoose: MissingSchemaError: Schema hasn't been registered for model "User". Use mongoose.model(name, schema) (MongoDB)MissingSchemaError: S…Mongoose: Model.find() no longer accepts a callback — MongooseError: Model.find() no longer accepts a callback (MongoDB)Mongoose: Model.find(…Mongoose: strictQuery will be switched back to false — Mongoose: [MONGOOSE] DeprecationWarning: Mongoose: the strictQuery option will be switched back to false by default in Mongoose 7 (MongoDB)Mongoose: strictQuery…MongoParseError — MongoDB: MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://" (MongoDB)MongoParseErrorOverwriteModelError: Cannot overwrite model once compiled — Mongoose: OverwriteModelError: Cannot overwrite `User` model once compiled. (MongoDB)OverwriteModelError: …StrictPopulateError: Cannot populate path because it is not in your schema — Mongoose 6+: StrictPopulateError: Cannot populate path `author` because it is not in your schema (MongoDB)StrictPopulateError: …MongoPars…

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.