⬡

Node.js Error Codes

Node.js 22134 codes

ERR_* codes across HTTP, streams, crypto, TLS, workers and more

Showing 134 of 134 errors
CodeMessage
ERR_INVALID_ARG_TYPEAn invalid argument type was provided to a function.→
ERR_INVALID_ARG_VALUEAn argument has a value that is out of the accepted range.→
ERR_OUT_OF_RANGEA given value is out of the accepted range.→
ERR_MISSING_ARGSA required function argument was not provided.→
ERR_UNHANDLED_ERRORAn unhandled error occurred.→
ERR_MODULE_NOT_FOUNDA module could not be found.→
ERR_REQUIRE_ESMCannot use require() to load an ES Module.→
ERR_PACKAGE_PATH_NOT_EXPORTEDA package path is not exported from a package.→
ERR_INVALID_PACKAGE_TARGETThe 'exports' field of a package.json contains an invalid target.→
ERR_UNKNOWN_FILE_EXTENSIONAn unknown file extension was encountered.→
ERR_NETWORK_IMPORT_DISALLOWEDNetwork-based imports are not allowed.→
ERR_HTTP_HEADERS_SENTCannot set headers after they are sent to the client.→
ERR_HTTP_INVALID_STATUS_CODEAn invalid HTTP status code was used.→
ERR_SOCKET_ALREADY_ENDEDThe socket has already been ended.→
ERR_STREAM_WRITE_AFTER_ENDCannot write to a stream after it has ended.→
ERR_STREAM_DESTROYEDCannot call a method on a destroyed stream.→
ERR_CRYPTO_INVALID_DIGESTAn invalid crypto digest algorithm was used.→
ERR_CRYPTO_KEY_NOT_FOUNDA private key was not found for a certificate.→
ERR_CHILD_PROCESS_STDIO_MAXBUFFERThe stdio buffer of a child process exceeded its maximum size.→
ERR_WORKER_UNSUPPORTED_OPERATIONAn unsupported operation was performed on a worker thread.→
ERR_FS_EISDIRA path that is a directory was used as a file.→
ERR_FS_FILE_TOO_LARGEA file is too large to be processed.→
ERR_BUFFER_OUT_OF_BOUNDSA buffer operation is out of bounds.→
ERR_ASSERTIONAn assertion failed.→
ERR_USE_AFTER_CLOSEAn operation was attempted on a resource that has been closed.→
ERR_REQUIRE_CYCLE_MODULECircular require() dependency detected in CJS/ESM interop→
ERR_UNSUPPORTED_DIR_IMPORTDirectory import is not supported in ES modules→
ERR_PACKAGE_IMPORT_NOT_EXPORTEDPackage subpath is not defined in package.json "imports"→
ERR_VM_MODULE_NOT_MODULEValue passed to vm linker is not a vm.Module instance→
ERR_VM_MODULE_ALREADY_LINKEDvm.Module.link() called on an already-linked module→
ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATACannot create cached data for an already-evaluated vm module→
ERR_VM_MODULE_LINK_FAILUREvm.Module linking failed due to an error in the linker→
ERR_VM_MODULE_STATUSvm.Module operation invalid for current module status→
ERR_HTTP_TRAILER_INVALIDHTTP trailer set without chunked transfer encoding→
ERR_HTTP_INVALID_HEADER_NAMEHTTP header name contains invalid characters→
ERR_HTTP_INVALID_HEADER_VALUEHTTP header value contains invalid characters→
ERR_HTTP_REQUEST_TIMEOUTHTTP request timed out before completing→
ERR_HTTP_SOCKET_ASSIGNEDHTTP socket already assigned to another response→
ERR_HTTP_SOCKET_ENCODINGCannot change encoding on HTTP socket→
ERR_HTTP_CONTENT_LENGTH_MISMATCHResponse body size does not match Content-Length header→
ERR_HTTP_BODY_NOT_ALLOWEDHTTP response body not allowed for this status code→
ERR_HTTP2_HEADERS_SENTHTTP/2 headers already sent for this stream→
ERR_HTTP2_INVALID_STREAMOperation attempted on a destroyed or closed HTTP/2 stream→
ERR_HTTP2_STREAM_CANCELHTTP/2 stream was cancelled before completion→
ERR_HTTP2_TRAILERS_ALREADY_SENTHTTP/2 trailers already sent on this stream→
ERR_HTTP2_SETTINGS_CANCELHTTP/2 settings request was cancelled→
ERR_HTTP2_CONNECT_AUTHORITYHTTP/2 CONNECT request missing :authority pseudo-header→
ERR_HTTP2_CONNECT_PATHHTTP/2 CONNECT request must not include :path pseudo-header→
ERR_HTTP2_CONNECT_SCHEMEHTTP/2 CONNECT request must not include :scheme pseudo-header→
ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWEDHTTP/2 pseudo-header used in an invalid context→
ERR_HTTP2_STATUS_101HTTP/2 does not support status 101 (Switching Protocols)→
ERR_STREAM_PUSH_AFTER_EOFStream push() called after EOF has been emitted→
ERR_STREAM_UNSHIFT_AFTER_END_EVENTStream unshift() called after end event→
ERR_STREAM_PREMATURE_CLOSEStream was closed before it finished→
ERR_STREAM_NULL_VALUESNon-object-mode stream received null value→
ERR_STREAM_CANNOT_PIPECannot pipe into a stream that is not writable→
ERR_STREAM_OVER_LIMITStream read exceeded the configured high-water mark limit→
ERR_STREAM_ALREADY_FINISHEDStream operation called after stream has finished→
ERR_STREAM_READ_NOT_IMPLEMENTEDReadable stream subclass did not implement _read()→
ERR_BUFFER_TOO_LARGEBuffer size exceeds the maximum allowed limit→
ERR_INVALID_BUFFER_SIZEBuffer size is not a multiple of the word size→
ERR_BUFFER_CONTEXT_NOT_AVAILABLEBuffer is not available in the current V8 context→
ERR_CRYPTO_INVALID_KEY_OBJECT_TYPECrypto key object type is invalid for this operation→
ERR_CRYPTO_INCOMPATIBLE_KEYCrypto key is incompatible with the requested operation→
ERR_CRYPTO_SIGN_KEY_REQUIREDNo key provided for crypto signing operation→
ERR_CRYPTO_UNSUPPORTED_OPERATIONCrypto operation is not supported→
ERR_CRYPTO_HASH_FINALIZEDHash update() called after digest() was already called→
ERR_CRYPTO_HASH_UPDATE_FAILEDHash update() failed internally→
ERR_CRYPTO_ECDH_INVALID_FORMATInvalid format for ECDH public key→
ERR_CRYPTO_INVALID_STATECrypto operation called on object in invalid state→
ERR_TLS_CERT_ALTNAME_INVALIDTLS certificate Subject Alternative Name does not match the hostname→
ERR_TLS_DH_PARAM_SIZETLS Diffie-Hellman parameter size is too small→
ERR_TLS_INVALID_CONTEXTTLS context is not a valid SecureContext→
ERR_TLS_SNI_FROM_SERVERTLS SNI extension cannot be issued from a server socket→
ERR_TLS_SESSION_ATTACKExcessive TLS session resumptions detected→
ERR_TLS_CERT_ALTNAME_FORMATTLS certificate SAN contains an invalid character→
ERR_TLS_RENEGOTIATION_DISABLEDTLS renegotiation was attempted but is disabled→
ERR_TLS_RENEGOTIATION_FAILEDTLS renegotiation request failed→
ERR_CHILD_PROCESS_IPC_REQUIREDIPC channel required but not established for child process→
ERR_CHILD_PROCESS_UNSUPPORTED_OPTIONUnsupported option passed to child_process function→
ERR_INVALID_REPL_EVAL_CONFIGREPL eval and useGlobal options are mutually exclusive→
ERR_CHILD_CLOSED_BEFORE_REPLYChild process closed before sending a reply→
ERR_MISSING_PLATFORM_FOR_WORKERWorker threads not available — platform not supported→
ERR_WORKER_INIT_FAILEDWorker thread initialisation failed→
ERR_WORKER_OUT_OF_MEMORYWorker thread ran out of memory→
ERR_WORKER_PATHWorker script path is invalid→
ERR_WORKER_INVALID_EXEC_ARGVInvalid execArgv passed to Worker constructor→
ERR_WORKER_NOT_RUNNINGOperation failed because worker thread is not running→
ERR_FS_INVALID_SCHEMEFile URL has an invalid or unsupported scheme→
ERR_FS_CP_DIR_TO_NON_DIRCannot copy a directory to a non-directory destination→
ERR_FS_CP_EEXISTDestination file already exists and force is not set→
ERR_FS_CP_FIFO_PIPECannot copy a FIFO or pipe with fs.cp()→
ERR_FS_CP_NON_DIR_TO_DIRCannot copy a non-directory source to a directory destination→
ERR_FS_CP_SOCKETCannot copy a Unix domain socket with fs.cp()→
ERR_FS_CP_UNKNOWNfs.cp() encountered a file of unknown type→
ERR_DNS_SET_SERVERS_FAILEDFailed to set DNS servers→
ERR_INVALID_IP_ADDRESSInvalid IP address string→
ERR_SOCKET_BAD_PORTSocket port is outside the valid range 0-65535→
ERR_SOCKET_DGRAM_NOT_RUNNINGUDP socket is not running→
ERR_SOCKET_ALREADY_CONNECTEDSocket is already connected→
ERR_SOCKET_BAD_TYPEInvalid socket type specified→
ERR_SOCKET_CANNOT_SENDData cannot be sent on this socket→
ERR_SOCKET_CLOSEDSocket has been closed→
ERR_SOCKET_DGRAM_IS_CONNECTEDdgram socket is already connected→
ERR_FALSY_VALUE_REJECTIONPromise rejected with a falsy value→
ERR_MULTIPLE_CALLBACKCallback called more than once→
ERR_ASYNC_CALLBACKAsync hook callback must be a function→
ERR_ASYNC_TYPEAsync resource type must be a string→
ERR_INVALID_CALLBACKCallback argument must be a function→
ERR_INVALID_THISFunction called with invalid this context→
ERR_INVALID_CURSOR_POSCursor position is invalid for readline→
ERR_INVALID_FDFile descriptor is not valid→
ERR_EVENT_RECURSIONRecursive event dispatch detected→
ERR_PROCESS_ALREADY_EXITEDChild process has already exited→
ERR_AMBIGUOUS_ARGUMENTFunction argument is ambiguous or cannot be used as specified→
ERR_NAPI_TSFN_STOP_IDLE_LOOPFailed to stop the libuv idle loop for thread-safe function→
ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LISTMessagePort in message data must also be in transfer list→
ERR_ENCODING_INVALID_ENCODED_DATAEncoded data is invalid for the specified encoding→
ERR_ENCODING_NOT_SUPPORTEDThe specified encoding is not supported→
ERR_INVALID_PROTOCOLInvalid protocol specified for the request→
ERR_UNESCAPED_CHARACTERSURL contains unescaped characters that are not allowed→
ERR_INSPECTOR_ALREADY_ACTIVATEDInspector is already activated→
ERR_INSPECTOR_ALREADY_CONNECTEDInspector session is already connected→
ERR_INSPECTOR_CLOSEDInspector session was closed→
ERR_INSPECTOR_COMMANDInspector command failed→
ERR_WASI_ALREADY_STARTEDWASI instance has already been started→
ERR_WASI_NOT_STARTEDWASI instance has not been started→
ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENTTypedArray buffer is not properly aligned for native addon→
ERR_ACCESS_DENIEDAccess denied by the Node.js permission model→
ERR_ILLEGAL_CONSTRUCTORClass cannot be constructed directly→
ERR_SOCKET_CLOSED_BEFORE_CONNECTIONSocket was destroyed before connection was established→
ERR_HTTP2_MAX_PENDING_SETTINGS_ACKToo many unacknowledged HTTP/2 SETTINGS frames→
ERR_HTTP2_INVALID_HEADER_VALUEHTTP/2 header contains an invalid value→
ERR_INVALID_HANDLE_TYPEInvalid handle type passed to child_process.send()→