Skip to content
JS
Errors

Node.js errors

ERR_* codes, module resolution and runtime errors.

462 entries1 written pages
Showing 51 to 100 of 462Source: Node.js documentation
CodeError
ERR_CRYPTO_HASH_DIGEST_NO_UTF16The UTF-16 encoding was used with hash.digest(). While the hash.digest() method does allow an encoding argument to be passed in, causing the method to return a string rather than a Buffer, the UTF-16 encoding (e.g. ucs or utf16le) is not supported.
ERR_CRYPTO_HASH_FINALIZEDhash.digest() was called multiple times. The hash.digest() method must be called no more than one time per instance of a Hash object.
ERR_CRYPTO_HASH_UPDATE_FAILEDhash.update() failed for an unspecified reason.
ERR_CRYPTO_INCOMPATIBLE_KEYThe given crypto keys are incompatible with the attempted operation.
ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONSThe selected public or private key encoding is incompatible with other options.
ERR_CRYPTO_INITIALIZATION_FAILEDInitialization of the crypto subsystem failed.
ERR_CRYPTO_INVALID_AUTH_TAGAn invalid authentication tag was provided.
ERR_CRYPTO_INVALID_COUNTERAn invalid counter was provided for a counter-mode cipher.
ERR_CRYPTO_INVALID_CURVEAn invalid elliptic-curve was provided.
ERR_CRYPTO_INVALID_DIGESTAn invalid crypto digest algorithm was specified.
ERR_CRYPTO_INVALID_IVAn invalid initialization vector was provided.
ERR_CRYPTO_INVALID_JWKAn invalid JSON Web Key was provided.
ERR_CRYPTO_INVALID_KEYLENAn invalid key length was provided.
ERR_CRYPTO_INVALID_KEYPAIRAn invalid key pair was provided.
ERR_CRYPTO_INVALID_KEYTYPEAn invalid key type was provided.
ERR_CRYPTO_INVALID_KEY_OBJECT_TYPEThe given crypto key object's type is invalid for the attempted operation.
ERR_CRYPTO_INVALID_MACAn invalid MAC algorithm was specified.
ERR_CRYPTO_INVALID_MESSAGELENAn invalid message length was provided.
ERR_CRYPTO_INVALID_SCRYPT_PARAMSOne or more crypto.scrypt() or crypto.scryptSync() parameters are outside their legal range.
ERR_CRYPTO_INVALID_STATEA crypto method was used on an object that was in an invalid state. For instance, calling cipher.getAuthTag() before calling cipher.final().
ERR_CRYPTO_INVALID_TAG_LENGTHAn invalid authentication tag length was provided.
ERR_CRYPTO_JOB_INIT_FAILEDInitialization of an asynchronous crypto operation failed.
ERR_CRYPTO_JWK_UNSUPPORTED_CURVEKey's Elliptic Curve is not registered for use in the JSON Web Key Elliptic Curve Registry.
ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPEKey's Asymmetric Key Type is not registered for use in the JSON Web Key Types Registry.
ERR_CRYPTO_KEM_NOT_SUPPORTEDAttempted to use KEM operations while Node.js was not compiled with OpenSSL with KEM support.
ERR_CRYPTO_MAC_FINALIZEDAn operation was attempted on a Mac object after finalization was attempted or an underlying MAC update failed.
ERR_CRYPTO_MAC_NOT_SUPPORTEDNode.js was built without support for the OpenSSL EVP_MAC API.
ERR_CRYPTO_MAC_UPDATE_FAILEDmac.update() failed for an unspecified reason.
ERR_CRYPTO_OPERATION_FAILEDA crypto operation failed for an otherwise unspecified reason.
ERR_CRYPTO_PBKDF2_ERRORThe PBKDF2 algorithm failed for unspecified reasons. OpenSSL does not provide more details and therefore neither does Node.js.
ERR_CRYPTO_SCRYPT_INVALID_PARAMETERAn incompatible combination of options was passed to crypto.scrypt() or crypto.scryptSync(). New versions of Node.js use the error code ERR_INCOMPATIBLE_OPTION_PAIR instead, which is consistent with other APIs.
ERR_CRYPTO_SCRYPT_NOT_SUPPORTEDNode.js was compiled without scrypt support. Not possible with the official release binaries but can happen with custom builds, including distro builds.
ERR_CRYPTO_SIGN_KEY_REQUIREDA signing key was not provided to the sign.sign() method.
ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTHcrypto.timingSafeEqual() was called with Buffer, TypedArray, or DataView arguments of different lengths.
ERR_CRYPTO_UNKNOWN_CIPHERAn unknown cipher was specified.
ERR_CRYPTO_UNKNOWN_DH_GROUPAn unknown Diffie-Hellman group name was given. See crypto.getDiffieHellman() for a list of valid group names.
ERR_CRYPTO_UNSUPPORTED_OPERATIONAn attempt to invoke an unsupported crypto operation was made.
ERR_DEBUGGER_ERRORAn error occurred with the debugger.
ERR_DEBUGGER_STARTUP_ERRORThe debugger timed out waiting for the required host/port to be free.
ERR_DIR_CLOSEDThe fs.Dir was previously closed.
ERR_DIR_CONCURRENT_OPERATIONA synchronous read or close call was attempted on an fs.Dir which has ongoing asynchronous operations.
ERR_DLOPEN_DISABLEDLoading native addons has been disabled using --no-addons.
ERR_DLOPEN_FAILEDA call to process.dlopen() failed.
ERR_DNS_SET_SERVERS_FAILEDc-ares failed to set the DNS server.
ERR_DOMAIN_CALLBACK_NOT_AVAILABLEThe node:domain module was not usable since it could not establish the required error handling hooks, because process.setUncaughtExceptionCaptureCallback() had been called at an earlier point in time.
ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTUREprocess.setUncaughtExceptionCaptureCallback() could not be called because the node:domain module has been loaded at an earlier point in time. The stack trace is extended to include the point in time at which the node:domain module had been loaded.
ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTIONv8.startupSnapshot.setDeserializeMainFunction() could not be called because it had already been called before.
ERR_ENCODING_INVALID_ENCODED_DATAData provided to TextDecoder() API was invalid according to the encoding provided.
ERR_ENCODING_NOT_SUPPORTEDEncoding provided to TextDecoder() API was not one of the WHATWG Supported Encodings.
ERR_EVAL_ESM_CANNOT_PRINT--print cannot be used with ESM input.

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