Skip to content
JS
Errors

Node.js errors

ERR_* codes, module resolution and runtime errors.

462 entries1 written pages
Showing 1 to 50 of 462Source: Node.js documentation
CodeError
ERR_REQUIRE_ESMrequire() of ES Module not supported
ABORT_ERRUsed when an operation has been aborted (typically using an AbortController). APIs not using AbortSignals typically do not raise an error with this code.
CERT_CHAIN_TOO_LONGThe certificate chain length is greater than the maximum depth.
CERT_HAS_EXPIREDThe certificate has expired: the notAfter date is before the current time.
CERT_NOT_YET_VALIDThe certificate is not yet valid: the notBefore date is after the current time.
CERT_REJECTEDThe root CA is marked to reject the specified purpose.
CERT_REVOKEDThe certificate has been revoked; it is on a certificate revocation list (CRL).
CERT_SIGNATURE_FAILUREThe signature of the certificate is invalid.
CERT_UNTRUSTEDThe root certificate authority (CA) is not marked as trusted for the specified purpose.
CRL_HAS_EXPIREDThe certificate revocation list (CRL) has expired.
CRL_NOT_YET_VALIDThe certificate revocation list (CRL) has a future issue date.
CRL_SIGNATURE_FAILUREThe signature of the certificate revocation list (CRL) is invalid.
DEPTH_ZERO_SELF_SIGNED_CERTThe passed certificate is self-signed and the same certificate cannot be found in the list of trusted certificates.
ERROR_IN_CERT_NOT_AFTER_FIELDThe certificate notAfter field contains an invalid time.
ERROR_IN_CERT_NOT_BEFORE_FIELDThe certificate notBefore field contains an invalid time.
ERROR_IN_CRL_LAST_UPDATE_FIELDThe CRL lastUpdate field contains an invalid time.
ERROR_IN_CRL_NEXT_UPDATE_FIELDThe CRL nextUpdate field contains an invalid time.
ERR_ACCESS_DENIEDA special type of error that is triggered whenever Node.js tries to get access to a resource restricted by the Permission Model.
ERR_AMBIGUOUS_ARGUMENTA function argument is being used in a way that suggests that the function signature may be misunderstood.
ERR_ARG_NOT_ITERABLEAn iterable argument (i.e. a value that works with for...of loops) was required, but not provided to a Node.js API.
ERR_ASSERTIONA special type of error that can be triggered whenever Node.js detects an exceptional logic violation that should never occur. These are raised typically by the node:assert module.
ERR_ASYNC_CALLBACKAn attempt was made to register something that is not a function as an AsyncHooks callback.
ERR_ASYNC_LOADER_REQUEST_NEVER_SETTLEDAn operation related to module loading is customized by an asynchronous loader hook that never settled the promise before the loader thread exits.
ERR_ASYNC_TYPEThe type of an asynchronous resource was invalid. Users are also able to define their own types if using the public embedder API.
ERR_BROTLI_COMPRESSION_FAILEDData passed to a Brotli stream was not successfully compressed.
ERR_BROTLI_INVALID_PARAMAn invalid parameter key was passed during construction of a Brotli stream.
ERR_BUFFER_CONTEXT_NOT_AVAILABLEAn attempt was made to create a Node.js Buffer instance from addon or embedder code, while in a JS engine Context that is not associated with a Node.js instance. The data passed to the Buffer method will have been released by the time the method returns.
ERR_BUFFER_OUT_OF_BOUNDSAn operation outside the bounds of a Buffer was attempted.
ERR_BUFFER_TOO_LARGEAn attempt has been made to create a Buffer larger than the maximum allowed size.
ERR_CANNOT_TRANSFER_OBJECTThe value passed to postMessage() contained an object that is not supported for transferring.
ERR_CANNOT_WATCH_SIGINTNode.js was unable to watch for the SIGINT signal.
ERR_CHILD_CLOSED_BEFORE_REPLYA child process was closed before the parent received a reply.
ERR_CHILD_PROCESS_IPC_REQUIREDUsed when a child process is being forked without specifying an IPC channel.
ERR_CHILD_PROCESS_STDIO_MAXBUFFERUsed when the main process is trying to read data from the child process's STDERR/STDOUT, and the data's length is longer than the maxBuffer option.
ERR_CLOSED_MESSAGE_PORTThere was an attempt to use a MessagePort instance in a closed state, usually after .close() has been called.
ERR_CONSOLE_WRITABLE_STREAMConsole was instantiated without stdout stream, or Console has a non-writable stdout or stderr stream.
ERR_CONSTRUCT_CALL_INVALIDA class constructor was called that is not callable.
ERR_CONSTRUCT_CALL_REQUIREDA constructor for a class was called without new.
ERR_CONTEXT_NOT_INITIALIZEDThe vm context passed into the API is not yet initialized. This could happen when an error occurs (and is caught) during the creation of the context, for example, when the allocation fails or the maximum call stack size is reached when the context is created.
ERR_CPU_PROFILE_ALREADY_STARTEDThe CPU profile with the given name is already started.
ERR_CPU_PROFILE_NOT_STARTEDThe CPU profile with the given name is not started.
ERR_CPU_PROFILE_TOO_MANYThere are too many CPU profiles being collected.
ERR_CPU_USAGEThe native call from process.cpuUsage could not be processed.
ERR_CRYPTO_ARGON2_NOT_SUPPORTEDArgon2 is not supported by the current version of OpenSSL being used.
ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTEDAn OpenSSL engine was requested (for example, through the clientCertEngine or privateKeyEngine TLS options) that is not supported by the version of OpenSSL being used, likely due to the compile-time flag OPENSSL_NO_ENGINE.
ERR_CRYPTO_ECDH_INVALID_FORMATAn invalid value for the format argument was passed to the crypto.ECDH() class getPublicKey() method.
ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEYAn invalid value for the key argument has been passed to the crypto.ECDH() class computeSecret() method. It means that the public key lies outside of the elliptic curve.
ERR_CRYPTO_ENGINE_UNKNOWNAn invalid crypto engine identifier was passed to require('node:crypto').setEngine().
ERR_CRYPTO_FIPS_FORCEDThe --force-fips command-line argument was used but there was an attempt to enable or disable FIPS mode in the node:crypto module.
ERR_CRYPTO_FIPS_UNAVAILABLEAn attempt was made to enable or disable FIPS mode, but FIPS mode was not available.

Other families: JavaScript, npm, React, Next.js, TypeScript, Vite, webpack, Jest