ErrLookup › mongodb/node-mongodb-native
mongodb/node-mongodb-native
The official MongoDB Node.js driver · TypeScript · 141 source files
Analyzed at dce7939f86 on 2026-08-11. 331 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Cursor is already initialized | exception | error | cursor, initialized, in-use, configuration, logic-error |
| Cannot set tailable cursor's timeoutMode to LIFETIME | exception | error | cursor, tailable, csot, timeout-mode, invalid-argument |
| Cannot use $out or $merge stage with ITERATION timeoutMode | exception | error | aggregation, cursor, csot, timeout-mode, out-merge, invalid-argument |
| Cannot rewind cursor that does not own its timeout context. | exception | error | cursor, rewind, csot, timeout-context, internal-misuse |
| Unexpected null cursor id. A cursor creating command should… | exception | critical | cursor, internal-invariant, runtime-error, bug |
| Cannot specify maxAwaitTimeMS >= timeoutMS for a tailable… | exception | error | cursor, tailable, csot, timeout, invalid-argument |
| Cursor returned a `null` document, but the cursor is not… | exception | error | cursor, transform, map, data-loss-prevention, logic-error |
| Server sent message compressed using an unsupported… | exception | error | network, compression, wire-protocol, configuration |
| Cursor must be constructed with MongoClient | exception | error | cursor, constructor, mongo-client, internal-misuse, typescript |
| Unexpected null session. A cursor creating command should… | exception | critical | cursor, internal-invariant, runtime-error, bug, session |
| Unexpected null selectedServer. A cursor creating command… | exception | critical | cursor, internal-invariant, runtime-error, bug, server-selection |
| Cursor is exhausted | exception | error | cursor, exhausted, iteration, logic-error |
| TOKEN_RESOURCE must be set in the auth mechanism properties… | exception | critical | oidc, gcp, authentication, configuration |
| Unsupported BSON type | exception | error | bson, driver-internal, version-mismatch, parsing |
| Argument "setName" is required if connected to a replica set | exception | error | sdam, replica-set, internal, topology |
| compressors must be an array or a comma-delimited list of… | exception | error | connection-options, compression, configuration, type-error |
| Selector must be a valid JavaScript object | exception | error | validation, update, crud, invalid-argument |
| Message body and message header must be the same length | exception | error | network, compression, wire-protocol, corruption |
| Attempted to get an access token when none exists. | exception | error | oidc, internal, invariant, token-cache |
| Tailable cursor does not support batchSize | exception | error | cursor, tailable, batch-size, invalid-argument |
| This MongoDB deployment does not support retryable writes… | exception | error | retryable-writes, configuration, storage-engine, topology, connection-string |
| OP_MSG Payload Type 1 detected unsupported protocol | exception | critical | wire-protocol, op-msg, compatibility, corruption |
| Current topology does not support sessions | exception | error | sessions, topology, compatibility, standalone |
| client.connect did not create a topology but also did not… | exception | error | runtime, connect, topology, concurrency, internal-invariant |
| timeoutMS cannot be used with explain when explain is… | exception | error | aggregation, explain, timeout, options-validation |
| Argument for maxTimeMS must be a number | exception | error | cursor, max-time-ms, invalid-argument, typescript |
| Host ' ' is not valid for OIDC authentication with… | exception | error | oidc, auth, security, configuration |
| Flag is not one of | exception | error | cursor, cursor-flags, invalid-argument, typescript |
| Unable to make a writeConcern from fsync= | exception | warning | write-concern, deprecated, configuration |
| Invalid read preference | exception | error | cursor, read-preference, invalid-argument, typescript |
| Cannot set timeoutMode without setting timeoutMS | exception | error | cursor, csot, timeout, timeout-mode, invalid-argument |
| OIDC callback timed out after | exception | error | oidc, callback, timeout, authentication, interactive |
| write operation failed | exception | error | bulk-write, server-error, write-errors, write-concern |
| Attempt to access memory outside buffer bounds: buffer… | exception | error | bson, buffer, range-error, deserialization, internal |
| Timed out during server selection | exception | error | server-selection, timeout, csot, network, sdam |
| Option "autoEncryption" must be specified | exception | error | csfle, configuration, validation, synchronous |
| An unexpected error type | exception | error | internal, runtime, invariant, error-handling |
| No AutoEncrypter available for encryption | exception | error | csfle, encryption, auto-encryption, native-dependency |
| User input for option 'mongodbLogComponentSeverities'… | exception | error | logging, configuration |
| Argument "iterator" must be a function | exception | error | cursor, for-each, deprecated, invalid-argument, typescript |
| is not a valid compression mechanism. Must be one of: . | exception | error | connection-options, compression, configuration |
| ${cause.message} | exception | error | wire-protocol, version-mismatch, server-response, sdam |
| Operation "batchSize" requires an integer | exception | error | cursor, batch-size, invalid-argument, typescript |
| Selected server does not support retryable writes | exception | error | retryable-writes, failover, server-selection, topology, sessions |
| Can only provide a custom AWS credential provider when the… | exception | error | csfle, configuration, kms, aws, credentials |
| Unknown compressor failed to compress | exception | error | compression, protocol, config, wire-protocol |
| Error with validation data | exception | error | server-response, validate, admin, compatibility |
| Server record does not have at least one more domain level… | exception | error | dns, srv, security, connection-string |
| Update document requires atomic operators | exception | error | bulk-write, update, atomic-operators, validation |
| username and password cannot be provided when using… | exception | error | authentication, aws, connection-string, mongodb-aws |
| Document is larger than the maximum size | exception | error | bulk-write, ordered, bson-size, limits, validation |
| Password cannot be empty | exception | error | authentication, scram, credentials, configuration |
| A collection name must be determined before getMore | exception | error | cursor, getmore, namespace, runtime, internal |
| Status code returned from the GCP endpoint. Response body | exception | error | oidc, gcp, network, metadata-service, authentication |
| No AuthProvider for defined. | exception | critical | authentication, scram, internal, invariant |
| "options" cannot contain both "keyId" and "keyAltName" | exception | error | csfle, client-side-encryption, validation, configuration |
| Start option must be defined | exception | error | gridfs, stream, internal, validation |
| Raw operations are not allowed | exception | error | bulk-write, raw, replace, wire-protocol, validation |
| Clone not supported, create a new cursor with… | exception | error | run-command-cursor, clone, unsupported |
| Operation passed in cannot be an Array | exception | error | bulk-write, ordered, type-mismatch, validation |
| ${MongoError.buildErrorMessage(cause)} | exception | error | connection, socks5, proxy, network |
| Cannot make WriteConcern from wtimeout | exception | warning | write-concern, deprecated, configuration |
| Option "hostAddress" is required | exception | critical | connection, internal, configuration, host-address |
| Option 'mongodbLogComponentSeverities' does not support | exception | error | logging, configuration |
| Profiling level must be one of | exception | error | validation, profiling, argument, configuration |
| Reauthenticate failed due to no auth provider for | exception | error | auth, reauthentication, sasl, kerberos, native-dependency |
| Unrecognized options | exception | error | timeout, internal, configuration |
| Unable to complete creating data keys | exception | error | csfle, client-encryption, kms, data-key, encrypted-collection |
| Auth mechanism property ALLOWED_HOSTS is not allowed in the… | exception | error | connection-string, oidc, auth, security, validation |
| ServerDescription must be provided with a non-empty address | exception | error | sdam, connection-string, validation, configuration |
| illegal state transition from | exception | error | state-machine, internal, sdam, lifecycle |
| Invalid read preference specified | exception | error | read-preference, server-selection, validation, invalid-argument |
| Cannot set both proxyOptions and kmsConnectCallback | exception | error | csfle, configuration, kms, proxy |
| Options cannot be changed after the stream is initialized | exception | error | gridfs, stream, lifecycle, synchronous |
| Timed out during connection checkout | exception | error | timeout, connection-pool, csot, pool-exhaustion |
| No auth context found on connection. | exception | error | auth, reauthentication, internal, handshake |
| Auto-encryption requested, but the module is not installed… | exception | critical | csfle, dependency, native-module, configuration |
| (server error document) | exception | error | server-error, write-errors, duplicate-key, validation |
| Reauthentication already in progress. | exception | error | auth, oidc, authentication, concurrency, internal |
| Connection is missing credentials when asked to… | exception | error | auth, credentials, reauthentication, x509, oidc |
| maxTimeMS must be configured on the command document… | exception | error | run-command-cursor, timeout, maxtimems, unsupported |
| unreachable state machine state: entered… | exception | critical | csfle, client-side-encryption, internal, version-skew |
| Invalid sort direction | exception | error | sort, query, validation, crud |
| Option pkFactory must be an object with a createPk… | exception | error | object-id, configuration, type-error |
| `cryptSharedLibRequired` set but no crypt_shared library… | exception | error | csfle, configuration, crypt-shared-library, deployment |
| Flag must be a boolean value | exception | error | cursor, cursor-flags, invalid-argument, typescript |
| Replacement document must not contain atomic operators | exception | error | validation, find-one-and-replace, atomic-operators, replacement, argument |
| Server returned an invalid signature | exception | error | scram, security, sasl, authentication, mitm |
| Finalization error | exception | critical | csfle, client-side-encryption, crypto, kms |
| Node.js crypto module is required for SCRAM-SHA-1… | exception | critical | authentication, scram, runtime, bundling, node-js |
| Could not serialize operation to BSON | exception | error | bulk-write, bson, serialization |
| ReadConcern must be an object, got | exception | error | read-concern, configuration, type-error |
| Server is closed | exception | error | sdam, lifecycle, connection, shutdown |
| Topology cannot be constructed from | exception | error | sdam, connection-string, topology, configuration, invalid-argument |
| Illegal profiling level value | exception | error | profiling, server-response, runtime, compatibility |
| Service generations are required in load balancer mode. | exception | error | load-balanced, connection-pool, internal, sdam |
| User provided OIDC callbacks must return a valid object… | exception | error | authentication, oidc, callback, validation |
| Attempted illegal state transition from | exception | error | transaction, state-machine, internal |
| Unexpected HostAddress | exception | critical | connection, internal, host-address, invariant |
| username and ENVIRONMENT | exception | error | auth, oidc, authentication, configuration |