Skip to content
JS
Errors

Node.js errors

ERR_* codes, module resolution and runtime errors.

462 entries1 written pages
Showing 201 to 250 of 462Source: Node.js documentation
CodeError
ERR_INTERNAL_ASSERTIONThere was a bug in Node.js or incorrect usage of Node.js internals. To fix the error, open an issue at https://github.com/nodejs/node/issues.
ERR_INVALID_ADDRESSThe provided address is not understood by the Node.js API.
ERR_INVALID_ADDRESS_FAMILYThe provided address family is not understood by the Node.js API.
ERR_INVALID_ARG_TYPEAn argument of the wrong type was passed to a Node.js API.
ERR_INVALID_ARG_VALUEAn invalid or unsupported value was passed for a given argument.
ERR_INVALID_ASYNC_IDAn invalid asyncId or triggerAsyncId was passed using AsyncHooks. An id less than -1 should never happen.
ERR_INVALID_BUFFER_SIZEA swap was performed on a Buffer but its size was not compatible with the operation.
ERR_INVALID_CHARInvalid characters were detected in headers.
ERR_INVALID_CURSOR_POSA cursor on a given stream cannot be moved to a specified row without a specified column.
ERR_INVALID_FDA file descriptor ('fd') was not valid (e.g. it was a negative value).
ERR_INVALID_FD_TYPEA file descriptor ('fd') type was not valid.
ERR_INVALID_FILE_URL_HOSTA Node.js API that consumes file: URLs (such as certain functions in the fs module) encountered a file URL with an incompatible host. This situation can only occur on Unix-like systems where only localhost or an empty host is supported.
ERR_INVALID_FILE_URL_PATHA Node.js API that consumes file: URLs (such as certain functions in the fs module) encountered a file URL with an incompatible path. The exact semantics for determining whether a path can be used is platform-dependent.
ERR_INVALID_HANDLE_TYPEAn attempt was made to send an unsupported "handle" over an IPC communication channel to a child process. See subprocess.send() and process.send() for more information.
ERR_INVALID_HTTP_TOKENAn invalid HTTP token was supplied.
ERR_INVALID_IP_ADDRESSAn IP address is not valid.
ERR_INVALID_MIME_SYNTAXThe syntax of a MIME is not valid.
ERR_INVALID_MODULEAn attempt was made to load a module that does not exist or was otherwise not valid.
ERR_INVALID_MODULE_SPECIFIERThe imported module string is an invalid URL, package name, or package subpath specifier.
ERR_INVALID_OBJECT_DEFINE_PROPERTYAn error occurred while setting an invalid attribute on the property of an object.
ERR_INVALID_OPT_VALUEAn invalid or unexpected value was passed in an options object.
ERR_INVALID_OPT_VALUE_ENCODINGAn invalid or unknown file encoding was passed.
ERR_INVALID_PACKAGE_CONFIGAn invalid package.json file failed parsing.
ERR_INVALID_PACKAGE_TARGETThe package.json "exports" field contains an invalid target mapping value for the attempted module resolution.
ERR_INVALID_PERFORMANCE_MARKWhile using the Performance Timing API (perf_hooks), a performance mark is invalid.
ERR_INVALID_PROTOCOLAn invalid options.protocol was passed to http.request().
ERR_INVALID_REPL_EVAL_CONFIGBoth breakEvalOnSigint and eval options were set in the REPL config, which is not supported.
ERR_INVALID_REPL_INPUTThe input may not be used in the REPL. The conditions under which this error is used are described in the REPL documentation.
ERR_INVALID_RETURN_PROPERTYThrown in case a function option does not provide a valid value for one of its returned object properties on execution.
ERR_INVALID_RETURN_PROPERTY_VALUEThrown in case a function option does not provide an expected value type for one of its returned object properties on execution.
ERR_INVALID_RETURN_VALUEThrown in case a function option does not return an expected value type on execution, such as when a function is expected to return a promise.
ERR_INVALID_STATEIndicates that an operation cannot be completed due to an invalid state. For instance, an object may have already been destroyed, or may be performing another operation.
ERR_INVALID_SYNC_FORK_INPUTA Buffer, TypedArray, DataView, or string was provided as stdio input to an asynchronous fork. See the documentation for the child_process module for more information.
ERR_INVALID_THISA Node.js API function was called with an incompatible this value. const urlSearchParams = new URLSearchParams('foo=bar&baz=new'); const buf = Buffer.alloc(1); urlSearchParams.has.call(buf, 'foo'); // Throws a TypeError with code 'ERR_INVALID_THIS'
ERR_INVALID_TRANSFER_OBJECTAn invalid transfer object was passed to postMessage().
ERR_INVALID_TUPLEAn element in the iterable provided to the WHATWG URLSearchParams constructor did not represent a [name, value] tuple – that is, if an element is not iterable, or does not consist of exactly two elements.
ERR_INVALID_TYPESCRIPT_SYNTAXThe provided TypeScript syntax is not valid.
ERR_INVALID_URIAn invalid URI was passed.
ERR_INVALID_URLAn invalid URL was passed to the WHATWG URL constructor or the legacy url.parse() to be parsed. The thrown error object typically has an additional property 'input' that contains the URL that failed to parse.
ERR_INVALID_URL_PATTERNAn invalid URLPattern was passed to the WHATWG URLPattern constructor to be parsed.
ERR_INVALID_URL_SCHEMEAn attempt was made to use a URL of an incompatible scheme (protocol) for a specific purpose. It is only used in the WHATWG URL API support in the fs module (which only accepts URLs with 'file' scheme), but may be used in other Node.js APIs as well in the future.
ERR_IPC_CHANNEL_CLOSEDAn attempt was made to use an IPC communication channel that was already closed.
ERR_IPC_DISCONNECTEDAn attempt was made to disconnect an IPC communication channel that was already disconnected. See the documentation for the child_process module for more information.
ERR_IPC_ONE_PIPEAn attempt was made to create a child Node.js process using more than one IPC communication channel. See the documentation for the child_process module for more information.
ERR_IPC_SYNC_FORKAn attempt was made to open an IPC communication channel with a synchronously forked Node.js process. See the documentation for the child_process module for more information.
ERR_IP_BLOCKEDIP is blocked by net.BlockList.
ERR_LOADER_CHAIN_INCOMPLETEAn ESM loader hook returned without calling next() and without explicitly signaling a short circuit.
ERR_LOAD_SQLITE_EXTENSIONAn error occurred while loading a SQLite extension.
ERR_MANIFEST_ASSERT_INTEGRITYAn attempt was made to load a resource, but the resource did not match the integrity defined by the policy manifest. See the documentation for policy manifests for more information.
ERR_MANIFEST_DEPENDENCY_MISSINGAn attempt was made to load a resource, but the resource was not listed as a dependency from the location that attempted to load it. See the documentation for policy manifests for more information.

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