Skip to content
JS
Errors

Node.js errors

ERR_* codes, module resolution and runtime errors.

462 entries1 written pages
Showing 351 to 400 of 462Source: Node.js documentation
CodeError
ERR_STREAM_WRAPPrevents an abort if a string decoder was set on the Socket or if the decoder is in objectMode. const Socket = require('node:net').Socket; const instance = new Socket(); instance.setEncoding('utf8');
ERR_STREAM_WRITE_AFTER_ENDAn attempt was made to call stream.write() after stream.end() has been called.
ERR_STRING_TOO_LONGAn attempt has been made to create a string longer than the maximum allowed length.
ERR_SYNTHETICAn artificial error object used to capture the call stack for diagnostic reports.
ERR_SYSTEM_ERRORAn unspecified or non-specific system error has occurred within the Node.js process. The error object will have an err.info object property with additional details.
ERR_TAP_LEXER_ERRORAn error representing a failing lexer state.
ERR_TAP_PARSER_ERRORAn error representing a failing parser state. Additional information about the token causing the error is available via the cause property.
ERR_TAP_VALIDATION_ERRORThis error represents a failed TAP validation.
ERR_TEST_FAILUREThis error represents a failed test. Additional information about the failure is available via the cause property.
ERR_THROTTLEDA call was dropped because a throttled function could not invoke it immediately or its pending queue was full.
ERR_TLS_ALPN_CALLBACK_INVALID_RESULTThis error is thrown when an ALPNCallback returns a value that is not in the list of ALPN protocols offered by the client.
ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLSThis error is thrown when creating a TLSServer if the TLS options include both ALPNProtocols and ALPNCallback. These options are mutually exclusive.
ERR_TLS_CERT_ALTNAME_FORMATThis error is thrown by checkServerIdentity if a user-supplied subjectaltname property violates encoding rules. Certificate objects produced by Node.js itself always comply with encoding rules and will never cause this error.
ERR_TLS_CERT_ALTNAME_INVALIDWhile using TLS, the host name/IP of the peer did not match any of the subjectAltNames in its certificate.
ERR_TLS_DH_PARAM_SIZEWhile using TLS, the parameter offered for the Diffie-Hellman (DH) key-agreement protocol is too small. By default, the key length must be greater than or equal to 1024 bits to avoid vulnerabilities, even though it is strongly recommended to use 2048 bits or larger for stronger security.
ERR_TLS_HANDSHAKE_TIMEOUTA TLS/SSL handshake timed out. In this case, the server must also abort the connection.
ERR_TLS_INVALID_CONTEXTThe context must be a SecureContext.
ERR_TLS_INVALID_PROTOCOL_METHODThe specified secureProtocol method is invalid. It is either unknown, or disabled because it is insecure.
ERR_TLS_INVALID_PROTOCOL_VERSIONValid TLS protocol versions are 'TLSv1', 'TLSv1.1', or 'TLSv1.2'.
ERR_TLS_INVALID_STATEThe TLS socket must be connected and securely established. Ensure the 'secure' event is emitted before continuing.
ERR_TLS_PROTOCOL_VERSION_CONFLICTAttempting to set a TLS protocol minVersion or maxVersion conflicts with an attempt to set the secureProtocol explicitly. Use one mechanism or the other.
ERR_TLS_PSK_SET_IDENTITY_HINT_FAILEDFailed to set PSK identity hint. Hint may be too long.
ERR_TLS_RENEGOTIATION_DISABLEDAn attempt was made to renegotiate TLS on a socket instance with renegotiation disabled.
ERR_TLS_RENEGOTIATION_FAILEDUsed when a TLS renegotiation request has failed in a non-specific way.
ERR_TLS_RENEGOTIATION_UNSUPPORTEDAn attempt was made to renegotiate TLS, but the TLS implementation does not support caller-initiated renegotiation.
ERR_TLS_REQUIRED_SERVER_NAMEWhile using TLS, the server.addContext() method was called without providing a host name in the first parameter.
ERR_TLS_SESSION_ATTACKAn excessive amount of TLS renegotiations is detected, which is a potential vector for denial-of-service attacks.
ERR_TLS_SNI_FROM_SERVERAn attempt was made to issue Server Name Indication from a TLS server-side socket, which is only valid from a client.
ERR_TRACE_EVENTS_CATEGORY_REQUIREDThe trace_events.createTracing() method requires at least one trace event category.
ERR_TRACE_EVENTS_UNAVAILABLEThe node:trace_events module could not be loaded because Node.js was compiled with the --without-v8-platform flag, or because the process was initialized by an embedder that provides its own V8 platform.
ERR_TRAILING_JUNK_AFTER_STREAM_ENDTrailing junk found after the end of the compressed stream. This error is thrown when extra, unexpected data is detected after the end of a compressed stream (for example, in zlib or gzip decompression).
ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFERA SharedArrayBuffer whose memory is not managed by the JavaScript engine or by Node.js was encountered during serialization. Such a SharedArrayBuffer cannot be serialized.
ERR_TRANSFORM_ALREADY_TRANSFORMINGA Transform stream finished while it was still transforming.
ERR_TRANSFORM_WITH_LENGTH_0A Transform stream finished with data still in the write buffer.
ERR_TTY_INIT_FAILEDThe initialization of a TTY failed due to a system error.
ERR_UNAVAILABLE_DURING_EXITFunction was called within a process.on('exit') handler that shouldn't be called within process.on('exit') handler.
ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SETprocess.setUncaughtExceptionCaptureCallback() was called twice, without first resetting the callback to null. This error is designed to prevent accidentally overwriting a callback registered from another module.
ERR_UNESCAPED_CHARACTERSA string that contained unescaped characters was received.
ERR_UNHANDLED_ERRORAn unhandled error occurred (for instance, when an 'error' event is emitted by an EventEmitter but an 'error' handler is not registered).
ERR_UNKNOWN_BUILTIN_MODULEUsed to identify a specific kind of internal Node.js error that should not typically be triggered by user code. Instances of this error point to an internal bug within the Node.js binary itself.
ERR_UNKNOWN_CREDENTIALA Unix group or user identifier that does not exist was passed.
ERR_UNKNOWN_ENCODINGAn invalid or unknown encoding option was passed to an API.
ERR_UNKNOWN_FILE_EXTENSIONAn attempt was made to load a module with an unknown or unsupported file extension.
ERR_UNKNOWN_MODULE_FORMATAn attempt was made to load a module with an unknown or unsupported format.
ERR_UNKNOWN_SIGNALAn invalid or unknown process signal was passed to an API expecting a valid signal (such as subprocess.kill()).
ERR_UNKNOWN_STDIN_TYPEAn attempt was made to launch a Node.js process with an unknown stdin file type. This error is usually an indication of a bug within Node.js itself, although it is possible for user code to trigger it.
ERR_UNKNOWN_STREAM_TYPEAn attempt was made to launch a Node.js process with an unknown stdout or stderr file type. This error is usually an indication of a bug within Node.js itself, although it is possible for user code to trigger it.
ERR_UNSUPPORTED_DIR_IMPORTimport a directory URL is unsupported. Instead, self-reference a package using its name and define a custom subpath in the "exports" field of the package.json file. import './'; // unsupported import './index.js'; // supported import 'package-name'; // supported
ERR_UNSUPPORTED_ESM_URL_SCHEMEimport with URL schemes other than file and data is unsupported.
ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPINGType stripping is not supported for files descendant of a node_modules directory.

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