mongodb/node-mongodb-native

Documented errors, page 3 of 4. Back to mongodb/node-mongodb-native

Code / MessageTypeSeverityTags
User input for option 'mongodbLogComponentSeverities'…
exception error logging, configuration, type-error
authMechanism not supported
exception error authentication, connection-string, config
Server reported a timeout error
exception error timeout, csot, query, maxtimems
Tailable cursor does not support limit
exception error find, tailable, capped-collection, limit
Argument for maxAwaitTimeMS must be a number
exception error find, tailable, timeout, type-validation
ChangeStream cannot be used as an iterator after being used…
exception error change-stream, api-misuse, async-iteration
Timed out after ms
exception error gridfs, timeout, csot
unreachable state machine state: entered…
exception critical csfle, client-side-encryption, mongocryptd, internal, version-skew
Database name must be a string for a query
exception warning wire-protocol, internal, op-query
Invalid sort format: Sort must be a valid object
exception error sort, query, validation, crud
Malformed response body - unable to parse int from…
exception error csfle, azure, kms, testing
input cluster time "clusterTime" property must be a valid…
exception error sessions, cluster-time, bson, validation
loadBalanced option not supported when directConnection is…
exception error connection-string, load-balanced, direct-connection, topology
"options.keyAltName" must be of type string, but was of type
exception error csfle, client-side-encryption, validation, typescript
Argument "docs" must be an array of documents
exception error validation, insert, typescript, api-misuse
Argument "size" must be a non-negative number
exception error internal, buffer, wire-protocol, validation
The minimum server version required is
exception error csfle, queryable-encryption, server-version, compatibility
Parent provided to ChangeStream constructor must be an…
exception error change-stream, validation, api-misuse
SRV URI does not support directConnection
exception error connection-string, srv, direct-connection, topology
Bulk find operation must specify a selector
exception error bulk-write, find, selector, validation
ClientSession requires a MongoClient
exception error sessions, internal, validation, misuse
Invalid CANONICALIZE_HOST_NAME value
exception error authentication, gssapi, kerberos, configuration, validation
Server returned an invalid iteration count
exception error scram, security, server, sasl, authentication
Unable to complete request.
exception error csfle, azure, kms, iam, network
batchSize must be configured on the command document…
exception error run-command-cursor, batch-size, unsupported
Operation must be an object with an operation key
exception error bulk-write, raw, validation, typescript
Update operations require that all atomic operators have…
exception error update, validation, crud
Could not obtain temporary MONGODB-AWS credentials
exception error authentication, aws, credentials, iam, environment
Invalid query modifier
exception error find, query-modifier, options-validation, deprecated
The callback form of this helper has been removed.
exception error api-removal, migration, callback, synchronous
Client bulk write update models must only contain atomic…
exception error bulk-write, update, api-misuse
KMS request timed out
exception error csfle, kms, timeout, network, csot
Missing required option `keyVaultNamespace`
exception error csfle, configuration, client-encryption, validation
Binary type with subtype 0x02 contains too long binary size
exception error bson, corruption, wire-protocol, parsing
Option "allowDiskUse" requires a sort specification
exception error find, sort, allow-disk-use, options-validation
TOKEN_RESOURCE must be set in the auth mechanism properties…
exception error authentication, oidc, azure, gcp, configuration
is not a valid query modifier
exception error find, query-modifier, options-validation
Option "explain" is not supported on this command
exception error explain, operations, api-misuse
Primary read preference cannot be combined with tags
exception error read-preference, validation, tags, invalid-argument
A collection name must be determined before killCursors
exception error cursor, kill-cursors, namespace, runtime, internal
Stream end ( ) must not be negative
exception error gridfs, stream, validation, range
Cannot use srvMaxHosts option with replicaSet
exception error connection-string, srv, replica-set, topology
File not found for id
exception error gridfs, not-found, validation
must be an object
exception error connection-string, options, configuration, type-validation
Primary read preference cannot be combined with hedge
exception error read-preference, validation, hedge, invalid-argument
Server nonce does not begin with client nonce
exception error authentication, aws, wire-protocol, security, runtime
Server record does not share hostname with parent URI
exception error dns, srv, security, connection-string
Stream start ( ) must not be more than the length of the…
exception error gridfs, stream, validation, range
Username required for mechanism
exception error auth, scram, authentication, configuration, credentials
not supported
exception error connection-string, validation, options, typo
Snapshot reads require MongoDB 5.0 or later
exception error sessions, snapshot, server-version, compatibility
URI cannot contain `serverApi`, it can only be passed to…
exception error connection-string, server-api, validation
Cannot limit srv hosts with loadBalanced enabled
exception error connection-string, load-balanced, srv, topology
Option "keyAltNames" must be an array of strings, but was…
exception error csfle, validation, client-encryption, data-key
Option "srvHost" must not be empty
exception error connection-string, srv, dns, configuration
ClientSession must be from the same MongoClient
exception error sessions, multi-client, api-misuse
Either a ENVIRONMENT, OIDC_CALLBACK, or OIDC_HUMAN_CALLBACK…
exception error authentication, oidc, configuration
Client bulk write operation
exception error bulk-write, bson, size-limit
Malformed response body - missing field `access_token`.
exception error csfle, azure, kms, iam
MongoClient must be connected to perform this operation
exception error connection, lifecycle, initialization
Password not allowed for mechanism MONGODB-X509
exception error authentication, x509, configuration, credentials
Server returned an invalid host
exception error authentication, aws, security, wire-protocol, runtime
Binary type with subtype 0x02 contains too short binary size
exception error bson, corruption, wire-protocol, parsing
Could not load workflow for environment
exception error authentication, oidc, config
Invalid port (zero) with hostname
exception error connection-string, configuration, parsing
loadBalanced is only a valid option in the URI
exception error connection-string, load-balanced, validation
Argument "update" must be an object
exception error validation, find-one-and-update, update, argument
Invalid server nonce length
exception error authentication, aws, wire-protocol, runtime
Proxy options cannot be specified multiple times in the…
exception error connection-string, proxy, socks, url-parsing
Auth mechanism property ALLOWED_HOSTS must be an array of…
exception error authentication, oidc, configuration, validation
Argument "replacement" must be an object
exception error validation, find-one-and-replace, replacement, argument
Credentials required for GSSAPI authentication
exception error auth, kerberos, gssapi, authentication, configuration
Invalid BulkOperation, Batch cannot be empty
exception error bulk-write, execute, empty-batch, validation
Invalid source ' ' for mechanism ' ' specified.
exception error authentication, configuration, auth-source, credentials
Tailable cursor does not support skip
exception error find, tailable, capped-collection, skip
Text record may only set any of
exception error dns, connection-string, srv, txt-record, validation
Cannot use srvMaxHosts or srvServiceName with a non-srv…
exception error connection-string, srv, topology
ChangeStream is closed
exception error change-stream, lifecycle, streaming
Cannot request unacknowledged write concern and verbose…
exception error bulk-write, write-concern, config
The ' ' option cannot be used with the ' ' option
exception error tls, connection-string, validation, security
Unknown state
exception critical csfle, client-side-encryption, internal, version-skew, libmongocrypt
[Azure KMS]
exception error csfle, azure, kms, network, timeout
File with id not found
exception error gridfs, not-found, validation
Cannot call abort() on a stream twice
exception error gridfs, stream, lifecycle
Multiple text records not allowed
exception error dns, connection-string, srv, txt-record
Invalid WriteConcern cannot parse
exception error write-concern, configuration, type-error
Properties "causalConsistency" and "snapshot" are mutually…
exception error sessions, options, validation, snapshot
loadBalanced option not supported with a replicaSet option
exception error connection-string, load-balanced, replica-set, topology
A query document must be specified for query
exception warning wire-protocol, internal, op-query
Cannot request unacknowledged write concern and ordered…
exception error bulk-write, write-concern, config
Client bulk write replace models must not contain atomic…
exception error bulk-write, replace, api-misuse
Query document must be specified for query
exception warning wire-protocol, internal, op-msg
Argument "pipeline" must be an array of aggregation stages
exception error validation, aggregation, typescript, api-misuse
Cannot call abortTransaction after calling commitTransaction
exception error sessions, transactions, validation, state, lifecycle
PLAIN Authentication Mechanism needs an auth source
exception error authentication, plain, ldap, configuration, auth-source
ClientSession requires a ServerSessionPool
exception error sessions, internal, validation, misuse
Unexpected null serverSession for an ended implicit session
exception error sessions, lifecycle, cursor, implicit-session
Unknown ReadPreference value
exception error read-preference, configuration, type-error
ServerSessionPool requires a MongoClient
exception error sessions, internal, validation, misuse
URI option " " cannot appear more than once in the…
exception error connection-string, validation, uri