ErrLookup › mongodb/node-mongodb-native
mongodb/node-mongodb-native
The official MongoDB Node.js driver · TypeScript · 141 source files
Analyzed at 3366c21a63 on 2026-08-04. 339 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Update document requires atomic operators | validation | error | bulk-write, update, validation, argument-error |
| Replacement document must not use atomic operators | validation | error | bulk-write, replace, validation, argument-error |
| Bulk find operation must specify a selector | validation | error | bulk-write, filter, validation, argument-error |
| Operation must be an object with an operation key | validation | error | bulk-write, raw, validation, argument-error |
| Raw operations are not allowed | validation | error | bulk-write, raw, replace, argument-error |
| bulkWrite only supports insertOne, updateOne, updateMany, de | validation | error | bulk-write, raw, argument-error, operation-key |
| This batch has already been executed, create new batch to ex | exception | error | bulk-write, lifecycle, retry, state-error |
| Invalid BulkOperation, Batch cannot be empty | validation | error | bulk-write, validation, empty-state, argument-error |
| Document is larger than the maximum size ${this.s.maxBsonObj | validation | error | bulk-write, ordered, bson, size-limit |
| Operation passed in cannot be an Array | validation | error | bulk-write, ordered, internal, argument-error |
| Document is larger than the maximum size ${this.s.maxBsonObj | validation | error | bulk-write, unordered, bson, size-limit |
| Operation passed in cannot be an Array | validation | error | bulk-write, unordered, internal, argument-error |
| Parent provided to ChangeStream constructor must be an insta | exception | error | change-stream, constructor, argument-error, instanceof |
| ChangeStream is closed | exception | error | change-streams, lifecycle, streaming |
| ChangeStream cannot be used as an EventEmitter after being u | exception | error | change-streams, api-misuse, eventemitter, async-iterator |
| ChangeStream cannot be used as an iterator after being used | exception | error | change-streams, api-misuse, eventemitter, async-iterator |
| A change stream document has been received that lacks a resu | exception | error | change-streams, aggregation, resume-token, api-misuse |
| Cannot set both proxyOptions and kmsConnectCallback | validation | error | csfle, configuration, kms, proxy |
| Can only provide a custom AWS credential provider when the s | validation | error | csfle, configuration, kms, aws, credentials |
| `cryptSharedLibRequired` set but no crypt_shared library loa | validation | error | csfle, configuration, crypt-shared, deployment, native-library |
| Unable to connect to `mongocryptd`, please make sure it is r | exception | error | csfle, mongocryptd, deployment, native-library, startup |
| Cannot set both proxyOptions and kmsConnectCallback | validation | error | csfle, configuration, kms, proxy, client-encryption |
| Can only provide a custom AWS credential provider when the s | validation | error | csfle, configuration, kms, aws, credentials, client-encryption |
| Missing required option `keyVaultNamespace` | validation | error | csfle, configuration, client-encryption, validation |
| Option "keyAltNames" must be an array of strings, but was of | validation | error | csfle, client-encryption, validation, data-keys, typescript |
| Option "keyAltNames" must be an array of strings, but item a | validation | error | csfle, client-encryption, validation, data-keys, typescript |
| Unable to complete creating data keys: ${cause.message} | exception | error | csfle, client-encryption, data-keys, kms, createencryptedcollection |
| Unable to create collection: ${cause.message} | exception | error | csfle, client-encryption, createencryptedcollection, ddl, queryable-encryption |
| "options" cannot contain both "keyId" and "keyAltName" | validation | error | csfle, client-encryption, validation, encryption |
| "options.keyAltName" must be of type string, but was of type | validation | error | csfle, client-encryption, validation, encryption, typescript |
| Malformed JSON body in GET request. | exception | error | csfle, azure-kms, network, queryable-encryption |
| Unable to complete request. | exception | error | csfle, azure-kms, auth, queryable-encryption |
| Malformed response body - missing field `access_token`. | exception | error | csfle, azure-kms, queryable-encryption |
| Malformed response body - missing field `expires_in`. | exception | error | csfle, azure-kms, queryable-encryption |
| Malformed response body - unable to parse int from `expires_ | exception | error | csfle, azure-kms, queryable-encryption |
| [Azure KMS] ${error.message} | exception | error | csfle, azure-kms, network, timeout, queryable-encryption |
| unidentifiable error in MongoCrypt - received an error statu | exception | error | csfle, libmongocrypt, queryable-encryption, native-bindings |
| KMS request timed out | exception | error | csfle, kms, timeout, csot, network, queryable-encryption |
| Credentials required for GSSAPI authentication | validation | error | auth, gssapi, kerberos, credentials |
| Username required for mechanism '${this.mechanism}' | validation | error | auth, credentials, scram, gssapi, plain |
| username and ENVIRONMENT '${this.mechanismProperties.ENVIRON | validation | error | auth, oidc, credentials, configuration |
| No password is allowed in ENVIRONMENT '${this.mechanismPrope | validation | error | auth, oidc, credentials, configuration |
| TOKEN_RESOURCE must be set in the auth mechanism properties | validation | error | auth, oidc, azure, gcp, configuration |
| Currently only a ENVIRONMENT in ${ALLOWED_ENVIRONMENT_NAMES. | validation | error | auth, oidc, configuration |
| Either a ENVIRONMENT, OIDC_CALLBACK, or OIDC_HUMAN_CALLBACK | validation | error | auth, oidc, configuration |
| Auth mechanism property ALLOWED_HOSTS must be an array of st | validation | error | auth, oidc, configuration, type-safety |
| Invalid source '${this.source}' for mechanism '${this.mechan | validation | error | auth, credentials, configuration, x509, gssapi, aws, oidc |
| PLAIN Authentication Mechanism needs an auth source | validation | error | auth, credentials, configuration, plain, ldap |
| Password not allowed for mechanism MONGODB-X509 | validation | error | auth, credentials, configuration, x509, tls |
| Invalid CANONICALIZE_HOST_NAME value: ${canonicalization} | validation | error | auth, gssapi, kerberos, configuration, validation |
| AuthContext must provide credentials. | validation | error | auth, aws, credentials, configuration, iam |
| Server nonce does not begin with client nonce | exception | error | auth, aws, security, wire-protocol, sasl |
| Server returned an invalid host: "${host}" | exception | error | auth, aws, security, ssrf-protection, wire-protocol |
| Could not obtain temporary MONGODB-AWS credentials | exception | error | auth, aws, credentials, iam, configuration |
| OIDC callback timed out after ${AUTOMATED_TIMEOUT_MS}ms. | exception | error | auth, oidc, timeout, azure, gcp, k8s |
| TOKEN_RESOURCE must be set in the auth mechanism properties | exception | error | auth, oidc, azure, configuration, validation |
| Azure endpoint did not return a value with only access_token | exception | error | auth, oidc, azure, managed-identity, iam |
| Status code ${response.status} returned from the Azure endpo | exception | error | auth, oidc, azure, managed-identity, http-error |
| User provided OIDC callbacks must return a valid object with | exception | error | auth, oidc, callback, validation, configuration |
| TOKEN_RESOURCE must be set in the auth mechanism properties | exception | error | auth, oidc, gcp, configuration, validation |
| Status code ${response.status} returned from the GCP endpoin | exception | error | auth, oidc, gcp, service-account, http-error |
| OIDC callback timed out after ${HUMAN_TIMEOUT_MS}ms. | exception | error | auth, oidc, timeout, interactive, callback |
| Attempted to get an access token when none exists. | exception | error | auth, oidc, internal, invariant, token-cache |
| Attempted to get a refresh token when none exists. | exception | error | auth, oidc, internal, invariant, token-cache |
| Attempted to get IDP information when none exists. | exception | error | auth, oidc, internal, invariant, token-cache |
| OIDC_TOKEN_FILE must be set in the environment. | exception | error | auth, oidc, environment, configuration, token-file |
| No workflow provided to the OIDC auth provider. | exception | error | auth, oidc, internal, configuration, validation |
| AuthContext must provide credentials. | exception | error | auth, oidc, credentials, configuration, validation |
| AuthContext must provide credentials. | exception | error | auth, plain, ldap, credentials, configuration |
| AuthContext must provide credentials. | exception | critical | auth, scram, credentials, connection-string |
| AuthContext must contain a valid nonce property | exception | error | auth, scram, nonce, internal-state |
| Unable to continue SCRAM without valid nonce | exception | error | auth, scram, nonce, internal-state |
| Server returned an invalid iteration count ${iterations} | exception | error | auth, scram, security, server-config, pbkdf2 |
| Server returned an invalid nonce: ${rnonce} | exception | error | auth, scram, security, server-config |
| Server returned an invalid signature | exception | critical | auth, scram, credentials, security, signature |
| Username must be a string | exception | error | auth, scram, credentials, validation |
| Password must be a string | exception | error | auth, scram, credentials, validation |
| Password cannot be empty | exception | error | auth, scram, credentials, security, validation |
| Node.js crypto module is required for SCRAM-SHA-1 authentica | exception | error | auth, scram, crypto, runtime, bundling |
| Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode | exception | error | auth, scram, fips, crypto, compliance |
| AuthContext must provide credentials. | exception | critical | auth, x509, credentials, tls |
| Database name must be a string for a query | exception | error | wire-protocol, internal, namespace, op-query |
| A query document must be specified for query | exception | error | wire-protocol, internal, op-query, validation |
| Namespace cannot contain a null character | exception | error | wire-protocol, namespace, validation, sanitization |
| OP_REPLY numberReturned is an invalid array length ${this.nu | exception | error | wire-protocol, op-reply, legacy, corruption, range-error |
| Query document must be specified for query | exception | error | wire-protocol, internal, op-msg, validation |
| OP_MSG Payload Type 1 detected unsupported protocol | exception | error | wire-protocol, op-msg, runtime, network |
| AuthMechanism '${credentials.mechanism}' not supported | exception | error | auth, authentication, configuration, handshake |
| Driver attempted to initialize in load balancing mode, but t | exception | error | load-balanced, topology, compatibility, configuration |
| No AuthProvider for ${resolvedCredentials.mechanism} defined | exception | error | auth, auth-provider, configuration, handshake |
| No AuthProvider for ${AuthMechanism.MONGODB_SCRAM_SHA256} de | exception | critical | auth, auth-provider, scram, configuration, runtime |
| No AuthProvider for ${credentials.mechanism} defined. | exception | error | auth, auth-provider, configuration, handshake |
| Option "hostAddress" is required | exception | error | connection, configuration, uri, host-address |
| Unexpected HostAddress ${JSON.stringify(hostAddress)} | exception | critical | connection, runtime, host-address, internal |
| Can only make Socks5 connections to TCP hosts | exception | error | socks5, proxy, configuration, connection |
| Current topology does not support sessions | exception | error | sessions, topology, compatibility, standalone |
| Server roundtrip time is greater than the time remaining | exception | error | timeout, csot, network, configuration |
| Server reported a timeout error | exception | error | timeout, csot, query, aggregation |
| Unable to get response from server | exception | error | network, connection, unexpected-response, retryable |
| Server ended moreToCome unexpectedly | exception | error | exhaust, change-stream, cursor, unexpected-response |
| No AutoEncrypter available for encryption | exception | critical | csfle, encryption, auto-encryption, configuration |
| Connection pool minimum size must not be greater than maximu | exception | error | connection-pool, configuration, pool-sizing |
| Timed out during connection checkout | exception | error | connection-pool, timeout, csot, pool-checkout |
| ConnectionPool.clear() called in load balanced mode with no | exception | error | load-balancer, connection-pool, sdam, internal |
| Service generations are required in load balancer mode. | exception | error | load-balancer, connection-pool, sdam, internal, state-consistency |
| No auth context found on connection. | exception | error | authentication, connection-pool, reauth, internal |
| Connection is missing credentials when asked to reauthentica | exception | error | authentication, credentials, reauth, connection-pool |
| Reauthenticate failed due to no auth provider for ${credenti | exception | error | authentication, auth-mechanism, reauth, dependencies |
| Unable to include driverInfo name and version, metadata cann | exception | error | handshake, client-metadata, configuration, size-limit |
| Unable to include driverInfo platform, metadata cannot excee | exception | error | handshake, client-metadata, configuration, size-limit |
| Unknown compressor ${options.agreedCompressor} failed to com | exception | error | compression, wire-protocol, configuration |
| Server sent message compressed using an unsupported compress | exception | error | compression, wire-protocol, server-compat, corruption |
| Message body and message header must be the same length | exception | error | compression, wire-protocol, corruption, network |
| Negative binary type element size found for subtype 0x02 | exception | error | bson, decoding, binary, corruption |
| Binary type with subtype 0x02 contains too long binary size | exception | error | bson, decoding, binary, corruption |
| Binary type with subtype 0x02 contains too short binary size | exception | error | bson, decoding, binary, corruption |
| Unsupported BSON type: ${as} | exception | error | bson, decoding, type-support, server-compat |
| BSON element "${name}" is missing | exception | error | bson, decoding, missing-field, server-response |
| Cursor document did not contain a batch | exception | error | csfle, queryable-encryption, cursor, server-response |
| Option "readPreference" must be a ReadPreference instance | exception | error | read-preference, configuration, validation, typescript |
| Argument "docs" must be an array of documents | exception | error | validation, typescript, crud, insert |
| Collection.insertMany() cannot be called with an array that | exception | error | validation, crud, insert, null-safety |
| Argument "operations" must be an array of documents | exception | error | validation, typescript, crud, bulk-write |
| collection ${this.namespace} not found | exception | error | metadata, crud, collection, introspection |
| Argument "pipeline" must be an array of aggregation stages | exception | error | validation, typescript, aggregation, crud |
| Option "srvHost" must not be empty | exception | error | connection-string, dns, srv, config |
| No addresses found at host | exception | error | connection-string, dns, srv, network |
| Multiple text records not allowed | exception | error | connection-string, dns, srv, config |
| Text record may only set any of: ${VALID_TXT_RECORDS.join(', | exception | error | connection-string, dns, srv, config |
| Cannot have empty URI params in DNS TXT Record | exception | error | connection-string, dns, srv, config |
| Cannot combine replicaSet option with srvMaxHosts | exception | error | connection-string, srv, replica-set, config |
| The '${a}' option cannot be used with the '${b}' option | exception | error | connection-string, tls, config, security |
| ${name} must be either "true" or "false" | exception | error | connection-string, parsing, config, boolean |
| Expected ${name} to be stringified int value, got: ${value} | exception | error | connection-string, parsing, config, integer |
| ${name} can only be a positive int value, got: ${value} | exception | error | connection-string, parsing, config, integer |
| Cannot have undefined values in key value pairs | exception | error | connection-string, parsing, config, read-preference |
| Must request either bigint or Long for int64 deserialization | exception | error | connection-string, bson, config, int64 |
| URI option "${key}" cannot appear more than once in the conn | exception | error | connection-string, parsing, config, uri |
| URI option "${key}" cannot be specified with no value | exception | error | connection-string, parsing, config, uri |
| URI cannot contain `serverApi`, it can only be passed to the | exception | error | connection-string, configuration, stable-api |
| Auth mechanism property ALLOWED_HOSTS is not allowed in the | exception | error | connection-string, auth, oidc, security |
| loadBalanced is only a valid option in the URI | exception | error | connection-string, load-balancing, configuration |
| All values of tls/ssl must be the same. | exception | error | connection-string, tls, configuration |
| ${optionWord} ${Array.from(unsupportedOptions).join(', ')} $ | exception | error | connection-string, configuration, typo, migration |
| authMechanism ${mongoOptions.credentials.mechanism} requires | exception | error | connection-string, auth, x509, kerberos |
| username and password cannot be provided when using MONGODB- | exception | error | connection-string, auth, aws, iam, security |
| AWS_SESSION_TOKEN cannot be provided when using MONGODB-AWS. | exception | error | connection-string, auth, aws, iam, security |
| SRV URI does not support directConnection | exception | error | connection-string, srv, topology, configuration |
| Cannot use srvMaxHosts option with replicaSet | exception | error | connection-string, srv, topology, replica-set |
| Cannot use srvMaxHosts or srvServiceName with a non-srv conn | exception | error | connection-string, srv, configuration |
| directConnection option requires exactly one host | exception | error | connection-string, topology, configuration |
| Must specify proxyHost if other proxy options are passed | exception | error | connection-string, proxy, configuration |
| Can only specify both of proxy username/password or neither | exception | error | connection-string, proxy, configuration |
| Proxy options cannot be specified multiple times in the conn | exception | error | connection-string, proxy, configuration |
| loadBalanced option only supported with a single host in the | exception | error | connection-string, load-balancing, topology |
| loadBalanced option not supported with a replicaSet option | exception | error | connection-string, load-balancing, replica-set, topology |
| loadBalanced option not supported when directConnection is p | exception | error | connection-string, load-balancing, topology |
| Cannot limit srv hosts with loadBalanced enabled | exception | error | connection-string, load-balancing, srv, topology |
| ${name} must be an object | exception | error | connection-string, configuration, csfle, typing |
| Descriptors missing a type must define a transform | exception | info | internal, configuration, options |
| ${name} must be an object with 'username' and 'password' pro | exception | error | authentication, configuration, options |
| authMechanism one of ${mechanisms}, got ${value} | exception | error | authentication, configuration, options |
| AuthMechanismProperties must be an object | exception | error | authentication, configuration, kerberos, oidc |
| Invalid `serverApi` property; must specify a version from th | exception | error | configuration, versioning, options |
| Invalid server API version=${versionToValidate}; must be in | exception | error | configuration, versioning, options |
| compressors must be an array or a comma-delimited list of st | exception | error | configuration, compression, options |
| ${c} is not a valid compression mechanism. Must be one of: $ | exception | error | configuration, compression, options |
| Option 'family' must be 4 or 6 got ${transformValue}. | exception | error | configuration, networking, options |
| Unable to make a writeConcern from fsync=${value} | exception | error | write-concern, deprecated, configuration |
| Unable to make a writeConcern from journal=${value} | exception | error | write-concern, deprecated, configuration |
| maxConnecting must be > 0 if specified | exception | error | connection-pool, configuration, options |
| Option pkFactory must be an object with a createPk function, | exception | error | configuration, primary-key, options |
| ReadConcern must be an object, got ${JSON.stringify(value)} | exception | error | read-concern, configuration, options |
| Cannot make read preference from ${JSON.stringify(value)} | exception | error | read-preference, configuration, options |
| Unknown ReadPreference value: ${value} | exception | error | read-preference, configuration, options |
| serverMonitoringMode must be one of `auto`, `poll`, or `stre | exception | error | sdam, configuration, options |
| Invalid WriteConcern cannot parse: ${JSON.stringify(value)} | exception | error | write-concern, configuration, options |
| Cannot make WriteConcern from wtimeout | exception | error | write-concern, deprecated, configuration |
| Option 'mongodbLogPath' must be of type 'stderr' | 'stdout' | exception | error | logging, options, configuration, validation |
| Option 'mongodbLogComponentSeverities' must be a non-null ob | exception | error | logging, options, configuration, validation |
| User input for option 'mongodbLogComponentSeverities' object | exception | error | logging, options, configuration, type-validation |
| User input for option 'mongodbLogComponentSeverities' contai | exception | error | logging, options, configuration, enum-validation |
| Option 'mongodbLogComponentSeverities' does not support ${v} | exception | error | logging, options, configuration, enum-validation |
| Cursor must be constructed with MongoClient | exception | critical | cursor, internal-api, misuse |
| Cannot specify maxAwaitTimeMS >= timeoutMS for a tailable aw | exception | error | cursor, timeout, csot, tailable, options |
| Cannot set tailable cursor's timeoutMode to LIFETIME | exception | error | cursor, timeout, csot, tailable, options |
| Cannot set timeoutMode without setting timeoutMS | exception | error | cursor, timeout, csot, options |
| Cursor is exhausted | exception | error | cursor, lifecycle, iteration |
| Argument "iterator" must be a function | exception | error | cursor, iteration, deprecated, misuse |
| Flag ${flag} is not one of ${CURSOR_FLAGS} | exception | error | cursor, options, validation, misuse |
| Flag ${flag} must be a boolean value | exception | error | cursor, options, type-validation |
| Invalid read preference: ${readPreference} | exception | error | cursor, read-preference, options, type-validation |
| Argument for maxTimeMS must be a number | exception | error | cursor, timeout, type-validation, options |
| Tailable cursor does not support batchSize | exception | error | cursor, tailable, options, misuse |
| Operation "batchSize" requires an integer | exception | error | cursor, options, type-validation |
| Cannot rewind cursor that does not own its timeout context. | exception | error | cursor, csot, timeout, lifecycle |
| Unexpected null cursor id. A cursor creating command should | exception | error | cursor, internal, getmore, driver-bug |
| Unexpected null selectedServer. A cursor creating command sh | exception | error | cursor, internal, getmore, driver-bug |
| Unexpected null session. A cursor creating command should ha | exception | error | cursor, internal, session, concurrency, driver-bug |
| Cursor returned a `null` document, but the cursor is not exh | exception | error | cursor, map, transform, user-error |
| Cursor is already initialized | exception | error | cursor, lifecycle, builder, user-error |
| Cannot use $out or $merge stage with ITERATION timeoutMode | exception | error | aggregation, timeout, timeoutms, out, merge |
| timeoutMS cannot be used with explain when explain is specif | exception | error | aggregation, explain, timeout, timeoutms, maxtimems |
| timeoutMS cannot be used with explain when explain is specif | exception | error | find, explain, timeout, timeoutms, maxtimems |
| Invalid first parameter to count | exception | warning | find, count, deprecated, migration |
| ${name} is not a valid query modifier | exception | error | find, query-modifier, validation |
| Invalid query modifier: ${name} | exception | error | find, query-modifier, validation |
| Argument for maxAwaitTimeMS must be a number | exception | error | find, tailable, timeout, validation, typescript |
| Argument for maxTimeMS must be a number | exception | error | find, timeout, validation, typescript |
| Tailable cursor does not support sorting | exception | error | find, tailable, sort, capped-collection |
| Option "allowDiskUse" requires a sort specification | exception | error | find, sort, allowdiskuse, validation |
| Tailable cursor does not support limit | exception | error | find, tailable, limit, capped-collection |
| Operation "limit" requires an integer | exception | error | find, limit, validation, typescript |
| Tailable cursor does not support skip | exception | error | find, tailable, skip, capped-collection |
| Operation "skip" requires an integer | exception | error | find, skip, validation, typescript |
| Clone not supported, create a new cursor with db.runCursorCo | exception | error | cursor, runcommandcursor, api-misuse |
| RunCommandCursor does not support readConcern it must be att | exception | error | cursor, read-concern, runcommandcursor, api-misuse |
| RunCommandCursor does not support cursor flags, they must be | exception | error | cursor, runcommandcursor, api-misuse |
| maxTimeMS must be configured on the command document directl | exception | error | cursor, timeout, runcommandcursor, api-misuse |
| batchSize must be configured on the command document directl | exception | error | cursor, runcommandcursor, api-misuse |
| Unexpected null session. A cursor creating command should ha | exception | error | cursor, internal, session, runcommandcursor |
| Database names cannot contain the character '.' | exception | error | db, namespace, validation |
| The callback form of this helper has been removed. | exception | error | db, callback, migration, api-breaking-change |
| Option "autoEncryption" must be specified | exception | error | encryption, csfle, config, mongo-client |
| Auto-encryption requested, but the module is not installed. | exception | critical | encryption, csfle, dependency, native-module, deployment |
| Cannot use maxTimeMS with timeoutMS for explain commands. | exception | error | explain, timeout, csot, config |
| Options cannot be changed after the stream is initialized | exception | error | gridfs, stream, api-misuse |
| Stream start (${options.start}) must not be more than the le | exception | error | gridfs, stream, validation |
| Stream start (${options.start}) must not be negative | exception | error | gridfs, stream, validation |
| Stream start (${options.start}) must not be greater than str | exception | error | gridfs, stream, validation |
| Start option must be defined | exception | error | gridfs, stream, internal |
| Stream end (${options.end}) must not be more than the length | exception | error | gridfs, stream, validation |
| Stream end (${options.end}) must not be negative | exception | error | gridfs, stream, validation |
| End option must be defined | exception | error | gridfs, stream, internal |
| Timed out after ${timeoutMS}ms | exception | error | gridfs, timeout, csot |
| File not found for id ${id} | exception | error | gridfs, file-not-found, delete |
| File with id ${id} not found | exception | error | gridfs, file-not-found, rename |
| Cannot abort a stream that has already completed | exception | error | gridfs, upload-stream, abort |
| Cannot call abort() on a stream twice | exception | error | gridfs, upload-stream, abort, double-call |
| MongoClient bulkWrite does not currently support automatic e | exception | error | bulk-write, csfle, client-side-encryption, auto-encryption |
| Host '${host}' is not valid for OIDC authentication with ALL | exception | error | oidc, auth, allowed-hosts, security |
| Missing required callback parameter | exception | error | session, callback, api-misuse |
| authMechanism ${name} not supported | exception | error | auth, auth-mechanism, connection-string, configuration |
| Could not load workflow for environment ${authMechanismPrope | exception | error | oidc, auth, environment, configuration |
| Cursor options must be an object | exception | error | aggregation, cursor, options, type-validation |
| Could not serialize operation to BSON | exception | error | bulk-write, bson, serialization, client-bulk-write |
| Could not serialize ns info to BSON | exception | error | bulk-write, bson, serialization, namespace, client-bulk-write |
| Client bulk write operation ${name} of length ${buffer.lengt | exception | error | bulk-write, bson-size-limit, client-bulk-write, document-size |
| Client bulk write update models must only contain atomic mod | exception | error | bulk-write, update, validation, client-bulk-write, atomic-operators |
| Client bulk write replace models must not contain atomic mod | exception | error | bulk-write, replace, validation, client-bulk-write |
| No client bulk write models were provided. | exception | error | bulk-write, validation, empty-input, client-bulk-write |
| Cannot request unacknowledged write concern and verbose resu | exception | error | bulk-write, write-concern, client-bulk-write, options-conflict |
| Cannot request unacknowledged write concern and ordered writ | exception | error | bulk-write, write-concern, client-bulk-write, options-conflict, ordered |
| Option "explain" is not supported on this command | exception | error | explain, options, unsupported-operation |
| Driver support of Queryable Encryption is incompatible with | exception | error | queryable-encryption, csfle, server-version, compatibility, create-collection |
| <dynamic: server error response propagated via MongoServerEr | exception | error | server-error, delete, write-concern, retryable |
| <dynamic: server write error propagated via MongoServerError | exception | error | server-error, delete, write-error, validation |
| This method requires a valid operation instance | exception | critical | internal, invariant, programming-error |
| Use of expired sessions is not permitted | exception | error | session, lifecycle, timeout, csot |
| Snapshot reads require MongoDB 5.0 or later | exception | error | compatibility, snapshot, version, session |
| ClientSession must be from the same MongoClient | exception | error | session, client-binding, argument-validation |
| Read preference in a transaction must be primary, not: ${rea | exception | error | transaction, read-preference, spec |
| Client must be connected before running operations | exception | error | connection, lifecycle, shutdown |
| client.connect did not create a topology but also did not th | exception | critical | internal, invariant, connection, bug |
| This MongoDB deployment does not support retryable writes. P | exception | error | compatibility, retryable-writes, mmapv1, standalone, connection-string |
| Selected server does not support retryable writes | exception | error | retryable-writes, failover, topology, server-selection |
| Query filter must be a plain object or ObjectId | exception | error | argument-validation, find, filter, client-side |
| Argument "filter" must be an object | exception | error | argument-validation, find-one-and-modify, filter, client-side |
| Argument "replacement" must be an object | exception | error | argument-validation, find-one-and-modify, replacement, client-side |
| Replacement document must not contain atomic operators | exception | error | argument-validation, find-one-and-modify, atomic-operators, client-side |
| Argument "update" must be an object | exception | error | argument-validation, find-one-and-modify, update, client-side |
| Update document requires atomic operators | exception | error | update, validation, find-and-modify, argument-error |
| Unable to iterate cursor with no id | exception | error | cursor, getmore, runtime-error, lifecycle |
| A collection name must be determined before getMore | exception | error | cursor, getmore, namespace, runtime-error |
| A collection name must be determined before killCursors | exception | error | cursor, kill-cursors, namespace, runtime-error |
| Illegal profiling level value ${was} | exception | error | profiling, admin, server-response, compatibility |
| Error with profile command | exception | error | profiling, admin, permissions, server-response |
| Profiling level must be one of "${enumToString(ProfilingLeve | exception | error | profiling, admin, validation, argument-error |
| Update document requires atomic operators | exception | error | update, validation, argument-error |
| Replacement document must not contain atomic operators | exception | error | update, replace, validation, argument-error |
| Selector must be a valid JavaScript object | exception | error | update, filter, validation, argument-error |
| Document must be a valid JavaScript object | exception | error | update, validation, argument-error |
| Error with validation data | exception | error | validate, admin, server-response, compatibility |
| Invalid collection ${this.collectionName} | exception | critical | validate, corruption, data-integrity, recovery |
| Invalid read preference mode ${JSON.stringify(mode)} | exception | error | read-preference, validation, argument-error, config |
| ReadPreference tags must be an array | exception | error | read-preference, tags, validation, argument-error |
| maxStalenessSeconds must be a positive integer | exception | error | read-preference, max-staleness, validation, argument-error |
| Primary read preference cannot be combined with tags | exception | error | read-preference, tags, primary, validation, argument-error |
| Primary read preference cannot be combined with maxStaleness | exception | error | read-preference, max-staleness, primary, validation, argument-error |
| Primary read preference cannot be combined with hedge | exception | error | read-preference, configuration, validation |
| Invalid read preference: ${r} | exception | error | read-preference, configuration, validation |
| An unexpected error type: ${typeof error} | exception | error | error-handling, internal, runtime |
| ServerDescription must be provided with a non-empty address | exception | error | sdam, configuration, internal |
| Option "maxStalenessSeconds" must be at least ${maxStaleness | exception | error | read-preference, server-selection, configuration |
| Option "maxStalenessSeconds" must be at least ${SMALLEST_MAX | exception | error | read-preference, server-selection, configuration |
| unexpected readPreference=${mode} (should never happen). Pl | exception | error | internal, bug, read-preference |
| Invalid read preference specified | exception | error | read-preference, validation, server-selection |
| unexpected topology type: ${topologyDescription.type} (this | exception | error | internal, bug, sdam |
| Options for SrvPoller must exist and include srvHost | exception | error | sdam, configuration, internal, connection-string |
| Topology cannot be constructed from ${JSON.stringify(seed)} | exception | error | configuration, connection-string, sdam |
| Timed out during server selection | exception | error | server-selection, timeout, network, csot |
| Argument "setName" is required if connected to a replica set | exception | error | sdam, internal, replica-set |
| ClientSession requires a MongoClient | exception | error | sessions, internal |
| ClientSession requires a ServerSessionPool | exception | error | sessions, internal |
| Properties "causalConsistency" and "snapshot" are mutually e | exception | error | sessions, configuration, validation |
| Unexpected null serverSession for an explicit session | exception | error | sessions, internal, bug |
| Unexpected null serverSession for an ended implicit session | exception | error | sessions, lifecycle, cursors |
| input cluster time must be an object | exception | error | sessions, validation |
| input cluster time "clusterTime" property must be a valid BS | exception | error | sessions, validation, bson |
| input cluster time must have a valid "signature" property wi | exception | error | sessions, bson, sharding, cluster-time, invalid-argument |
| Transactions are not supported in snapshot sessions | exception | error | sessions, transactions, snapshot, compatibility |
| Transaction already in progress | exception | error | sessions, transactions, state-machine, invalid-argument |
| No transaction started | exception | error | sessions, transactions, state-machine, control-flow |
| Cannot call commitTransaction after calling abortTransaction | exception | error | sessions, transactions, state-machine, control-flow |
| Cannot call abortTransaction twice | exception | error | sessions, transactions, state-machine, control-flow |
| Cannot call abortTransaction after calling commitTransaction | exception | error | sessions, transactions, state-machine, control-flow |
| ClientSession cannot be serialized to BSON. | exception | error | sessions, bson, serialization, runtime, guard |
| Function provided to `withTransaction` must return a Promise | exception | error | sessions, transactions, withtransaction, invalid-argument, async |
| ServerSessionPool requires a MongoClient | exception | error | sessions, internal, runtime, initialization |
| Invalid sort direction: ${JSON.stringify(direction)} | exception | error | sort, find, invalid-argument, query |
| Invalid sort format: ${JSON.stringify(sort)} Sort must be a | exception | error | sort, find, invalid-argument, query, type-error |
| Cannot create a Timeout with a negative duration | exception | error | timeout, csot, internal, invalid-argument |
| Timed out | exception | error | timeout, csot, internal, deadline |
| Unrecognized options | exception | error | timeout, csot, internal, runtime |
| Unreachable. If you are seeing this error, please file a tic | exception | error | timeout, csot, internal, runtime, unreachable, bug-report |
| Expired after ${this.timeoutMS}ms | exception | error | timeout, csot, operation-timeout, deadline, performance |
| Transactions do not support unacknowledged write concern | exception | error | transactions, write-concern, invalid-argument |
| Attempted illegal state transition from [${this.state}] to [ | exception | error | transactions, state-machine, internal, runtime, concurrency |
| MongoClient must be connected to perform this operation | exception | error | connection, lifecycle, startup |
| Cannot parse namespace from "${namespace}" | exception | error | namespace, validation, configuration |
| illegal state transition from [${target.s.state}] => [${newS | exception | critical | sdam, lifecycle, concurrency, internal |
| Update operations require that all atomic operators have def | exception | error | crud, update, typescript, validation |
| An operation cannot be given a timeoutMS setting when inside | exception | error | transactions, timeout, validation |
| Argument "size" must be a non-negative number | exception | error | wire-protocol, internal, network |
| Invalid port (zero) with hostname | exception | error | connection-string, configuration, validation |
| Limit must be less than the number of items | exception | error | sdam, internal, srv |
| Server record does not have at least one more domain level t | exception | error | dns, srv, security, connection-string |
| Server record does not share hostname with parent URI | exception | error | dns, srv, security, connection-string |
| Expected result of decryption to be deserialized BSON object | exception | critical | csfle, encryption, native, version-mismatch |