mongodb/node-mongodb-native

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

Code / MessageTypeSeverityTags
ClientSession cannot be serialized to BSON.
exception error sessions, bson, common-mistake, serialization
Server ended moreToCome unexpectedly
exception error exhaust, change-streams, protocol, streaming
Collection.insertMany() cannot be called with an array that…
exception error validation, insert, data-hygiene, typescript
Server roundtrip time is greater than the time remaining
exception error timeout, csot, network, rtt
This batch has already been executed, create new batch to…
exception error bulk-write, execute, state, lifecycle
RunCommandCursor does not support readConcern it must be…
exception error run-command-cursor, read-concern, unsupported
Unable to make a writeConcern from journal=
exception warning write-concern, deprecated, configuration
Negative binary type element size found for subtype 0x02
exception error bson, corruption, wire-protocol, parsing
Invalid collection
exception critical validate, data-integrity, corruption, admin
Unable to include driverInfo name and version, metadata…
exception error handshake, metadata, config, startup
Option "maxStalenessSeconds" must be at least
exception error read-preference, max-staleness, server-selection, invalid-argument
Cursor document did not contain a batch
exception error csfle, encryption, cursor, wire-protocol
End option must be defined
exception error gridfs, stream, internal, validation
AuthMechanism ' ' not supported
exception error authentication, configuration, auth-mechanism, credentials
serverMonitoringMode must be one of `auto`, `poll`, or…
exception error sdam, monitoring, configuration
OP_REPLY numberReturned is an invalid array length
exception critical wire-protocol, op-reply, corruption, network
Replacement document must not use atomic operators
exception error bulk-write, replace, atomic-operators, validation
Document must be a valid JavaScript object
exception error validation, update, crud, invalid-argument
maxConnecting must be > 0 if specified
exception error connection-pool, configuration
Namespace cannot contain a null character
exception error wire-protocol, namespace, validation, security
No workflow provided to the OIDC auth provider.
exception critical oidc, configuration, authentication, internal
Expected result of decryption to be deserialized BSON object
exception error csfle, encryption, internal, bson
OIDC_TOKEN_FILE must be set in the environment.
exception critical oidc, environment, configuration, test, authentication
timeoutMS cannot be used with explain when explain is…
exception error find, explain, timeout, options-validation
ConnectionPool.clear() called in load balanced mode with no…
exception error load-balanced, connection-pool, sdam, internal
Option 'mongodbLogPath' must be of type 'stderr' | 'stdout'…
exception error logging, configuration, type-error
Driver attempted to initialize in load balancing mode, but…
exception error load-balancing, compatibility, configuration, topology
Invalid server API version=
exception error connection-string, server-api, options, configuration
An operation cannot be given a timeoutMS setting when…
exception error transaction, timeout, csot, validation
AuthContext must provide credentials.
exception critical oidc, authentication, configuration, credentials
Descriptors missing a type must define a transform
exception error internal, options, driver-bug, configuration
Options for SrvPoller must exist and include srvHost
exception error sdam, srv, connection-string, dns, configuration
Username must be a string
exception error scram, types, internal, authentication
Transactions do not support unacknowledged write concern
exception error transaction, write-concern, validation
${error.message}
exception error auth, aws, authentication, iam, credentials
Malformed JSON body in GET request.
exception error csfle, azure, kms, network, client-side-encryption
Unable to include driverInfo platform, metadata cannot…
exception error handshake, metadata, config, startup
authMechanism one of
exception error connection-string, authentication, options, configuration
ChangeStream cannot be used as an EventEmitter after being…
exception error change-stream, api-misuse, event-emitter
Missing required callback parameter
exception error sessions, api-misuse, typescript
RunCommandCursor does not support cursor flags, they must…
exception error run-command-cursor, cursor-flags, tailable, unsupported
Unreachable. If you are seeing this error, please file a…
exception error timeout, internal, bug, csot
Password must be a string
exception error scram, types, internal, authentication
unidentifiable error in MongoCrypt - received an error…
exception critical csfle, client-side-encryption, internal, libmongocrypt, debugging
Database names cannot contain the character '.'
exception error validation, namespace, synchronous
Function provided to `withTransaction` must return a Promise
exception error sessions, transactions, validation, async, common-mistake
No addresses found at host
exception error dns, connection-string, srv, mongodb-plus-srv
Invalid first parameter to count
exception warning find, deprecated, count, options-validation
Limit must be less than the number of items
exception error internal, sdam, validation
ReadPreference tags must be an array
exception error read-preference, validation, invalid-argument, tags
Timed out
exception error timeout, network, connection
loadBalanced option only supported with a single host in…
exception error connection-string, load-balanced, topology
MongoClient bulkWrite does not currently support automatic…
exception error csfle, bulk-write, limitation, synchronous
No password is allowed in ENVIRONMENT
exception error authentication, oidc, configuration, credentials
Read preference in a transaction must be primary, not
exception error transactions, read-preference, api-misuse
Server returned an invalid nonce
exception error scram, security, server, sasl, authentication
AuthContext must contain a valid nonce property
exception error scram, internal, invariant, authentication
Could not serialize ns info to BSON
exception error bulk-write, bson, namespace
bulkWrite only supports insertOne, updateOne, updateMany…
exception error bulk-write, operation-shape, validation
Unable to iterate cursor with no id
exception error cursor, getmore, runtime, iteration
Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode
exception error authentication, scram, fips, compliance, crypto
Azure endpoint did not return a value with only…
exception error authentication, oidc, azure, metadata-service, runtime
Must request either bigint or Long for int64 deserialization
exception error bson, options, validation, bigint
Cannot combine replicaSet option with srvMaxHosts
exception error connection-string, srv, replica-set, validation
Tailable cursor does not support sorting
exception error find, tailable, capped-collection, sort
Unable to connect to `mongocryptd`, please make sure it is…
exception critical csfle, mongocryptd, network, deployment
A change stream document has been received that lacks a…
exception error change-stream, aggregation-pipeline, resume-token
Invalid `serverApi` property; must specify a version from…
exception error connection-string, server-api, options, configuration
Unable to get response from server
exception error protocol, unexpected-response, network, connection-drop
authMechanism requires an authSource of '$external
exception error auth, connection-string, kerberos, x509, validation
Attempted to get a refresh token when none exists.
exception error oidc, internal, invariant, token-cache
Cannot make read preference from
exception error read-preference, configuration
AWS_SESSION_TOKEN cannot be provided when using…
exception error authentication, aws, connection-string, mongodb-aws, session-token
BSON element " " is missing
exception error bson, driver-internal, version-mismatch, wire-protocol
Connection must have host and port and credentials defined.
exception critical auth, kerberos, gssapi, internal
Option "keyAltNames" must be an array of strings, but item…
exception error csfle, validation, client-encryption, data-key, types
Option "readPreference" must be a ReadPreference instance
exception error read-preference, validation, configuration, typescript
Unable to continue SCRAM without valid nonce
exception error scram, internal, invariant, authentication
Cannot use maxTimeMS with timeoutMS for explain commands.
exception error timeout, csot, explain, configuration, synchronous
input cluster time must have a valid "signature" property…
exception error sessions, cluster-time, bson, validation, signature
input cluster time must be an object
exception error sessions, cluster-time, validation, bson
Can only make Socks5 connections to TCP hosts
exception error connection, socks5, proxy, configuration
Option 'family' must be 4 or 6 got
exception error connection-options, networking, configuration
Invalid read preference mode
exception error read-preference, validation, invalid-argument, sdam
Unexpected null serverSession for an explicit session
exception error sessions, lifecycle, internal
Cannot create a Timeout with a negative duration
exception error timeout, configuration, validation
Error with profile command
exception error profiling, server-response, runtime, permissions
Option 'mongodbLogComponentSeverities' must be a non-null…
exception error logging, configuration, type-error
Unable to create collection
exception error csfle, client-encryption, encrypted-collection, server-error
AuthMechanismProperties must be an object
exception error connection-string, authentication, options, type-validation
Connection pool minimum size must not be greater than…
exception error config, connection-pool, validation, startup
This method requires a valid operation instance
exception error internal, operations, api-misuse
TOKEN_RESOURCE must be set in the auth mechanism properties…
exception error authentication, oidc, azure, configuration
collection not found
exception error metadata, server-state, auth, configuration
Argument "filter" must be an object
exception error validation, find-one-and-delete, filter, argument
Cannot abort a stream that has already completed
exception error gridfs, stream, lifecycle
Expired after ms
exception error timeout, csot, operation, performance
Query filter must be a plain object or ObjectId
exception error validation, find, filter, argument, typescript
Cannot parse namespace from
exception error namespace, validation, configuration
Attempted to get IDP information when none exists.
exception error oidc, internal, invariant, token-cache