11cb0ef41Sopenharmony_ci# Errors 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ci<!--introduced_in=v4.0.0--> 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ci<!--type=misc--> 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ciApplications running in Node.js will generally experience four categories of 81cb0ef41Sopenharmony_cierrors: 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci* Standard JavaScript errors such as {EvalError}, {SyntaxError}, {RangeError}, 111cb0ef41Sopenharmony_ci {ReferenceError}, {TypeError}, and {URIError}. 121cb0ef41Sopenharmony_ci* System errors triggered by underlying operating system constraints such 131cb0ef41Sopenharmony_ci as attempting to open a file that does not exist or attempting to send data 141cb0ef41Sopenharmony_ci over a closed socket. 151cb0ef41Sopenharmony_ci* User-specified errors triggered by application code. 161cb0ef41Sopenharmony_ci* `AssertionError`s are a special class of error that can be triggered when 171cb0ef41Sopenharmony_ci Node.js detects an exceptional logic violation that should never occur. These 181cb0ef41Sopenharmony_ci are raised typically by the `node:assert` module. 191cb0ef41Sopenharmony_ci 201cb0ef41Sopenharmony_ciAll JavaScript and system errors raised by Node.js inherit from, or are 211cb0ef41Sopenharmony_ciinstances of, the standard JavaScript {Error} class and are guaranteed 221cb0ef41Sopenharmony_cito provide _at least_ the properties available on that class. 231cb0ef41Sopenharmony_ci 241cb0ef41Sopenharmony_ci## Error propagation and interception 251cb0ef41Sopenharmony_ci 261cb0ef41Sopenharmony_ci<!--type=misc--> 271cb0ef41Sopenharmony_ci 281cb0ef41Sopenharmony_ciNode.js supports several mechanisms for propagating and handling errors that 291cb0ef41Sopenharmony_cioccur while an application is running. How these errors are reported and 301cb0ef41Sopenharmony_cihandled depends entirely on the type of `Error` and the style of the API that is 311cb0ef41Sopenharmony_cicalled. 321cb0ef41Sopenharmony_ci 331cb0ef41Sopenharmony_ciAll JavaScript errors are handled as exceptions that _immediately_ generate 341cb0ef41Sopenharmony_ciand throw an error using the standard JavaScript `throw` mechanism. These 351cb0ef41Sopenharmony_ciare handled using the [`try…catch` construct][try-catch] provided by the 361cb0ef41Sopenharmony_ciJavaScript language. 371cb0ef41Sopenharmony_ci 381cb0ef41Sopenharmony_ci```js 391cb0ef41Sopenharmony_ci// Throws with a ReferenceError because z is not defined. 401cb0ef41Sopenharmony_citry { 411cb0ef41Sopenharmony_ci const m = 1; 421cb0ef41Sopenharmony_ci const n = m + z; 431cb0ef41Sopenharmony_ci} catch (err) { 441cb0ef41Sopenharmony_ci // Handle the error here. 451cb0ef41Sopenharmony_ci} 461cb0ef41Sopenharmony_ci``` 471cb0ef41Sopenharmony_ci 481cb0ef41Sopenharmony_ciAny use of the JavaScript `throw` mechanism will raise an exception that 491cb0ef41Sopenharmony_ci_must_ be handled or the Node.js process will exit immediately. 501cb0ef41Sopenharmony_ci 511cb0ef41Sopenharmony_ciWith few exceptions, _Synchronous_ APIs (any blocking method that does not 521cb0ef41Sopenharmony_cireturn a {Promise} nor accept a `callback` function, such as 531cb0ef41Sopenharmony_ci[`fs.readFileSync`][]), will use `throw` to report errors. 541cb0ef41Sopenharmony_ci 551cb0ef41Sopenharmony_ciErrors that occur within _Asynchronous APIs_ may be reported in multiple ways: 561cb0ef41Sopenharmony_ci 571cb0ef41Sopenharmony_ci* Some asynchronous methods returns a {Promise}, you should always take into 581cb0ef41Sopenharmony_ci account that it might be rejected. See [`--unhandled-rejections`][] flag for 591cb0ef41Sopenharmony_ci how the process will react to an unhandled promise rejection. 601cb0ef41Sopenharmony_ci 611cb0ef41Sopenharmony_ci <!-- eslint-disable no-useless-return --> 621cb0ef41Sopenharmony_ci 631cb0ef41Sopenharmony_ci ```js 641cb0ef41Sopenharmony_ci const fs = require('fs/promises'); 651cb0ef41Sopenharmony_ci 661cb0ef41Sopenharmony_ci (async () => { 671cb0ef41Sopenharmony_ci let data; 681cb0ef41Sopenharmony_ci try { 691cb0ef41Sopenharmony_ci data = await fs.readFile('a file that does not exist'); 701cb0ef41Sopenharmony_ci } catch (err) { 711cb0ef41Sopenharmony_ci console.error('There was an error reading the file!', err); 721cb0ef41Sopenharmony_ci return; 731cb0ef41Sopenharmony_ci } 741cb0ef41Sopenharmony_ci // Otherwise handle the data 751cb0ef41Sopenharmony_ci })(); 761cb0ef41Sopenharmony_ci ``` 771cb0ef41Sopenharmony_ci 781cb0ef41Sopenharmony_ci* Most asynchronous methods that accept a `callback` function will accept an 791cb0ef41Sopenharmony_ci `Error` object passed as the first argument to that function. If that first 801cb0ef41Sopenharmony_ci argument is not `null` and is an instance of `Error`, then an error occurred 811cb0ef41Sopenharmony_ci that should be handled. 821cb0ef41Sopenharmony_ci 831cb0ef41Sopenharmony_ci <!-- eslint-disable no-useless-return --> 841cb0ef41Sopenharmony_ci 851cb0ef41Sopenharmony_ci ```js 861cb0ef41Sopenharmony_ci const fs = require('node:fs'); 871cb0ef41Sopenharmony_ci fs.readFile('a file that does not exist', (err, data) => { 881cb0ef41Sopenharmony_ci if (err) { 891cb0ef41Sopenharmony_ci console.error('There was an error reading the file!', err); 901cb0ef41Sopenharmony_ci return; 911cb0ef41Sopenharmony_ci } 921cb0ef41Sopenharmony_ci // Otherwise handle the data 931cb0ef41Sopenharmony_ci }); 941cb0ef41Sopenharmony_ci ``` 951cb0ef41Sopenharmony_ci 961cb0ef41Sopenharmony_ci* When an asynchronous method is called on an object that is an 971cb0ef41Sopenharmony_ci [`EventEmitter`][], errors can be routed to that object's `'error'` event. 981cb0ef41Sopenharmony_ci 991cb0ef41Sopenharmony_ci ```js 1001cb0ef41Sopenharmony_ci const net = require('node:net'); 1011cb0ef41Sopenharmony_ci const connection = net.connect('localhost'); 1021cb0ef41Sopenharmony_ci 1031cb0ef41Sopenharmony_ci // Adding an 'error' event handler to a stream: 1041cb0ef41Sopenharmony_ci connection.on('error', (err) => { 1051cb0ef41Sopenharmony_ci // If the connection is reset by the server, or if it can't 1061cb0ef41Sopenharmony_ci // connect at all, or on any sort of error encountered by 1071cb0ef41Sopenharmony_ci // the connection, the error will be sent here. 1081cb0ef41Sopenharmony_ci console.error(err); 1091cb0ef41Sopenharmony_ci }); 1101cb0ef41Sopenharmony_ci 1111cb0ef41Sopenharmony_ci connection.pipe(process.stdout); 1121cb0ef41Sopenharmony_ci ``` 1131cb0ef41Sopenharmony_ci 1141cb0ef41Sopenharmony_ci* A handful of typically asynchronous methods in the Node.js API may still 1151cb0ef41Sopenharmony_ci use the `throw` mechanism to raise exceptions that must be handled using 1161cb0ef41Sopenharmony_ci `try…catch`. There is no comprehensive list of such methods; please 1171cb0ef41Sopenharmony_ci refer to the documentation of each method to determine the appropriate 1181cb0ef41Sopenharmony_ci error handling mechanism required. 1191cb0ef41Sopenharmony_ci 1201cb0ef41Sopenharmony_ciThe use of the `'error'` event mechanism is most common for [stream-based][] 1211cb0ef41Sopenharmony_ciand [event emitter-based][] APIs, which themselves represent a series of 1221cb0ef41Sopenharmony_ciasynchronous operations over time (as opposed to a single operation that may 1231cb0ef41Sopenharmony_cipass or fail). 1241cb0ef41Sopenharmony_ci 1251cb0ef41Sopenharmony_ciFor _all_ [`EventEmitter`][] objects, if an `'error'` event handler is not 1261cb0ef41Sopenharmony_ciprovided, the error will be thrown, causing the Node.js process to report an 1271cb0ef41Sopenharmony_ciuncaught exception and crash unless either: a handler has been registered for 1281cb0ef41Sopenharmony_cithe [`'uncaughtException'`][] event, or the deprecated [`node:domain`][domains] 1291cb0ef41Sopenharmony_cimodule is used. 1301cb0ef41Sopenharmony_ci 1311cb0ef41Sopenharmony_ci```js 1321cb0ef41Sopenharmony_ciconst EventEmitter = require('node:events'); 1331cb0ef41Sopenharmony_ciconst ee = new EventEmitter(); 1341cb0ef41Sopenharmony_ci 1351cb0ef41Sopenharmony_cisetImmediate(() => { 1361cb0ef41Sopenharmony_ci // This will crash the process because no 'error' event 1371cb0ef41Sopenharmony_ci // handler has been added. 1381cb0ef41Sopenharmony_ci ee.emit('error', new Error('This will crash')); 1391cb0ef41Sopenharmony_ci}); 1401cb0ef41Sopenharmony_ci``` 1411cb0ef41Sopenharmony_ci 1421cb0ef41Sopenharmony_ciErrors generated in this way _cannot_ be intercepted using `try…catch` as 1431cb0ef41Sopenharmony_cithey are thrown _after_ the calling code has already exited. 1441cb0ef41Sopenharmony_ci 1451cb0ef41Sopenharmony_ciDevelopers must refer to the documentation for each method to determine 1461cb0ef41Sopenharmony_ciexactly how errors raised by those methods are propagated. 1471cb0ef41Sopenharmony_ci 1481cb0ef41Sopenharmony_ci## Class: `Error` 1491cb0ef41Sopenharmony_ci 1501cb0ef41Sopenharmony_ci<!--type=class--> 1511cb0ef41Sopenharmony_ci 1521cb0ef41Sopenharmony_ciA generic JavaScript {Error} object that does not denote any specific 1531cb0ef41Sopenharmony_cicircumstance of why the error occurred. `Error` objects capture a "stack trace" 1541cb0ef41Sopenharmony_cidetailing the point in the code at which the `Error` was instantiated, and may 1551cb0ef41Sopenharmony_ciprovide a text description of the error. 1561cb0ef41Sopenharmony_ci 1571cb0ef41Sopenharmony_ciAll errors generated by Node.js, including all system and JavaScript errors, 1581cb0ef41Sopenharmony_ciwill either be instances of, or inherit from, the `Error` class. 1591cb0ef41Sopenharmony_ci 1601cb0ef41Sopenharmony_ci### `new Error(message[, options])` 1611cb0ef41Sopenharmony_ci 1621cb0ef41Sopenharmony_ci* `message` {string} 1631cb0ef41Sopenharmony_ci* `options` {Object} 1641cb0ef41Sopenharmony_ci * `cause` {any} The error that caused the newly created error. 1651cb0ef41Sopenharmony_ci 1661cb0ef41Sopenharmony_ciCreates a new `Error` object and sets the `error.message` property to the 1671cb0ef41Sopenharmony_ciprovided text message. If an object is passed as `message`, the text message 1681cb0ef41Sopenharmony_ciis generated by calling `String(message)`. If the `cause` option is provided, 1691cb0ef41Sopenharmony_ciit is assigned to the `error.cause` property. The `error.stack` property will 1701cb0ef41Sopenharmony_cirepresent the point in the code at which `new Error()` was called. Stack traces 1711cb0ef41Sopenharmony_ciare dependent on [V8's stack trace API][]. Stack traces extend only to either 1721cb0ef41Sopenharmony_ci(a) the beginning of _synchronous code execution_, or (b) the number of frames 1731cb0ef41Sopenharmony_cigiven by the property `Error.stackTraceLimit`, whichever is smaller. 1741cb0ef41Sopenharmony_ci 1751cb0ef41Sopenharmony_ci### `Error.captureStackTrace(targetObject[, constructorOpt])` 1761cb0ef41Sopenharmony_ci 1771cb0ef41Sopenharmony_ci* `targetObject` {Object} 1781cb0ef41Sopenharmony_ci* `constructorOpt` {Function} 1791cb0ef41Sopenharmony_ci 1801cb0ef41Sopenharmony_ciCreates a `.stack` property on `targetObject`, which when accessed returns 1811cb0ef41Sopenharmony_cia string representing the location in the code at which 1821cb0ef41Sopenharmony_ci`Error.captureStackTrace()` was called. 1831cb0ef41Sopenharmony_ci 1841cb0ef41Sopenharmony_ci```js 1851cb0ef41Sopenharmony_ciconst myObject = {}; 1861cb0ef41Sopenharmony_ciError.captureStackTrace(myObject); 1871cb0ef41Sopenharmony_cimyObject.stack; // Similar to `new Error().stack` 1881cb0ef41Sopenharmony_ci``` 1891cb0ef41Sopenharmony_ci 1901cb0ef41Sopenharmony_ciThe first line of the trace will be prefixed with 1911cb0ef41Sopenharmony_ci`${myObject.name}: ${myObject.message}`. 1921cb0ef41Sopenharmony_ci 1931cb0ef41Sopenharmony_ciThe optional `constructorOpt` argument accepts a function. If given, all frames 1941cb0ef41Sopenharmony_ciabove `constructorOpt`, including `constructorOpt`, will be omitted from the 1951cb0ef41Sopenharmony_cigenerated stack trace. 1961cb0ef41Sopenharmony_ci 1971cb0ef41Sopenharmony_ciThe `constructorOpt` argument is useful for hiding implementation 1981cb0ef41Sopenharmony_cidetails of error generation from the user. For instance: 1991cb0ef41Sopenharmony_ci 2001cb0ef41Sopenharmony_ci```js 2011cb0ef41Sopenharmony_cifunction a() { 2021cb0ef41Sopenharmony_ci b(); 2031cb0ef41Sopenharmony_ci} 2041cb0ef41Sopenharmony_ci 2051cb0ef41Sopenharmony_cifunction b() { 2061cb0ef41Sopenharmony_ci c(); 2071cb0ef41Sopenharmony_ci} 2081cb0ef41Sopenharmony_ci 2091cb0ef41Sopenharmony_cifunction c() { 2101cb0ef41Sopenharmony_ci // Create an error without stack trace to avoid calculating the stack trace twice. 2111cb0ef41Sopenharmony_ci const { stackTraceLimit } = Error; 2121cb0ef41Sopenharmony_ci Error.stackTraceLimit = 0; 2131cb0ef41Sopenharmony_ci const error = new Error(); 2141cb0ef41Sopenharmony_ci Error.stackTraceLimit = stackTraceLimit; 2151cb0ef41Sopenharmony_ci 2161cb0ef41Sopenharmony_ci // Capture the stack trace above function b 2171cb0ef41Sopenharmony_ci Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace 2181cb0ef41Sopenharmony_ci throw error; 2191cb0ef41Sopenharmony_ci} 2201cb0ef41Sopenharmony_ci 2211cb0ef41Sopenharmony_cia(); 2221cb0ef41Sopenharmony_ci``` 2231cb0ef41Sopenharmony_ci 2241cb0ef41Sopenharmony_ci### `Error.stackTraceLimit` 2251cb0ef41Sopenharmony_ci 2261cb0ef41Sopenharmony_ci* {number} 2271cb0ef41Sopenharmony_ci 2281cb0ef41Sopenharmony_ciThe `Error.stackTraceLimit` property specifies the number of stack frames 2291cb0ef41Sopenharmony_cicollected by a stack trace (whether generated by `new Error().stack` or 2301cb0ef41Sopenharmony_ci`Error.captureStackTrace(obj)`). 2311cb0ef41Sopenharmony_ci 2321cb0ef41Sopenharmony_ciThe default value is `10` but may be set to any valid JavaScript number. Changes 2331cb0ef41Sopenharmony_ciwill affect any stack trace captured _after_ the value has been changed. 2341cb0ef41Sopenharmony_ci 2351cb0ef41Sopenharmony_ciIf set to a non-number value, or set to a negative number, stack traces will 2361cb0ef41Sopenharmony_cinot capture any frames. 2371cb0ef41Sopenharmony_ci 2381cb0ef41Sopenharmony_ci### `error.cause` 2391cb0ef41Sopenharmony_ci 2401cb0ef41Sopenharmony_ci<!-- YAML 2411cb0ef41Sopenharmony_ciadded: v16.9.0 2421cb0ef41Sopenharmony_ci--> 2431cb0ef41Sopenharmony_ci 2441cb0ef41Sopenharmony_ci* {any} 2451cb0ef41Sopenharmony_ci 2461cb0ef41Sopenharmony_ciIf present, the `error.cause` property is the underlying cause of the `Error`. 2471cb0ef41Sopenharmony_ciIt is used when catching an error and throwing a new one with a different 2481cb0ef41Sopenharmony_cimessage or code in order to still have access to the original error. 2491cb0ef41Sopenharmony_ci 2501cb0ef41Sopenharmony_ciThe `error.cause` property is typically set by calling 2511cb0ef41Sopenharmony_ci`new Error(message, { cause })`. It is not set by the constructor if the 2521cb0ef41Sopenharmony_ci`cause` option is not provided. 2531cb0ef41Sopenharmony_ci 2541cb0ef41Sopenharmony_ciThis property allows errors to be chained. When serializing `Error` objects, 2551cb0ef41Sopenharmony_ci[`util.inspect()`][] recursively serializes `error.cause` if it is set. 2561cb0ef41Sopenharmony_ci 2571cb0ef41Sopenharmony_ci```js 2581cb0ef41Sopenharmony_ciconst cause = new Error('The remote HTTP server responded with a 500 status'); 2591cb0ef41Sopenharmony_ciconst symptom = new Error('The message failed to send', { cause }); 2601cb0ef41Sopenharmony_ci 2611cb0ef41Sopenharmony_ciconsole.log(symptom); 2621cb0ef41Sopenharmony_ci// Prints: 2631cb0ef41Sopenharmony_ci// Error: The message failed to send 2641cb0ef41Sopenharmony_ci// at REPL2:1:17 2651cb0ef41Sopenharmony_ci// at Script.runInThisContext (node:vm:130:12) 2661cb0ef41Sopenharmony_ci// ... 7 lines matching cause stack trace ... 2671cb0ef41Sopenharmony_ci// at [_line] [as _line] (node:internal/readline/interface:886:18) { 2681cb0ef41Sopenharmony_ci// [cause]: Error: The remote HTTP server responded with a 500 status 2691cb0ef41Sopenharmony_ci// at REPL1:1:15 2701cb0ef41Sopenharmony_ci// at Script.runInThisContext (node:vm:130:12) 2711cb0ef41Sopenharmony_ci// at REPLServer.defaultEval (node:repl:574:29) 2721cb0ef41Sopenharmony_ci// at bound (node:domain:426:15) 2731cb0ef41Sopenharmony_ci// at REPLServer.runBound [as eval] (node:domain:437:12) 2741cb0ef41Sopenharmony_ci// at REPLServer.onLine (node:repl:902:10) 2751cb0ef41Sopenharmony_ci// at REPLServer.emit (node:events:549:35) 2761cb0ef41Sopenharmony_ci// at REPLServer.emit (node:domain:482:12) 2771cb0ef41Sopenharmony_ci// at [_onLine] [as _onLine] (node:internal/readline/interface:425:12) 2781cb0ef41Sopenharmony_ci// at [_line] [as _line] (node:internal/readline/interface:886:18) 2791cb0ef41Sopenharmony_ci``` 2801cb0ef41Sopenharmony_ci 2811cb0ef41Sopenharmony_ci### `error.code` 2821cb0ef41Sopenharmony_ci 2831cb0ef41Sopenharmony_ci* {string} 2841cb0ef41Sopenharmony_ci 2851cb0ef41Sopenharmony_ciThe `error.code` property is a string label that identifies the kind of error. 2861cb0ef41Sopenharmony_ci`error.code` is the most stable way to identify an error. It will only change 2871cb0ef41Sopenharmony_cibetween major versions of Node.js. In contrast, `error.message` strings may 2881cb0ef41Sopenharmony_cichange between any versions of Node.js. See [Node.js error codes][] for details 2891cb0ef41Sopenharmony_ciabout specific codes. 2901cb0ef41Sopenharmony_ci 2911cb0ef41Sopenharmony_ci### `error.message` 2921cb0ef41Sopenharmony_ci 2931cb0ef41Sopenharmony_ci* {string} 2941cb0ef41Sopenharmony_ci 2951cb0ef41Sopenharmony_ciThe `error.message` property is the string description of the error as set by 2961cb0ef41Sopenharmony_cicalling `new Error(message)`. The `message` passed to the constructor will also 2971cb0ef41Sopenharmony_ciappear in the first line of the stack trace of the `Error`, however changing 2981cb0ef41Sopenharmony_cithis property after the `Error` object is created _may not_ change the first 2991cb0ef41Sopenharmony_ciline of the stack trace (for example, when `error.stack` is read before this 3001cb0ef41Sopenharmony_ciproperty is changed). 3011cb0ef41Sopenharmony_ci 3021cb0ef41Sopenharmony_ci```js 3031cb0ef41Sopenharmony_ciconst err = new Error('The message'); 3041cb0ef41Sopenharmony_ciconsole.error(err.message); 3051cb0ef41Sopenharmony_ci// Prints: The message 3061cb0ef41Sopenharmony_ci``` 3071cb0ef41Sopenharmony_ci 3081cb0ef41Sopenharmony_ci### `error.stack` 3091cb0ef41Sopenharmony_ci 3101cb0ef41Sopenharmony_ci* {string} 3111cb0ef41Sopenharmony_ci 3121cb0ef41Sopenharmony_ciThe `error.stack` property is a string describing the point in the code at which 3131cb0ef41Sopenharmony_cithe `Error` was instantiated. 3141cb0ef41Sopenharmony_ci 3151cb0ef41Sopenharmony_ci```console 3161cb0ef41Sopenharmony_ciError: Things keep happening! 3171cb0ef41Sopenharmony_ci at /home/gbusey/file.js:525:2 3181cb0ef41Sopenharmony_ci at Frobnicator.refrobulate (/home/gbusey/business-logic.js:424:21) 3191cb0ef41Sopenharmony_ci at Actor.<anonymous> (/home/gbusey/actors.js:400:8) 3201cb0ef41Sopenharmony_ci at increaseSynergy (/home/gbusey/actors.js:701:6) 3211cb0ef41Sopenharmony_ci``` 3221cb0ef41Sopenharmony_ci 3231cb0ef41Sopenharmony_ciThe first line is formatted as `<error class name>: <error message>`, and 3241cb0ef41Sopenharmony_ciis followed by a series of stack frames (each line beginning with "at "). 3251cb0ef41Sopenharmony_ciEach frame describes a call site within the code that lead to the error being 3261cb0ef41Sopenharmony_cigenerated. V8 attempts to display a name for each function (by variable name, 3271cb0ef41Sopenharmony_cifunction name, or object method name), but occasionally it will not be able to 3281cb0ef41Sopenharmony_cifind a suitable name. If V8 cannot determine a name for the function, only 3291cb0ef41Sopenharmony_cilocation information will be displayed for that frame. Otherwise, the 3301cb0ef41Sopenharmony_cidetermined function name will be displayed with location information appended 3311cb0ef41Sopenharmony_ciin parentheses. 3321cb0ef41Sopenharmony_ci 3331cb0ef41Sopenharmony_ciFrames are only generated for JavaScript functions. If, for example, execution 3341cb0ef41Sopenharmony_cisynchronously passes through a C++ addon function called `cheetahify` which 3351cb0ef41Sopenharmony_ciitself calls a JavaScript function, the frame representing the `cheetahify` call 3361cb0ef41Sopenharmony_ciwill not be present in the stack traces: 3371cb0ef41Sopenharmony_ci 3381cb0ef41Sopenharmony_ci```js 3391cb0ef41Sopenharmony_ciconst cheetahify = require('./native-binding.node'); 3401cb0ef41Sopenharmony_ci 3411cb0ef41Sopenharmony_cifunction makeFaster() { 3421cb0ef41Sopenharmony_ci // `cheetahify()` *synchronously* calls speedy. 3431cb0ef41Sopenharmony_ci cheetahify(function speedy() { 3441cb0ef41Sopenharmony_ci throw new Error('oh no!'); 3451cb0ef41Sopenharmony_ci }); 3461cb0ef41Sopenharmony_ci} 3471cb0ef41Sopenharmony_ci 3481cb0ef41Sopenharmony_cimakeFaster(); 3491cb0ef41Sopenharmony_ci// will throw: 3501cb0ef41Sopenharmony_ci// /home/gbusey/file.js:6 3511cb0ef41Sopenharmony_ci// throw new Error('oh no!'); 3521cb0ef41Sopenharmony_ci// ^ 3531cb0ef41Sopenharmony_ci// Error: oh no! 3541cb0ef41Sopenharmony_ci// at speedy (/home/gbusey/file.js:6:11) 3551cb0ef41Sopenharmony_ci// at makeFaster (/home/gbusey/file.js:5:3) 3561cb0ef41Sopenharmony_ci// at Object.<anonymous> (/home/gbusey/file.js:10:1) 3571cb0ef41Sopenharmony_ci// at Module._compile (module.js:456:26) 3581cb0ef41Sopenharmony_ci// at Object.Module._extensions..js (module.js:474:10) 3591cb0ef41Sopenharmony_ci// at Module.load (module.js:356:32) 3601cb0ef41Sopenharmony_ci// at Function.Module._load (module.js:312:12) 3611cb0ef41Sopenharmony_ci// at Function.Module.runMain (module.js:497:10) 3621cb0ef41Sopenharmony_ci// at startup (node.js:119:16) 3631cb0ef41Sopenharmony_ci// at node.js:906:3 3641cb0ef41Sopenharmony_ci``` 3651cb0ef41Sopenharmony_ci 3661cb0ef41Sopenharmony_ciThe location information will be one of: 3671cb0ef41Sopenharmony_ci 3681cb0ef41Sopenharmony_ci* `native`, if the frame represents a call internal to V8 (as in `[].forEach`). 3691cb0ef41Sopenharmony_ci* `plain-filename.js:line:column`, if the frame represents a call internal 3701cb0ef41Sopenharmony_ci to Node.js. 3711cb0ef41Sopenharmony_ci* `/absolute/path/to/file.js:line:column`, if the frame represents a call in 3721cb0ef41Sopenharmony_ci a user program (using CommonJS module system), or its dependencies. 3731cb0ef41Sopenharmony_ci* `<transport-protocol>:///url/to/module/file.mjs:line:column`, if the frame 3741cb0ef41Sopenharmony_ci represents a call in a user program (using ES module system), or 3751cb0ef41Sopenharmony_ci its dependencies. 3761cb0ef41Sopenharmony_ci 3771cb0ef41Sopenharmony_ciThe string representing the stack trace is lazily generated when the 3781cb0ef41Sopenharmony_ci`error.stack` property is **accessed**. 3791cb0ef41Sopenharmony_ci 3801cb0ef41Sopenharmony_ciThe number of frames captured by the stack trace is bounded by the smaller of 3811cb0ef41Sopenharmony_ci`Error.stackTraceLimit` or the number of available frames on the current event 3821cb0ef41Sopenharmony_ciloop tick. 3831cb0ef41Sopenharmony_ci 3841cb0ef41Sopenharmony_ci## Class: `AssertionError` 3851cb0ef41Sopenharmony_ci 3861cb0ef41Sopenharmony_ci* Extends: {errors.Error} 3871cb0ef41Sopenharmony_ci 3881cb0ef41Sopenharmony_ciIndicates the failure of an assertion. For details, see 3891cb0ef41Sopenharmony_ci[`Class: assert.AssertionError`][]. 3901cb0ef41Sopenharmony_ci 3911cb0ef41Sopenharmony_ci## Class: `RangeError` 3921cb0ef41Sopenharmony_ci 3931cb0ef41Sopenharmony_ci* Extends: {errors.Error} 3941cb0ef41Sopenharmony_ci 3951cb0ef41Sopenharmony_ciIndicates that a provided argument was not within the set or range of 3961cb0ef41Sopenharmony_ciacceptable values for a function; whether that is a numeric range, or 3971cb0ef41Sopenharmony_cioutside the set of options for a given function parameter. 3981cb0ef41Sopenharmony_ci 3991cb0ef41Sopenharmony_ci```js 4001cb0ef41Sopenharmony_cirequire('node:net').connect(-1); 4011cb0ef41Sopenharmony_ci// Throws "RangeError: "port" option should be >= 0 and < 65536: -1" 4021cb0ef41Sopenharmony_ci``` 4031cb0ef41Sopenharmony_ci 4041cb0ef41Sopenharmony_ciNode.js will generate and throw `RangeError` instances _immediately_ as a form 4051cb0ef41Sopenharmony_ciof argument validation. 4061cb0ef41Sopenharmony_ci 4071cb0ef41Sopenharmony_ci## Class: `ReferenceError` 4081cb0ef41Sopenharmony_ci 4091cb0ef41Sopenharmony_ci* Extends: {errors.Error} 4101cb0ef41Sopenharmony_ci 4111cb0ef41Sopenharmony_ciIndicates that an attempt is being made to access a variable that is not 4121cb0ef41Sopenharmony_cidefined. Such errors commonly indicate typos in code, or an otherwise broken 4131cb0ef41Sopenharmony_ciprogram. 4141cb0ef41Sopenharmony_ci 4151cb0ef41Sopenharmony_ciWhile client code may generate and propagate these errors, in practice, only V8 4161cb0ef41Sopenharmony_ciwill do so. 4171cb0ef41Sopenharmony_ci 4181cb0ef41Sopenharmony_ci```js 4191cb0ef41Sopenharmony_cidoesNotExist; 4201cb0ef41Sopenharmony_ci// Throws ReferenceError, doesNotExist is not a variable in this program. 4211cb0ef41Sopenharmony_ci``` 4221cb0ef41Sopenharmony_ci 4231cb0ef41Sopenharmony_ciUnless an application is dynamically generating and running code, 4241cb0ef41Sopenharmony_ci`ReferenceError` instances indicate a bug in the code or its dependencies. 4251cb0ef41Sopenharmony_ci 4261cb0ef41Sopenharmony_ci## Class: `SyntaxError` 4271cb0ef41Sopenharmony_ci 4281cb0ef41Sopenharmony_ci* Extends: {errors.Error} 4291cb0ef41Sopenharmony_ci 4301cb0ef41Sopenharmony_ciIndicates that a program is not valid JavaScript. These errors may only be 4311cb0ef41Sopenharmony_cigenerated and propagated as a result of code evaluation. Code evaluation may 4321cb0ef41Sopenharmony_cihappen as a result of `eval`, `Function`, `require`, or [vm][]. These errors 4331cb0ef41Sopenharmony_ciare almost always indicative of a broken program. 4341cb0ef41Sopenharmony_ci 4351cb0ef41Sopenharmony_ci```js 4361cb0ef41Sopenharmony_citry { 4371cb0ef41Sopenharmony_ci require('node:vm').runInThisContext('binary ! isNotOk'); 4381cb0ef41Sopenharmony_ci} catch (err) { 4391cb0ef41Sopenharmony_ci // 'err' will be a SyntaxError. 4401cb0ef41Sopenharmony_ci} 4411cb0ef41Sopenharmony_ci``` 4421cb0ef41Sopenharmony_ci 4431cb0ef41Sopenharmony_ci`SyntaxError` instances are unrecoverable in the context that created them – 4441cb0ef41Sopenharmony_cithey may only be caught by other contexts. 4451cb0ef41Sopenharmony_ci 4461cb0ef41Sopenharmony_ci## Class: `SystemError` 4471cb0ef41Sopenharmony_ci 4481cb0ef41Sopenharmony_ci* Extends: {errors.Error} 4491cb0ef41Sopenharmony_ci 4501cb0ef41Sopenharmony_ciNode.js generates system errors when exceptions occur within its runtime 4511cb0ef41Sopenharmony_cienvironment. These usually occur when an application violates an operating 4521cb0ef41Sopenharmony_cisystem constraint. For example, a system error will occur if an application 4531cb0ef41Sopenharmony_ciattempts to read a file that does not exist. 4541cb0ef41Sopenharmony_ci 4551cb0ef41Sopenharmony_ci* `address` {string} If present, the address to which a network connection 4561cb0ef41Sopenharmony_ci failed 4571cb0ef41Sopenharmony_ci* `code` {string} The string error code 4581cb0ef41Sopenharmony_ci* `dest` {string} If present, the file path destination when reporting a file 4591cb0ef41Sopenharmony_ci system error 4601cb0ef41Sopenharmony_ci* `errno` {number} The system-provided error number 4611cb0ef41Sopenharmony_ci* `info` {Object} If present, extra details about the error condition 4621cb0ef41Sopenharmony_ci* `message` {string} A system-provided human-readable description of the error 4631cb0ef41Sopenharmony_ci* `path` {string} If present, the file path when reporting a file system error 4641cb0ef41Sopenharmony_ci* `port` {number} If present, the network connection port that is not available 4651cb0ef41Sopenharmony_ci* `syscall` {string} The name of the system call that triggered the error 4661cb0ef41Sopenharmony_ci 4671cb0ef41Sopenharmony_ci### `error.address` 4681cb0ef41Sopenharmony_ci 4691cb0ef41Sopenharmony_ci* {string} 4701cb0ef41Sopenharmony_ci 4711cb0ef41Sopenharmony_ciIf present, `error.address` is a string describing the address to which a 4721cb0ef41Sopenharmony_cinetwork connection failed. 4731cb0ef41Sopenharmony_ci 4741cb0ef41Sopenharmony_ci### `error.code` 4751cb0ef41Sopenharmony_ci 4761cb0ef41Sopenharmony_ci* {string} 4771cb0ef41Sopenharmony_ci 4781cb0ef41Sopenharmony_ciThe `error.code` property is a string representing the error code. 4791cb0ef41Sopenharmony_ci 4801cb0ef41Sopenharmony_ci### `error.dest` 4811cb0ef41Sopenharmony_ci 4821cb0ef41Sopenharmony_ci* {string} 4831cb0ef41Sopenharmony_ci 4841cb0ef41Sopenharmony_ciIf present, `error.dest` is the file path destination when reporting a file 4851cb0ef41Sopenharmony_cisystem error. 4861cb0ef41Sopenharmony_ci 4871cb0ef41Sopenharmony_ci### `error.errno` 4881cb0ef41Sopenharmony_ci 4891cb0ef41Sopenharmony_ci* {number} 4901cb0ef41Sopenharmony_ci 4911cb0ef41Sopenharmony_ciThe `error.errno` property is a negative number which corresponds 4921cb0ef41Sopenharmony_cito the error code defined in [`libuv Error handling`][]. 4931cb0ef41Sopenharmony_ci 4941cb0ef41Sopenharmony_ciOn Windows the error number provided by the system will be normalized by libuv. 4951cb0ef41Sopenharmony_ci 4961cb0ef41Sopenharmony_ciTo get the string representation of the error code, use 4971cb0ef41Sopenharmony_ci[`util.getSystemErrorName(error.errno)`][]. 4981cb0ef41Sopenharmony_ci 4991cb0ef41Sopenharmony_ci### `error.info` 5001cb0ef41Sopenharmony_ci 5011cb0ef41Sopenharmony_ci* {Object} 5021cb0ef41Sopenharmony_ci 5031cb0ef41Sopenharmony_ciIf present, `error.info` is an object with details about the error condition. 5041cb0ef41Sopenharmony_ci 5051cb0ef41Sopenharmony_ci### `error.message` 5061cb0ef41Sopenharmony_ci 5071cb0ef41Sopenharmony_ci* {string} 5081cb0ef41Sopenharmony_ci 5091cb0ef41Sopenharmony_ci`error.message` is a system-provided human-readable description of the error. 5101cb0ef41Sopenharmony_ci 5111cb0ef41Sopenharmony_ci### `error.path` 5121cb0ef41Sopenharmony_ci 5131cb0ef41Sopenharmony_ci* {string} 5141cb0ef41Sopenharmony_ci 5151cb0ef41Sopenharmony_ciIf present, `error.path` is a string containing a relevant invalid pathname. 5161cb0ef41Sopenharmony_ci 5171cb0ef41Sopenharmony_ci### `error.port` 5181cb0ef41Sopenharmony_ci 5191cb0ef41Sopenharmony_ci* {number} 5201cb0ef41Sopenharmony_ci 5211cb0ef41Sopenharmony_ciIf present, `error.port` is the network connection port that is not available. 5221cb0ef41Sopenharmony_ci 5231cb0ef41Sopenharmony_ci### `error.syscall` 5241cb0ef41Sopenharmony_ci 5251cb0ef41Sopenharmony_ci* {string} 5261cb0ef41Sopenharmony_ci 5271cb0ef41Sopenharmony_ciThe `error.syscall` property is a string describing the [syscall][] that failed. 5281cb0ef41Sopenharmony_ci 5291cb0ef41Sopenharmony_ci### Common system errors 5301cb0ef41Sopenharmony_ci 5311cb0ef41Sopenharmony_ciThis is a list of system errors commonly-encountered when writing a Node.js 5321cb0ef41Sopenharmony_ciprogram. For a comprehensive list, see the [`errno`(3) man page][]. 5331cb0ef41Sopenharmony_ci 5341cb0ef41Sopenharmony_ci* `EACCES` (Permission denied): An attempt was made to access a file in a way 5351cb0ef41Sopenharmony_ci forbidden by its file access permissions. 5361cb0ef41Sopenharmony_ci 5371cb0ef41Sopenharmony_ci* `EADDRINUSE` (Address already in use): An attempt to bind a server 5381cb0ef41Sopenharmony_ci ([`net`][], [`http`][], or [`https`][]) to a local address failed due to 5391cb0ef41Sopenharmony_ci another server on the local system already occupying that address. 5401cb0ef41Sopenharmony_ci 5411cb0ef41Sopenharmony_ci* `ECONNREFUSED` (Connection refused): No connection could be made because the 5421cb0ef41Sopenharmony_ci target machine actively refused it. This usually results from trying to 5431cb0ef41Sopenharmony_ci connect to a service that is inactive on the foreign host. 5441cb0ef41Sopenharmony_ci 5451cb0ef41Sopenharmony_ci* `ECONNRESET` (Connection reset by peer): A connection was forcibly closed by 5461cb0ef41Sopenharmony_ci a peer. This normally results from a loss of the connection on the remote 5471cb0ef41Sopenharmony_ci socket due to a timeout or reboot. Commonly encountered via the [`http`][] 5481cb0ef41Sopenharmony_ci and [`net`][] modules. 5491cb0ef41Sopenharmony_ci 5501cb0ef41Sopenharmony_ci* `EEXIST` (File exists): An existing file was the target of an operation that 5511cb0ef41Sopenharmony_ci required that the target not exist. 5521cb0ef41Sopenharmony_ci 5531cb0ef41Sopenharmony_ci* `EISDIR` (Is a directory): An operation expected a file, but the given 5541cb0ef41Sopenharmony_ci pathname was a directory. 5551cb0ef41Sopenharmony_ci 5561cb0ef41Sopenharmony_ci* `EMFILE` (Too many open files in system): Maximum number of 5571cb0ef41Sopenharmony_ci [file descriptors][] allowable on the system has been reached, and 5581cb0ef41Sopenharmony_ci requests for another descriptor cannot be fulfilled until at least one 5591cb0ef41Sopenharmony_ci has been closed. This is encountered when opening many files at once in 5601cb0ef41Sopenharmony_ci parallel, especially on systems (in particular, macOS) where there is a low 5611cb0ef41Sopenharmony_ci file descriptor limit for processes. To remedy a low limit, run 5621cb0ef41Sopenharmony_ci `ulimit -n 2048` in the same shell that will run the Node.js process. 5631cb0ef41Sopenharmony_ci 5641cb0ef41Sopenharmony_ci* `ENOENT` (No such file or directory): Commonly raised by [`fs`][] operations 5651cb0ef41Sopenharmony_ci to indicate that a component of the specified pathname does not exist. No 5661cb0ef41Sopenharmony_ci entity (file or directory) could be found by the given path. 5671cb0ef41Sopenharmony_ci 5681cb0ef41Sopenharmony_ci* `ENOTDIR` (Not a directory): A component of the given pathname existed, but 5691cb0ef41Sopenharmony_ci was not a directory as expected. Commonly raised by [`fs.readdir`][]. 5701cb0ef41Sopenharmony_ci 5711cb0ef41Sopenharmony_ci* `ENOTEMPTY` (Directory not empty): A directory with entries was the target 5721cb0ef41Sopenharmony_ci of an operation that requires an empty directory, usually [`fs.unlink`][]. 5731cb0ef41Sopenharmony_ci 5741cb0ef41Sopenharmony_ci* `ENOTFOUND` (DNS lookup failed): Indicates a DNS failure of either 5751cb0ef41Sopenharmony_ci `EAI_NODATA` or `EAI_NONAME`. This is not a standard POSIX error. 5761cb0ef41Sopenharmony_ci 5771cb0ef41Sopenharmony_ci* `EPERM` (Operation not permitted): An attempt was made to perform an 5781cb0ef41Sopenharmony_ci operation that requires elevated privileges. 5791cb0ef41Sopenharmony_ci 5801cb0ef41Sopenharmony_ci* `EPIPE` (Broken pipe): A write on a pipe, socket, or FIFO for which there is 5811cb0ef41Sopenharmony_ci no process to read the data. Commonly encountered at the [`net`][] and 5821cb0ef41Sopenharmony_ci [`http`][] layers, indicative that the remote side of the stream being 5831cb0ef41Sopenharmony_ci written to has been closed. 5841cb0ef41Sopenharmony_ci 5851cb0ef41Sopenharmony_ci* `ETIMEDOUT` (Operation timed out): A connect or send request failed because 5861cb0ef41Sopenharmony_ci the connected party did not properly respond after a period of time. Usually 5871cb0ef41Sopenharmony_ci encountered by [`http`][] or [`net`][]. Often a sign that a `socket.end()` 5881cb0ef41Sopenharmony_ci was not properly called. 5891cb0ef41Sopenharmony_ci 5901cb0ef41Sopenharmony_ci## Class: `TypeError` 5911cb0ef41Sopenharmony_ci 5921cb0ef41Sopenharmony_ci* Extends {errors.Error} 5931cb0ef41Sopenharmony_ci 5941cb0ef41Sopenharmony_ciIndicates that a provided argument is not an allowable type. For example, 5951cb0ef41Sopenharmony_cipassing a function to a parameter which expects a string would be a `TypeError`. 5961cb0ef41Sopenharmony_ci 5971cb0ef41Sopenharmony_ci```js 5981cb0ef41Sopenharmony_cirequire('node:url').parse(() => { }); 5991cb0ef41Sopenharmony_ci// Throws TypeError, since it expected a string. 6001cb0ef41Sopenharmony_ci``` 6011cb0ef41Sopenharmony_ci 6021cb0ef41Sopenharmony_ciNode.js will generate and throw `TypeError` instances _immediately_ as a form 6031cb0ef41Sopenharmony_ciof argument validation. 6041cb0ef41Sopenharmony_ci 6051cb0ef41Sopenharmony_ci## Exceptions vs. errors 6061cb0ef41Sopenharmony_ci 6071cb0ef41Sopenharmony_ci<!--type=misc--> 6081cb0ef41Sopenharmony_ci 6091cb0ef41Sopenharmony_ciA JavaScript exception is a value that is thrown as a result of an invalid 6101cb0ef41Sopenharmony_cioperation or as the target of a `throw` statement. While it is not required 6111cb0ef41Sopenharmony_cithat these values are instances of `Error` or classes which inherit from 6121cb0ef41Sopenharmony_ci`Error`, all exceptions thrown by Node.js or the JavaScript runtime _will_ be 6131cb0ef41Sopenharmony_ciinstances of `Error`. 6141cb0ef41Sopenharmony_ci 6151cb0ef41Sopenharmony_ciSome exceptions are _unrecoverable_ at the JavaScript layer. Such exceptions 6161cb0ef41Sopenharmony_ciwill _always_ cause the Node.js process to crash. Examples include `assert()` 6171cb0ef41Sopenharmony_cichecks or `abort()` calls in the C++ layer. 6181cb0ef41Sopenharmony_ci 6191cb0ef41Sopenharmony_ci## OpenSSL errors 6201cb0ef41Sopenharmony_ci 6211cb0ef41Sopenharmony_ciErrors originating in `crypto` or `tls` are of class `Error`, and in addition to 6221cb0ef41Sopenharmony_cithe standard `.code` and `.message` properties, may have some additional 6231cb0ef41Sopenharmony_ciOpenSSL-specific properties. 6241cb0ef41Sopenharmony_ci 6251cb0ef41Sopenharmony_ci### `error.opensslErrorStack` 6261cb0ef41Sopenharmony_ci 6271cb0ef41Sopenharmony_ciAn array of errors that can give context to where in the OpenSSL library an 6281cb0ef41Sopenharmony_cierror originates from. 6291cb0ef41Sopenharmony_ci 6301cb0ef41Sopenharmony_ci### `error.function` 6311cb0ef41Sopenharmony_ci 6321cb0ef41Sopenharmony_ciThe OpenSSL function the error originates in. 6331cb0ef41Sopenharmony_ci 6341cb0ef41Sopenharmony_ci### `error.library` 6351cb0ef41Sopenharmony_ci 6361cb0ef41Sopenharmony_ciThe OpenSSL library the error originates in. 6371cb0ef41Sopenharmony_ci 6381cb0ef41Sopenharmony_ci### `error.reason` 6391cb0ef41Sopenharmony_ci 6401cb0ef41Sopenharmony_ciA human-readable string describing the reason for the error. 6411cb0ef41Sopenharmony_ci 6421cb0ef41Sopenharmony_ci<a id="nodejs-error-codes"></a> 6431cb0ef41Sopenharmony_ci 6441cb0ef41Sopenharmony_ci## Node.js error codes 6451cb0ef41Sopenharmony_ci 6461cb0ef41Sopenharmony_ci<a id="ABORT_ERR"></a> 6471cb0ef41Sopenharmony_ci 6481cb0ef41Sopenharmony_ci### `ABORT_ERR` 6491cb0ef41Sopenharmony_ci 6501cb0ef41Sopenharmony_ci<!-- YAML 6511cb0ef41Sopenharmony_ciadded: v15.0.0 6521cb0ef41Sopenharmony_ci--> 6531cb0ef41Sopenharmony_ci 6541cb0ef41Sopenharmony_ciUsed when an operation has been aborted (typically using an `AbortController`). 6551cb0ef41Sopenharmony_ci 6561cb0ef41Sopenharmony_ciAPIs _not_ using `AbortSignal`s typically do not raise an error with this code. 6571cb0ef41Sopenharmony_ci 6581cb0ef41Sopenharmony_ciThis code does not use the regular `ERR_*` convention Node.js errors use in 6591cb0ef41Sopenharmony_ciorder to be compatible with the web platform's `AbortError`. 6601cb0ef41Sopenharmony_ci 6611cb0ef41Sopenharmony_ci<a id="ERR_ACCESS_DENIED"></a> 6621cb0ef41Sopenharmony_ci 6631cb0ef41Sopenharmony_ci### `ERR_ACCESS_DENIED` 6641cb0ef41Sopenharmony_ci 6651cb0ef41Sopenharmony_ciA special type of error that is triggered whenever Node.js tries to get access 6661cb0ef41Sopenharmony_cito a resource restricted by the [policy][] manifest. 6671cb0ef41Sopenharmony_ciFor example, `process.binding`. 6681cb0ef41Sopenharmony_ci 6691cb0ef41Sopenharmony_ci<a id="ERR_AMBIGUOUS_ARGUMENT"></a> 6701cb0ef41Sopenharmony_ci 6711cb0ef41Sopenharmony_ci### `ERR_AMBIGUOUS_ARGUMENT` 6721cb0ef41Sopenharmony_ci 6731cb0ef41Sopenharmony_ciA function argument is being used in a way that suggests that the function 6741cb0ef41Sopenharmony_cisignature may be misunderstood. This is thrown by the `node:assert` module when 6751cb0ef41Sopenharmony_cithe `message` parameter in `assert.throws(block, message)` matches the error 6761cb0ef41Sopenharmony_cimessage thrown by `block` because that usage suggests that the user believes 6771cb0ef41Sopenharmony_ci`message` is the expected message rather than the message the `AssertionError` 6781cb0ef41Sopenharmony_ciwill display if `block` does not throw. 6791cb0ef41Sopenharmony_ci 6801cb0ef41Sopenharmony_ci<a id="ERR_ARG_NOT_ITERABLE"></a> 6811cb0ef41Sopenharmony_ci 6821cb0ef41Sopenharmony_ci### `ERR_ARG_NOT_ITERABLE` 6831cb0ef41Sopenharmony_ci 6841cb0ef41Sopenharmony_ciAn iterable argument (i.e. a value that works with `for...of` loops) was 6851cb0ef41Sopenharmony_cirequired, but not provided to a Node.js API. 6861cb0ef41Sopenharmony_ci 6871cb0ef41Sopenharmony_ci<a id="ERR_ASSERTION"></a> 6881cb0ef41Sopenharmony_ci 6891cb0ef41Sopenharmony_ci### `ERR_ASSERTION` 6901cb0ef41Sopenharmony_ci 6911cb0ef41Sopenharmony_ciA special type of error that can be triggered whenever Node.js detects an 6921cb0ef41Sopenharmony_ciexceptional logic violation that should never occur. These are raised typically 6931cb0ef41Sopenharmony_ciby the `node:assert` module. 6941cb0ef41Sopenharmony_ci 6951cb0ef41Sopenharmony_ci<a id="ERR_ASYNC_CALLBACK"></a> 6961cb0ef41Sopenharmony_ci 6971cb0ef41Sopenharmony_ci### `ERR_ASYNC_CALLBACK` 6981cb0ef41Sopenharmony_ci 6991cb0ef41Sopenharmony_ciAn attempt was made to register something that is not a function as an 7001cb0ef41Sopenharmony_ci`AsyncHooks` callback. 7011cb0ef41Sopenharmony_ci 7021cb0ef41Sopenharmony_ci<a id="ERR_ASYNC_TYPE"></a> 7031cb0ef41Sopenharmony_ci 7041cb0ef41Sopenharmony_ci### `ERR_ASYNC_TYPE` 7051cb0ef41Sopenharmony_ci 7061cb0ef41Sopenharmony_ciThe type of an asynchronous resource was invalid. Users are also able 7071cb0ef41Sopenharmony_cito define their own types if using the public embedder API. 7081cb0ef41Sopenharmony_ci 7091cb0ef41Sopenharmony_ci<a id="ERR_BROTLI_COMPRESSION_FAILED"></a> 7101cb0ef41Sopenharmony_ci 7111cb0ef41Sopenharmony_ci### `ERR_BROTLI_COMPRESSION_FAILED` 7121cb0ef41Sopenharmony_ci 7131cb0ef41Sopenharmony_ciData passed to a Brotli stream was not successfully compressed. 7141cb0ef41Sopenharmony_ci 7151cb0ef41Sopenharmony_ci<a id="ERR_BROTLI_INVALID_PARAM"></a> 7161cb0ef41Sopenharmony_ci 7171cb0ef41Sopenharmony_ci### `ERR_BROTLI_INVALID_PARAM` 7181cb0ef41Sopenharmony_ci 7191cb0ef41Sopenharmony_ciAn invalid parameter key was passed during construction of a Brotli stream. 7201cb0ef41Sopenharmony_ci 7211cb0ef41Sopenharmony_ci<a id="ERR_BUFFER_CONTEXT_NOT_AVAILABLE"></a> 7221cb0ef41Sopenharmony_ci 7231cb0ef41Sopenharmony_ci### `ERR_BUFFER_CONTEXT_NOT_AVAILABLE` 7241cb0ef41Sopenharmony_ci 7251cb0ef41Sopenharmony_ciAn attempt was made to create a Node.js `Buffer` instance from addon or embedder 7261cb0ef41Sopenharmony_cicode, while in a JS engine Context that is not associated with a Node.js 7271cb0ef41Sopenharmony_ciinstance. The data passed to the `Buffer` method will have been released 7281cb0ef41Sopenharmony_ciby the time the method returns. 7291cb0ef41Sopenharmony_ci 7301cb0ef41Sopenharmony_ciWhen encountering this error, a possible alternative to creating a `Buffer` 7311cb0ef41Sopenharmony_ciinstance is to create a normal `Uint8Array`, which only differs in the 7321cb0ef41Sopenharmony_ciprototype of the resulting object. `Uint8Array`s are generally accepted in all 7331cb0ef41Sopenharmony_ciNode.js core APIs where `Buffer`s are; they are available in all Contexts. 7341cb0ef41Sopenharmony_ci 7351cb0ef41Sopenharmony_ci<a id="ERR_BUFFER_OUT_OF_BOUNDS"></a> 7361cb0ef41Sopenharmony_ci 7371cb0ef41Sopenharmony_ci### `ERR_BUFFER_OUT_OF_BOUNDS` 7381cb0ef41Sopenharmony_ci 7391cb0ef41Sopenharmony_ciAn operation outside the bounds of a `Buffer` was attempted. 7401cb0ef41Sopenharmony_ci 7411cb0ef41Sopenharmony_ci<a id="ERR_BUFFER_TOO_LARGE"></a> 7421cb0ef41Sopenharmony_ci 7431cb0ef41Sopenharmony_ci### `ERR_BUFFER_TOO_LARGE` 7441cb0ef41Sopenharmony_ci 7451cb0ef41Sopenharmony_ciAn attempt has been made to create a `Buffer` larger than the maximum allowed 7461cb0ef41Sopenharmony_cisize. 7471cb0ef41Sopenharmony_ci 7481cb0ef41Sopenharmony_ci<a id="ERR_CANNOT_WATCH_SIGINT"></a> 7491cb0ef41Sopenharmony_ci 7501cb0ef41Sopenharmony_ci### `ERR_CANNOT_WATCH_SIGINT` 7511cb0ef41Sopenharmony_ci 7521cb0ef41Sopenharmony_ciNode.js was unable to watch for the `SIGINT` signal. 7531cb0ef41Sopenharmony_ci 7541cb0ef41Sopenharmony_ci<a id="ERR_CHILD_CLOSED_BEFORE_REPLY"></a> 7551cb0ef41Sopenharmony_ci 7561cb0ef41Sopenharmony_ci### `ERR_CHILD_CLOSED_BEFORE_REPLY` 7571cb0ef41Sopenharmony_ci 7581cb0ef41Sopenharmony_ciA child process was closed before the parent received a reply. 7591cb0ef41Sopenharmony_ci 7601cb0ef41Sopenharmony_ci<a id="ERR_CHILD_PROCESS_IPC_REQUIRED"></a> 7611cb0ef41Sopenharmony_ci 7621cb0ef41Sopenharmony_ci### `ERR_CHILD_PROCESS_IPC_REQUIRED` 7631cb0ef41Sopenharmony_ci 7641cb0ef41Sopenharmony_ciUsed when a child process is being forked without specifying an IPC channel. 7651cb0ef41Sopenharmony_ci 7661cb0ef41Sopenharmony_ci<a id="ERR_CHILD_PROCESS_STDIO_MAXBUFFER"></a> 7671cb0ef41Sopenharmony_ci 7681cb0ef41Sopenharmony_ci### `ERR_CHILD_PROCESS_STDIO_MAXBUFFER` 7691cb0ef41Sopenharmony_ci 7701cb0ef41Sopenharmony_ciUsed when the main process is trying to read data from the child process's 7711cb0ef41Sopenharmony_ciSTDERR/STDOUT, and the data's length is longer than the `maxBuffer` option. 7721cb0ef41Sopenharmony_ci 7731cb0ef41Sopenharmony_ci<a id="ERR_CLOSED_MESSAGE_PORT"></a> 7741cb0ef41Sopenharmony_ci 7751cb0ef41Sopenharmony_ci### `ERR_CLOSED_MESSAGE_PORT` 7761cb0ef41Sopenharmony_ci 7771cb0ef41Sopenharmony_ci<!-- 7781cb0ef41Sopenharmony_ciadded: 7791cb0ef41Sopenharmony_ci - v16.2.0 7801cb0ef41Sopenharmony_ci - v14.17.1 7811cb0ef41Sopenharmony_cichanges: 7821cb0ef41Sopenharmony_ci - version: 11.12.0 7831cb0ef41Sopenharmony_ci pr-url: https://github.com/nodejs/node/pull/26487 7841cb0ef41Sopenharmony_ci description: The error message was removed. 7851cb0ef41Sopenharmony_ci - version: 7861cb0ef41Sopenharmony_ci - v16.2.0 7871cb0ef41Sopenharmony_ci - v14.17.1 7881cb0ef41Sopenharmony_ci pr-url: https://github.com/nodejs/node/pull/38510 7891cb0ef41Sopenharmony_ci description: The error message was reintroduced. 7901cb0ef41Sopenharmony_ci--> 7911cb0ef41Sopenharmony_ci 7921cb0ef41Sopenharmony_ciThere was an attempt to use a `MessagePort` instance in a closed 7931cb0ef41Sopenharmony_cistate, usually after `.close()` has been called. 7941cb0ef41Sopenharmony_ci 7951cb0ef41Sopenharmony_ci<a id="ERR_CONSOLE_WRITABLE_STREAM"></a> 7961cb0ef41Sopenharmony_ci 7971cb0ef41Sopenharmony_ci### `ERR_CONSOLE_WRITABLE_STREAM` 7981cb0ef41Sopenharmony_ci 7991cb0ef41Sopenharmony_ci`Console` was instantiated without `stdout` stream, or `Console` has a 8001cb0ef41Sopenharmony_cinon-writable `stdout` or `stderr` stream. 8011cb0ef41Sopenharmony_ci 8021cb0ef41Sopenharmony_ci<a id="ERR_CONSTRUCT_CALL_INVALID"></a> 8031cb0ef41Sopenharmony_ci 8041cb0ef41Sopenharmony_ci### `ERR_CONSTRUCT_CALL_INVALID` 8051cb0ef41Sopenharmony_ci 8061cb0ef41Sopenharmony_ci<!-- 8071cb0ef41Sopenharmony_ciadded: v12.5.0 8081cb0ef41Sopenharmony_ci--> 8091cb0ef41Sopenharmony_ci 8101cb0ef41Sopenharmony_ciA class constructor was called that is not callable. 8111cb0ef41Sopenharmony_ci 8121cb0ef41Sopenharmony_ci<a id="ERR_CONSTRUCT_CALL_REQUIRED"></a> 8131cb0ef41Sopenharmony_ci 8141cb0ef41Sopenharmony_ci### `ERR_CONSTRUCT_CALL_REQUIRED` 8151cb0ef41Sopenharmony_ci 8161cb0ef41Sopenharmony_ciA constructor for a class was called without `new`. 8171cb0ef41Sopenharmony_ci 8181cb0ef41Sopenharmony_ci<a id="ERR_CONTEXT_NOT_INITIALIZED"></a> 8191cb0ef41Sopenharmony_ci 8201cb0ef41Sopenharmony_ci### `ERR_CONTEXT_NOT_INITIALIZED` 8211cb0ef41Sopenharmony_ci 8221cb0ef41Sopenharmony_ciThe vm context passed into the API is not yet initialized. This could happen 8231cb0ef41Sopenharmony_ciwhen an error occurs (and is caught) during the creation of the 8241cb0ef41Sopenharmony_cicontext, for example, when the allocation fails or the maximum call stack 8251cb0ef41Sopenharmony_cisize is reached when the context is created. 8261cb0ef41Sopenharmony_ci 8271cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED"></a> 8281cb0ef41Sopenharmony_ci 8291cb0ef41Sopenharmony_ci### `ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED` 8301cb0ef41Sopenharmony_ci 8311cb0ef41Sopenharmony_ciAn OpenSSL engine was requested (for example, through the `clientCertEngine` or 8321cb0ef41Sopenharmony_ci`privateKeyEngine` TLS options) that is not supported by the version of OpenSSL 8331cb0ef41Sopenharmony_cibeing used, likely due to the compile-time flag `OPENSSL_NO_ENGINE`. 8341cb0ef41Sopenharmony_ci 8351cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_ECDH_INVALID_FORMAT"></a> 8361cb0ef41Sopenharmony_ci 8371cb0ef41Sopenharmony_ci### `ERR_CRYPTO_ECDH_INVALID_FORMAT` 8381cb0ef41Sopenharmony_ci 8391cb0ef41Sopenharmony_ciAn invalid value for the `format` argument was passed to the `crypto.ECDH()` 8401cb0ef41Sopenharmony_ciclass `getPublicKey()` method. 8411cb0ef41Sopenharmony_ci 8421cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY"></a> 8431cb0ef41Sopenharmony_ci 8441cb0ef41Sopenharmony_ci### `ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` 8451cb0ef41Sopenharmony_ci 8461cb0ef41Sopenharmony_ciAn invalid value for the `key` argument has been passed to the 8471cb0ef41Sopenharmony_ci`crypto.ECDH()` class `computeSecret()` method. It means that the public 8481cb0ef41Sopenharmony_cikey lies outside of the elliptic curve. 8491cb0ef41Sopenharmony_ci 8501cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_ENGINE_UNKNOWN"></a> 8511cb0ef41Sopenharmony_ci 8521cb0ef41Sopenharmony_ci### `ERR_CRYPTO_ENGINE_UNKNOWN` 8531cb0ef41Sopenharmony_ci 8541cb0ef41Sopenharmony_ciAn invalid crypto engine identifier was passed to 8551cb0ef41Sopenharmony_ci[`require('node:crypto').setEngine()`][]. 8561cb0ef41Sopenharmony_ci 8571cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_FIPS_FORCED"></a> 8581cb0ef41Sopenharmony_ci 8591cb0ef41Sopenharmony_ci### `ERR_CRYPTO_FIPS_FORCED` 8601cb0ef41Sopenharmony_ci 8611cb0ef41Sopenharmony_ciThe [`--force-fips`][] command-line argument was used but there was an attempt 8621cb0ef41Sopenharmony_cito enable or disable FIPS mode in the `node:crypto` module. 8631cb0ef41Sopenharmony_ci 8641cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_FIPS_UNAVAILABLE"></a> 8651cb0ef41Sopenharmony_ci 8661cb0ef41Sopenharmony_ci### `ERR_CRYPTO_FIPS_UNAVAILABLE` 8671cb0ef41Sopenharmony_ci 8681cb0ef41Sopenharmony_ciAn attempt was made to enable or disable FIPS mode, but FIPS mode was not 8691cb0ef41Sopenharmony_ciavailable. 8701cb0ef41Sopenharmony_ci 8711cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_HASH_FINALIZED"></a> 8721cb0ef41Sopenharmony_ci 8731cb0ef41Sopenharmony_ci### `ERR_CRYPTO_HASH_FINALIZED` 8741cb0ef41Sopenharmony_ci 8751cb0ef41Sopenharmony_ci[`hash.digest()`][] was called multiple times. The `hash.digest()` method must 8761cb0ef41Sopenharmony_cibe called no more than one time per instance of a `Hash` object. 8771cb0ef41Sopenharmony_ci 8781cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_HASH_UPDATE_FAILED"></a> 8791cb0ef41Sopenharmony_ci 8801cb0ef41Sopenharmony_ci### `ERR_CRYPTO_HASH_UPDATE_FAILED` 8811cb0ef41Sopenharmony_ci 8821cb0ef41Sopenharmony_ci[`hash.update()`][] failed for any reason. This should rarely, if ever, happen. 8831cb0ef41Sopenharmony_ci 8841cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INCOMPATIBLE_KEY"></a> 8851cb0ef41Sopenharmony_ci 8861cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INCOMPATIBLE_KEY` 8871cb0ef41Sopenharmony_ci 8881cb0ef41Sopenharmony_ciThe given crypto keys are incompatible with the attempted operation. 8891cb0ef41Sopenharmony_ci 8901cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS"></a> 8911cb0ef41Sopenharmony_ci 8921cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS` 8931cb0ef41Sopenharmony_ci 8941cb0ef41Sopenharmony_ciThe selected public or private key encoding is incompatible with other options. 8951cb0ef41Sopenharmony_ci 8961cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INITIALIZATION_FAILED"></a> 8971cb0ef41Sopenharmony_ci 8981cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INITIALIZATION_FAILED` 8991cb0ef41Sopenharmony_ci 9001cb0ef41Sopenharmony_ci<!-- YAML 9011cb0ef41Sopenharmony_ciadded: v15.0.0 9021cb0ef41Sopenharmony_ci--> 9031cb0ef41Sopenharmony_ci 9041cb0ef41Sopenharmony_ciInitialization of the crypto subsystem failed. 9051cb0ef41Sopenharmony_ci 9061cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_AUTH_TAG"></a> 9071cb0ef41Sopenharmony_ci 9081cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_AUTH_TAG` 9091cb0ef41Sopenharmony_ci 9101cb0ef41Sopenharmony_ci<!-- YAML 9111cb0ef41Sopenharmony_ciadded: v15.0.0 9121cb0ef41Sopenharmony_ci--> 9131cb0ef41Sopenharmony_ci 9141cb0ef41Sopenharmony_ciAn invalid authentication tag was provided. 9151cb0ef41Sopenharmony_ci 9161cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_COUNTER"></a> 9171cb0ef41Sopenharmony_ci 9181cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_COUNTER` 9191cb0ef41Sopenharmony_ci 9201cb0ef41Sopenharmony_ci<!-- YAML 9211cb0ef41Sopenharmony_ciadded: v15.0.0 9221cb0ef41Sopenharmony_ci--> 9231cb0ef41Sopenharmony_ci 9241cb0ef41Sopenharmony_ciAn invalid counter was provided for a counter-mode cipher. 9251cb0ef41Sopenharmony_ci 9261cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_CURVE"></a> 9271cb0ef41Sopenharmony_ci 9281cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_CURVE` 9291cb0ef41Sopenharmony_ci 9301cb0ef41Sopenharmony_ci<!-- YAML 9311cb0ef41Sopenharmony_ciadded: v15.0.0 9321cb0ef41Sopenharmony_ci--> 9331cb0ef41Sopenharmony_ci 9341cb0ef41Sopenharmony_ciAn invalid elliptic-curve was provided. 9351cb0ef41Sopenharmony_ci 9361cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_DIGEST"></a> 9371cb0ef41Sopenharmony_ci 9381cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_DIGEST` 9391cb0ef41Sopenharmony_ci 9401cb0ef41Sopenharmony_ciAn invalid [crypto digest algorithm][] was specified. 9411cb0ef41Sopenharmony_ci 9421cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_IV"></a> 9431cb0ef41Sopenharmony_ci 9441cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_IV` 9451cb0ef41Sopenharmony_ci 9461cb0ef41Sopenharmony_ci<!-- YAML 9471cb0ef41Sopenharmony_ciadded: v15.0.0 9481cb0ef41Sopenharmony_ci--> 9491cb0ef41Sopenharmony_ci 9501cb0ef41Sopenharmony_ciAn invalid initialization vector was provided. 9511cb0ef41Sopenharmony_ci 9521cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_JWK"></a> 9531cb0ef41Sopenharmony_ci 9541cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_JWK` 9551cb0ef41Sopenharmony_ci 9561cb0ef41Sopenharmony_ci<!-- YAML 9571cb0ef41Sopenharmony_ciadded: v15.0.0 9581cb0ef41Sopenharmony_ci--> 9591cb0ef41Sopenharmony_ci 9601cb0ef41Sopenharmony_ciAn invalid JSON Web Key was provided. 9611cb0ef41Sopenharmony_ci 9621cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE"></a> 9631cb0ef41Sopenharmony_ci 9641cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE` 9651cb0ef41Sopenharmony_ci 9661cb0ef41Sopenharmony_ciThe given crypto key object's type is invalid for the attempted operation. 9671cb0ef41Sopenharmony_ci 9681cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_KEYLEN"></a> 9691cb0ef41Sopenharmony_ci 9701cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_KEYLEN` 9711cb0ef41Sopenharmony_ci 9721cb0ef41Sopenharmony_ci<!-- YAML 9731cb0ef41Sopenharmony_ciadded: v15.0.0 9741cb0ef41Sopenharmony_ci--> 9751cb0ef41Sopenharmony_ci 9761cb0ef41Sopenharmony_ciAn invalid key length was provided. 9771cb0ef41Sopenharmony_ci 9781cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_KEYPAIR"></a> 9791cb0ef41Sopenharmony_ci 9801cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_KEYPAIR` 9811cb0ef41Sopenharmony_ci 9821cb0ef41Sopenharmony_ci<!-- YAML 9831cb0ef41Sopenharmony_ciadded: v15.0.0 9841cb0ef41Sopenharmony_ci--> 9851cb0ef41Sopenharmony_ci 9861cb0ef41Sopenharmony_ciAn invalid key pair was provided. 9871cb0ef41Sopenharmony_ci 9881cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_KEYTYPE"></a> 9891cb0ef41Sopenharmony_ci 9901cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_KEYTYPE` 9911cb0ef41Sopenharmony_ci 9921cb0ef41Sopenharmony_ci<!-- YAML 9931cb0ef41Sopenharmony_ciadded: v15.0.0 9941cb0ef41Sopenharmony_ci--> 9951cb0ef41Sopenharmony_ci 9961cb0ef41Sopenharmony_ciAn invalid key type was provided. 9971cb0ef41Sopenharmony_ci 9981cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_MESSAGELEN"></a> 9991cb0ef41Sopenharmony_ci 10001cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_MESSAGELEN` 10011cb0ef41Sopenharmony_ci 10021cb0ef41Sopenharmony_ci<!-- YAML 10031cb0ef41Sopenharmony_ciadded: v15.0.0 10041cb0ef41Sopenharmony_ci--> 10051cb0ef41Sopenharmony_ci 10061cb0ef41Sopenharmony_ciAn invalid message length was provided. 10071cb0ef41Sopenharmony_ci 10081cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_SCRYPT_PARAMS"></a> 10091cb0ef41Sopenharmony_ci 10101cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_SCRYPT_PARAMS` 10111cb0ef41Sopenharmony_ci 10121cb0ef41Sopenharmony_ci<!-- YAML 10131cb0ef41Sopenharmony_ciadded: v15.0.0 10141cb0ef41Sopenharmony_ci--> 10151cb0ef41Sopenharmony_ci 10161cb0ef41Sopenharmony_ciInvalid scrypt algorithm parameters were provided. 10171cb0ef41Sopenharmony_ci 10181cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_STATE"></a> 10191cb0ef41Sopenharmony_ci 10201cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_STATE` 10211cb0ef41Sopenharmony_ci 10221cb0ef41Sopenharmony_ciA crypto method was used on an object that was in an invalid state. For 10231cb0ef41Sopenharmony_ciinstance, calling [`cipher.getAuthTag()`][] before calling `cipher.final()`. 10241cb0ef41Sopenharmony_ci 10251cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_INVALID_TAG_LENGTH"></a> 10261cb0ef41Sopenharmony_ci 10271cb0ef41Sopenharmony_ci### `ERR_CRYPTO_INVALID_TAG_LENGTH` 10281cb0ef41Sopenharmony_ci 10291cb0ef41Sopenharmony_ci<!-- YAML 10301cb0ef41Sopenharmony_ciadded: v15.0.0 10311cb0ef41Sopenharmony_ci--> 10321cb0ef41Sopenharmony_ci 10331cb0ef41Sopenharmony_ciAn invalid authentication tag length was provided. 10341cb0ef41Sopenharmony_ci 10351cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_JOB_INIT_FAILED"></a> 10361cb0ef41Sopenharmony_ci 10371cb0ef41Sopenharmony_ci### `ERR_CRYPTO_JOB_INIT_FAILED` 10381cb0ef41Sopenharmony_ci 10391cb0ef41Sopenharmony_ci<!-- YAML 10401cb0ef41Sopenharmony_ciadded: v15.0.0 10411cb0ef41Sopenharmony_ci--> 10421cb0ef41Sopenharmony_ci 10431cb0ef41Sopenharmony_ciInitialization of an asynchronous crypto operation failed. 10441cb0ef41Sopenharmony_ci 10451cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_JWK_UNSUPPORTED_CURVE"></a> 10461cb0ef41Sopenharmony_ci 10471cb0ef41Sopenharmony_ci### `ERR_CRYPTO_JWK_UNSUPPORTED_CURVE` 10481cb0ef41Sopenharmony_ci 10491cb0ef41Sopenharmony_ciKey's Elliptic Curve is not registered for use in the 10501cb0ef41Sopenharmony_ci[JSON Web Key Elliptic Curve Registry][]. 10511cb0ef41Sopenharmony_ci 10521cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE"></a> 10531cb0ef41Sopenharmony_ci 10541cb0ef41Sopenharmony_ci### `ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE` 10551cb0ef41Sopenharmony_ci 10561cb0ef41Sopenharmony_ciKey's Asymmetric Key Type is not registered for use in the 10571cb0ef41Sopenharmony_ci[JSON Web Key Types Registry][]. 10581cb0ef41Sopenharmony_ci 10591cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_OPERATION_FAILED"></a> 10601cb0ef41Sopenharmony_ci 10611cb0ef41Sopenharmony_ci### `ERR_CRYPTO_OPERATION_FAILED` 10621cb0ef41Sopenharmony_ci 10631cb0ef41Sopenharmony_ci<!-- YAML 10641cb0ef41Sopenharmony_ciadded: v15.0.0 10651cb0ef41Sopenharmony_ci--> 10661cb0ef41Sopenharmony_ci 10671cb0ef41Sopenharmony_ciA crypto operation failed for an otherwise unspecified reason. 10681cb0ef41Sopenharmony_ci 10691cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_PBKDF2_ERROR"></a> 10701cb0ef41Sopenharmony_ci 10711cb0ef41Sopenharmony_ci### `ERR_CRYPTO_PBKDF2_ERROR` 10721cb0ef41Sopenharmony_ci 10731cb0ef41Sopenharmony_ciThe PBKDF2 algorithm failed for unspecified reasons. OpenSSL does not provide 10741cb0ef41Sopenharmony_cimore details and therefore neither does Node.js. 10751cb0ef41Sopenharmony_ci 10761cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_SCRYPT_INVALID_PARAMETER"></a> 10771cb0ef41Sopenharmony_ci 10781cb0ef41Sopenharmony_ci### `ERR_CRYPTO_SCRYPT_INVALID_PARAMETER` 10791cb0ef41Sopenharmony_ci 10801cb0ef41Sopenharmony_ciOne or more [`crypto.scrypt()`][] or [`crypto.scryptSync()`][] parameters are 10811cb0ef41Sopenharmony_cioutside their legal range. 10821cb0ef41Sopenharmony_ci 10831cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_SCRYPT_NOT_SUPPORTED"></a> 10841cb0ef41Sopenharmony_ci 10851cb0ef41Sopenharmony_ci### `ERR_CRYPTO_SCRYPT_NOT_SUPPORTED` 10861cb0ef41Sopenharmony_ci 10871cb0ef41Sopenharmony_ciNode.js was compiled without `scrypt` support. Not possible with the official 10881cb0ef41Sopenharmony_cirelease binaries but can happen with custom builds, including distro builds. 10891cb0ef41Sopenharmony_ci 10901cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_SIGN_KEY_REQUIRED"></a> 10911cb0ef41Sopenharmony_ci 10921cb0ef41Sopenharmony_ci### `ERR_CRYPTO_SIGN_KEY_REQUIRED` 10931cb0ef41Sopenharmony_ci 10941cb0ef41Sopenharmony_ciA signing `key` was not provided to the [`sign.sign()`][] method. 10951cb0ef41Sopenharmony_ci 10961cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH"></a> 10971cb0ef41Sopenharmony_ci 10981cb0ef41Sopenharmony_ci### `ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH` 10991cb0ef41Sopenharmony_ci 11001cb0ef41Sopenharmony_ci[`crypto.timingSafeEqual()`][] was called with `Buffer`, `TypedArray`, or 11011cb0ef41Sopenharmony_ci`DataView` arguments of different lengths. 11021cb0ef41Sopenharmony_ci 11031cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_UNKNOWN_CIPHER"></a> 11041cb0ef41Sopenharmony_ci 11051cb0ef41Sopenharmony_ci### `ERR_CRYPTO_UNKNOWN_CIPHER` 11061cb0ef41Sopenharmony_ci 11071cb0ef41Sopenharmony_ciAn unknown cipher was specified. 11081cb0ef41Sopenharmony_ci 11091cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_UNKNOWN_DH_GROUP"></a> 11101cb0ef41Sopenharmony_ci 11111cb0ef41Sopenharmony_ci### `ERR_CRYPTO_UNKNOWN_DH_GROUP` 11121cb0ef41Sopenharmony_ci 11131cb0ef41Sopenharmony_ciAn unknown Diffie-Hellman group name was given. See 11141cb0ef41Sopenharmony_ci[`crypto.getDiffieHellman()`][] for a list of valid group names. 11151cb0ef41Sopenharmony_ci 11161cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_UNSUPPORTED_OPERATION"></a> 11171cb0ef41Sopenharmony_ci 11181cb0ef41Sopenharmony_ci### `ERR_CRYPTO_UNSUPPORTED_OPERATION` 11191cb0ef41Sopenharmony_ci 11201cb0ef41Sopenharmony_ci<!-- YAML 11211cb0ef41Sopenharmony_ciadded: 11221cb0ef41Sopenharmony_ci - v15.0.0 11231cb0ef41Sopenharmony_ci - v14.18.0 11241cb0ef41Sopenharmony_ci--> 11251cb0ef41Sopenharmony_ci 11261cb0ef41Sopenharmony_ciAn attempt to invoke an unsupported crypto operation was made. 11271cb0ef41Sopenharmony_ci 11281cb0ef41Sopenharmony_ci<a id="ERR_DEBUGGER_ERROR"></a> 11291cb0ef41Sopenharmony_ci 11301cb0ef41Sopenharmony_ci### `ERR_DEBUGGER_ERROR` 11311cb0ef41Sopenharmony_ci 11321cb0ef41Sopenharmony_ci<!-- YAML 11331cb0ef41Sopenharmony_ciadded: 11341cb0ef41Sopenharmony_ci - v16.4.0 11351cb0ef41Sopenharmony_ci - v14.17.4 11361cb0ef41Sopenharmony_ci--> 11371cb0ef41Sopenharmony_ci 11381cb0ef41Sopenharmony_ciAn error occurred with the [debugger][]. 11391cb0ef41Sopenharmony_ci 11401cb0ef41Sopenharmony_ci<a id="ERR_DEBUGGER_STARTUP_ERROR"></a> 11411cb0ef41Sopenharmony_ci 11421cb0ef41Sopenharmony_ci### `ERR_DEBUGGER_STARTUP_ERROR` 11431cb0ef41Sopenharmony_ci 11441cb0ef41Sopenharmony_ci<!-- YAML 11451cb0ef41Sopenharmony_ciadded: 11461cb0ef41Sopenharmony_ci - v16.4.0 11471cb0ef41Sopenharmony_ci - v14.17.4 11481cb0ef41Sopenharmony_ci--> 11491cb0ef41Sopenharmony_ci 11501cb0ef41Sopenharmony_ciThe [debugger][] timed out waiting for the required host/port to be free. 11511cb0ef41Sopenharmony_ci 11521cb0ef41Sopenharmony_ci<a id="ERR_DLOPEN_DISABLED"></a> 11531cb0ef41Sopenharmony_ci 11541cb0ef41Sopenharmony_ci### `ERR_DLOPEN_DISABLED` 11551cb0ef41Sopenharmony_ci 11561cb0ef41Sopenharmony_ci<!-- YAML 11571cb0ef41Sopenharmony_ciadded: 11581cb0ef41Sopenharmony_ci - v16.10.0 11591cb0ef41Sopenharmony_ci - v14.19.0 11601cb0ef41Sopenharmony_ci--> 11611cb0ef41Sopenharmony_ci 11621cb0ef41Sopenharmony_ciLoading native addons has been disabled using [`--no-addons`][]. 11631cb0ef41Sopenharmony_ci 11641cb0ef41Sopenharmony_ci<a id="ERR_DLOPEN_FAILED"></a> 11651cb0ef41Sopenharmony_ci 11661cb0ef41Sopenharmony_ci### `ERR_DLOPEN_FAILED` 11671cb0ef41Sopenharmony_ci 11681cb0ef41Sopenharmony_ci<!-- YAML 11691cb0ef41Sopenharmony_ciadded: v15.0.0 11701cb0ef41Sopenharmony_ci--> 11711cb0ef41Sopenharmony_ci 11721cb0ef41Sopenharmony_ciA call to `process.dlopen()` failed. 11731cb0ef41Sopenharmony_ci 11741cb0ef41Sopenharmony_ci<a id="ERR_DIR_CLOSED"></a> 11751cb0ef41Sopenharmony_ci 11761cb0ef41Sopenharmony_ci### `ERR_DIR_CLOSED` 11771cb0ef41Sopenharmony_ci 11781cb0ef41Sopenharmony_ciThe [`fs.Dir`][] was previously closed. 11791cb0ef41Sopenharmony_ci 11801cb0ef41Sopenharmony_ci<a id="ERR_DIR_CONCURRENT_OPERATION"></a> 11811cb0ef41Sopenharmony_ci 11821cb0ef41Sopenharmony_ci### `ERR_DIR_CONCURRENT_OPERATION` 11831cb0ef41Sopenharmony_ci 11841cb0ef41Sopenharmony_ci<!-- YAML 11851cb0ef41Sopenharmony_ciadded: v14.3.0 11861cb0ef41Sopenharmony_ci--> 11871cb0ef41Sopenharmony_ci 11881cb0ef41Sopenharmony_ciA synchronous read or close call was attempted on an [`fs.Dir`][] which has 11891cb0ef41Sopenharmony_ciongoing asynchronous operations. 11901cb0ef41Sopenharmony_ci 11911cb0ef41Sopenharmony_ci<a id="ERR_DNS_SET_SERVERS_FAILED"></a> 11921cb0ef41Sopenharmony_ci 11931cb0ef41Sopenharmony_ci### `ERR_DNS_SET_SERVERS_FAILED` 11941cb0ef41Sopenharmony_ci 11951cb0ef41Sopenharmony_ci`c-ares` failed to set the DNS server. 11961cb0ef41Sopenharmony_ci 11971cb0ef41Sopenharmony_ci<a id="ERR_DOMAIN_CALLBACK_NOT_AVAILABLE"></a> 11981cb0ef41Sopenharmony_ci 11991cb0ef41Sopenharmony_ci### `ERR_DOMAIN_CALLBACK_NOT_AVAILABLE` 12001cb0ef41Sopenharmony_ci 12011cb0ef41Sopenharmony_ciThe `node:domain` module was not usable since it could not establish the 12021cb0ef41Sopenharmony_cirequired error handling hooks, because 12031cb0ef41Sopenharmony_ci[`process.setUncaughtExceptionCaptureCallback()`][] had been called at an 12041cb0ef41Sopenharmony_ciearlier point in time. 12051cb0ef41Sopenharmony_ci 12061cb0ef41Sopenharmony_ci<a id="ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE"></a> 12071cb0ef41Sopenharmony_ci 12081cb0ef41Sopenharmony_ci### `ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE` 12091cb0ef41Sopenharmony_ci 12101cb0ef41Sopenharmony_ci[`process.setUncaughtExceptionCaptureCallback()`][] could not be called 12111cb0ef41Sopenharmony_cibecause the `node:domain` module has been loaded at an earlier point in time. 12121cb0ef41Sopenharmony_ci 12131cb0ef41Sopenharmony_ciThe stack trace is extended to include the point in time at which the 12141cb0ef41Sopenharmony_ci`node:domain` module had been loaded. 12151cb0ef41Sopenharmony_ci 12161cb0ef41Sopenharmony_ci<a id="ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION"></a> 12171cb0ef41Sopenharmony_ci 12181cb0ef41Sopenharmony_ci### `ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION` 12191cb0ef41Sopenharmony_ci 12201cb0ef41Sopenharmony_ci[`v8.startupSnapshot.setDeserializeMainFunction()`][] could not be called 12211cb0ef41Sopenharmony_cibecause it had already been called before. 12221cb0ef41Sopenharmony_ci 12231cb0ef41Sopenharmony_ci<a id="ERR_ENCODING_INVALID_ENCODED_DATA"></a> 12241cb0ef41Sopenharmony_ci 12251cb0ef41Sopenharmony_ci### `ERR_ENCODING_INVALID_ENCODED_DATA` 12261cb0ef41Sopenharmony_ci 12271cb0ef41Sopenharmony_ciData provided to `TextDecoder()` API was invalid according to the encoding 12281cb0ef41Sopenharmony_ciprovided. 12291cb0ef41Sopenharmony_ci 12301cb0ef41Sopenharmony_ci<a id="ERR_ENCODING_NOT_SUPPORTED"></a> 12311cb0ef41Sopenharmony_ci 12321cb0ef41Sopenharmony_ci### `ERR_ENCODING_NOT_SUPPORTED` 12331cb0ef41Sopenharmony_ci 12341cb0ef41Sopenharmony_ciEncoding provided to `TextDecoder()` API was not one of the 12351cb0ef41Sopenharmony_ci[WHATWG Supported Encodings][]. 12361cb0ef41Sopenharmony_ci 12371cb0ef41Sopenharmony_ci<a id="ERR_EVAL_ESM_CANNOT_PRINT"></a> 12381cb0ef41Sopenharmony_ci 12391cb0ef41Sopenharmony_ci### `ERR_EVAL_ESM_CANNOT_PRINT` 12401cb0ef41Sopenharmony_ci 12411cb0ef41Sopenharmony_ci`--print` cannot be used with ESM input. 12421cb0ef41Sopenharmony_ci 12431cb0ef41Sopenharmony_ci<a id="ERR_EVENT_RECURSION"></a> 12441cb0ef41Sopenharmony_ci 12451cb0ef41Sopenharmony_ci### `ERR_EVENT_RECURSION` 12461cb0ef41Sopenharmony_ci 12471cb0ef41Sopenharmony_ciThrown when an attempt is made to recursively dispatch an event on `EventTarget`. 12481cb0ef41Sopenharmony_ci 12491cb0ef41Sopenharmony_ci<a id="ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE"></a> 12501cb0ef41Sopenharmony_ci 12511cb0ef41Sopenharmony_ci### `ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE` 12521cb0ef41Sopenharmony_ci 12531cb0ef41Sopenharmony_ciThe JS execution context is not associated with a Node.js environment. 12541cb0ef41Sopenharmony_ciThis may occur when Node.js is used as an embedded library and some hooks 12551cb0ef41Sopenharmony_cifor the JS engine are not set up properly. 12561cb0ef41Sopenharmony_ci 12571cb0ef41Sopenharmony_ci<a id="ERR_FALSY_VALUE_REJECTION"></a> 12581cb0ef41Sopenharmony_ci 12591cb0ef41Sopenharmony_ci### `ERR_FALSY_VALUE_REJECTION` 12601cb0ef41Sopenharmony_ci 12611cb0ef41Sopenharmony_ciA `Promise` that was callbackified via `util.callbackify()` was rejected with a 12621cb0ef41Sopenharmony_cifalsy value. 12631cb0ef41Sopenharmony_ci 12641cb0ef41Sopenharmony_ci<a id="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM"></a> 12651cb0ef41Sopenharmony_ci 12661cb0ef41Sopenharmony_ci### `ERR_FEATURE_UNAVAILABLE_ON_PLATFORM` 12671cb0ef41Sopenharmony_ci 12681cb0ef41Sopenharmony_ci<!-- YAML 12691cb0ef41Sopenharmony_ciadded: v14.0.0 12701cb0ef41Sopenharmony_ci--> 12711cb0ef41Sopenharmony_ci 12721cb0ef41Sopenharmony_ciUsed when a feature that is not available 12731cb0ef41Sopenharmony_cito the current platform which is running Node.js is used. 12741cb0ef41Sopenharmony_ci 12751cb0ef41Sopenharmony_ci<a id="ERR_FS_CP_DIR_TO_NON_DIR"></a> 12761cb0ef41Sopenharmony_ci 12771cb0ef41Sopenharmony_ci### `ERR_FS_CP_DIR_TO_NON_DIR` 12781cb0ef41Sopenharmony_ci 12791cb0ef41Sopenharmony_ci<!-- 12801cb0ef41Sopenharmony_ciadded: v16.7.0 12811cb0ef41Sopenharmony_ci--> 12821cb0ef41Sopenharmony_ci 12831cb0ef41Sopenharmony_ciAn attempt was made to copy a directory to a non-directory (file, symlink, 12841cb0ef41Sopenharmony_cietc.) using [`fs.cp()`][]. 12851cb0ef41Sopenharmony_ci 12861cb0ef41Sopenharmony_ci<a id="ERR_FS_CP_EEXIST"></a> 12871cb0ef41Sopenharmony_ci 12881cb0ef41Sopenharmony_ci### `ERR_FS_CP_EEXIST` 12891cb0ef41Sopenharmony_ci 12901cb0ef41Sopenharmony_ci<!-- 12911cb0ef41Sopenharmony_ciadded: v16.7.0 12921cb0ef41Sopenharmony_ci--> 12931cb0ef41Sopenharmony_ci 12941cb0ef41Sopenharmony_ciAn attempt was made to copy over a file that already existed with 12951cb0ef41Sopenharmony_ci[`fs.cp()`][], with the `force` and `errorOnExist` set to `true`. 12961cb0ef41Sopenharmony_ci 12971cb0ef41Sopenharmony_ci<a id="ERR_FS_CP_EINVAL"></a> 12981cb0ef41Sopenharmony_ci 12991cb0ef41Sopenharmony_ci### `ERR_FS_CP_EINVAL` 13001cb0ef41Sopenharmony_ci 13011cb0ef41Sopenharmony_ci<!-- 13021cb0ef41Sopenharmony_ciadded: v16.7.0 13031cb0ef41Sopenharmony_ci--> 13041cb0ef41Sopenharmony_ci 13051cb0ef41Sopenharmony_ciWhen using [`fs.cp()`][], `src` or `dest` pointed to an invalid path. 13061cb0ef41Sopenharmony_ci 13071cb0ef41Sopenharmony_ci<a id="ERR_FS_CP_FIFO_PIPE"></a> 13081cb0ef41Sopenharmony_ci 13091cb0ef41Sopenharmony_ci### `ERR_HTTP_BODY_NOT_ALLOWED` 13101cb0ef41Sopenharmony_ci 13111cb0ef41Sopenharmony_ciAn error is thrown when writing to an HTTP response which does not allow 13121cb0ef41Sopenharmony_cicontents. <a id="ERR_HTTP_BODY_NOT_ALLOWED"></a> 13131cb0ef41Sopenharmony_ci 13141cb0ef41Sopenharmony_ci### `ERR_HTTP_CONTENT_LENGTH_MISMATCH` 13151cb0ef41Sopenharmony_ci 13161cb0ef41Sopenharmony_ciResponse body size doesn't match with the specified content-length header value. 13171cb0ef41Sopenharmony_ci 13181cb0ef41Sopenharmony_ci<a id="ERR_HTTP_CONTENT_LENGTH_MISMATCH"></a> 13191cb0ef41Sopenharmony_ci 13201cb0ef41Sopenharmony_ci### `ERR_FS_CP_FIFO_PIPE` 13211cb0ef41Sopenharmony_ci 13221cb0ef41Sopenharmony_ci<!-- 13231cb0ef41Sopenharmony_ciadded: v16.7.0 13241cb0ef41Sopenharmony_ci--> 13251cb0ef41Sopenharmony_ci 13261cb0ef41Sopenharmony_ciAn attempt was made to copy a named pipe with [`fs.cp()`][]. 13271cb0ef41Sopenharmony_ci 13281cb0ef41Sopenharmony_ci<a id="ERR_FS_CP_NON_DIR_TO_DIR"></a> 13291cb0ef41Sopenharmony_ci 13301cb0ef41Sopenharmony_ci### `ERR_FS_CP_NON_DIR_TO_DIR` 13311cb0ef41Sopenharmony_ci 13321cb0ef41Sopenharmony_ci<!-- 13331cb0ef41Sopenharmony_ciadded: v16.7.0 13341cb0ef41Sopenharmony_ci--> 13351cb0ef41Sopenharmony_ci 13361cb0ef41Sopenharmony_ciAn attempt was made to copy a non-directory (file, symlink, etc.) to a directory 13371cb0ef41Sopenharmony_ciusing [`fs.cp()`][]. 13381cb0ef41Sopenharmony_ci 13391cb0ef41Sopenharmony_ci<a id="ERR_FS_CP_SOCKET"></a> 13401cb0ef41Sopenharmony_ci 13411cb0ef41Sopenharmony_ci### `ERR_FS_CP_SOCKET` 13421cb0ef41Sopenharmony_ci 13431cb0ef41Sopenharmony_ci<!-- 13441cb0ef41Sopenharmony_ciadded: v16.7.0 13451cb0ef41Sopenharmony_ci--> 13461cb0ef41Sopenharmony_ci 13471cb0ef41Sopenharmony_ciAn attempt was made to copy to a socket with [`fs.cp()`][]. 13481cb0ef41Sopenharmony_ci 13491cb0ef41Sopenharmony_ci<a id="ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY"></a> 13501cb0ef41Sopenharmony_ci 13511cb0ef41Sopenharmony_ci### `ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY` 13521cb0ef41Sopenharmony_ci 13531cb0ef41Sopenharmony_ci<!-- 13541cb0ef41Sopenharmony_ciadded: v16.7.0 13551cb0ef41Sopenharmony_ci--> 13561cb0ef41Sopenharmony_ci 13571cb0ef41Sopenharmony_ciWhen using [`fs.cp()`][], a symlink in `dest` pointed to a subdirectory 13581cb0ef41Sopenharmony_ciof `src`. 13591cb0ef41Sopenharmony_ci 13601cb0ef41Sopenharmony_ci<a id="ERR_FS_CP_UNKNOWN"></a> 13611cb0ef41Sopenharmony_ci 13621cb0ef41Sopenharmony_ci### `ERR_FS_CP_UNKNOWN` 13631cb0ef41Sopenharmony_ci 13641cb0ef41Sopenharmony_ci<!-- 13651cb0ef41Sopenharmony_ciadded: v16.7.0 13661cb0ef41Sopenharmony_ci--> 13671cb0ef41Sopenharmony_ci 13681cb0ef41Sopenharmony_ciAn attempt was made to copy to an unknown file type with [`fs.cp()`][]. 13691cb0ef41Sopenharmony_ci 13701cb0ef41Sopenharmony_ci<a id="ERR_FS_EISDIR"></a> 13711cb0ef41Sopenharmony_ci 13721cb0ef41Sopenharmony_ci### `ERR_FS_EISDIR` 13731cb0ef41Sopenharmony_ci 13741cb0ef41Sopenharmony_ciPath is a directory. 13751cb0ef41Sopenharmony_ci 13761cb0ef41Sopenharmony_ci<a id="ERR_FS_FILE_TOO_LARGE"></a> 13771cb0ef41Sopenharmony_ci 13781cb0ef41Sopenharmony_ci### `ERR_FS_FILE_TOO_LARGE` 13791cb0ef41Sopenharmony_ci 13801cb0ef41Sopenharmony_ciAn attempt has been made to read a file whose size is larger than the maximum 13811cb0ef41Sopenharmony_ciallowed size for a `Buffer`. 13821cb0ef41Sopenharmony_ci 13831cb0ef41Sopenharmony_ci<a id="ERR_FS_INVALID_SYMLINK_TYPE"></a> 13841cb0ef41Sopenharmony_ci 13851cb0ef41Sopenharmony_ci### `ERR_FS_INVALID_SYMLINK_TYPE` 13861cb0ef41Sopenharmony_ci 13871cb0ef41Sopenharmony_ciAn invalid symlink type was passed to the [`fs.symlink()`][] or 13881cb0ef41Sopenharmony_ci[`fs.symlinkSync()`][] methods. 13891cb0ef41Sopenharmony_ci 13901cb0ef41Sopenharmony_ci<a id="ERR_HTTP_HEADERS_SENT"></a> 13911cb0ef41Sopenharmony_ci 13921cb0ef41Sopenharmony_ci### `ERR_HTTP_HEADERS_SENT` 13931cb0ef41Sopenharmony_ci 13941cb0ef41Sopenharmony_ciAn attempt was made to add more headers after the headers had already been sent. 13951cb0ef41Sopenharmony_ci 13961cb0ef41Sopenharmony_ci<a id="ERR_HTTP_INVALID_HEADER_VALUE"></a> 13971cb0ef41Sopenharmony_ci 13981cb0ef41Sopenharmony_ci### `ERR_HTTP_INVALID_HEADER_VALUE` 13991cb0ef41Sopenharmony_ci 14001cb0ef41Sopenharmony_ciAn invalid HTTP header value was specified. 14011cb0ef41Sopenharmony_ci 14021cb0ef41Sopenharmony_ci<a id="ERR_HTTP_INVALID_STATUS_CODE"></a> 14031cb0ef41Sopenharmony_ci 14041cb0ef41Sopenharmony_ci### `ERR_HTTP_INVALID_STATUS_CODE` 14051cb0ef41Sopenharmony_ci 14061cb0ef41Sopenharmony_ciStatus code was outside the regular status code range (100-999). 14071cb0ef41Sopenharmony_ci 14081cb0ef41Sopenharmony_ci<a id="ERR_HTTP_REQUEST_TIMEOUT"></a> 14091cb0ef41Sopenharmony_ci 14101cb0ef41Sopenharmony_ci### `ERR_HTTP_REQUEST_TIMEOUT` 14111cb0ef41Sopenharmony_ci 14121cb0ef41Sopenharmony_ciThe client has not sent the entire request within the allowed time. 14131cb0ef41Sopenharmony_ci 14141cb0ef41Sopenharmony_ci<a id="ERR_HTTP_SOCKET_ASSIGNED"></a> 14151cb0ef41Sopenharmony_ci 14161cb0ef41Sopenharmony_ci### `ERR_HTTP_SOCKET_ASSIGNED` 14171cb0ef41Sopenharmony_ci 14181cb0ef41Sopenharmony_ciThe given [`ServerResponse`][] was already assigned a socket. 14191cb0ef41Sopenharmony_ci 14201cb0ef41Sopenharmony_ci<a id="ERR_HTTP_SOCKET_ENCODING"></a> 14211cb0ef41Sopenharmony_ci 14221cb0ef41Sopenharmony_ci### `ERR_HTTP_SOCKET_ENCODING` 14231cb0ef41Sopenharmony_ci 14241cb0ef41Sopenharmony_ciChanging the socket encoding is not allowed per [RFC 7230 Section 3][]. 14251cb0ef41Sopenharmony_ci 14261cb0ef41Sopenharmony_ci<a id="ERR_HTTP_TRAILER_INVALID"></a> 14271cb0ef41Sopenharmony_ci 14281cb0ef41Sopenharmony_ci### `ERR_HTTP_TRAILER_INVALID` 14291cb0ef41Sopenharmony_ci 14301cb0ef41Sopenharmony_ciThe `Trailer` header was set even though the transfer encoding does not support 14311cb0ef41Sopenharmony_cithat. 14321cb0ef41Sopenharmony_ci 14331cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_ALTSVC_INVALID_ORIGIN"></a> 14341cb0ef41Sopenharmony_ci 14351cb0ef41Sopenharmony_ci### `ERR_HTTP2_ALTSVC_INVALID_ORIGIN` 14361cb0ef41Sopenharmony_ci 14371cb0ef41Sopenharmony_ciHTTP/2 ALTSVC frames require a valid origin. 14381cb0ef41Sopenharmony_ci 14391cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_ALTSVC_LENGTH"></a> 14401cb0ef41Sopenharmony_ci 14411cb0ef41Sopenharmony_ci### `ERR_HTTP2_ALTSVC_LENGTH` 14421cb0ef41Sopenharmony_ci 14431cb0ef41Sopenharmony_ciHTTP/2 ALTSVC frames are limited to a maximum of 16,382 payload bytes. 14441cb0ef41Sopenharmony_ci 14451cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_CONNECT_AUTHORITY"></a> 14461cb0ef41Sopenharmony_ci 14471cb0ef41Sopenharmony_ci### `ERR_HTTP2_CONNECT_AUTHORITY` 14481cb0ef41Sopenharmony_ci 14491cb0ef41Sopenharmony_ciFor HTTP/2 requests using the `CONNECT` method, the `:authority` pseudo-header 14501cb0ef41Sopenharmony_ciis required. 14511cb0ef41Sopenharmony_ci 14521cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_CONNECT_PATH"></a> 14531cb0ef41Sopenharmony_ci 14541cb0ef41Sopenharmony_ci### `ERR_HTTP2_CONNECT_PATH` 14551cb0ef41Sopenharmony_ci 14561cb0ef41Sopenharmony_ciFor HTTP/2 requests using the `CONNECT` method, the `:path` pseudo-header is 14571cb0ef41Sopenharmony_ciforbidden. 14581cb0ef41Sopenharmony_ci 14591cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_CONNECT_SCHEME"></a> 14601cb0ef41Sopenharmony_ci 14611cb0ef41Sopenharmony_ci### `ERR_HTTP2_CONNECT_SCHEME` 14621cb0ef41Sopenharmony_ci 14631cb0ef41Sopenharmony_ciFor HTTP/2 requests using the `CONNECT` method, the `:scheme` pseudo-header is 14641cb0ef41Sopenharmony_ciforbidden. 14651cb0ef41Sopenharmony_ci 14661cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_ERROR"></a> 14671cb0ef41Sopenharmony_ci 14681cb0ef41Sopenharmony_ci### `ERR_HTTP2_ERROR` 14691cb0ef41Sopenharmony_ci 14701cb0ef41Sopenharmony_ciA non-specific HTTP/2 error has occurred. 14711cb0ef41Sopenharmony_ci 14721cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_GOAWAY_SESSION"></a> 14731cb0ef41Sopenharmony_ci 14741cb0ef41Sopenharmony_ci### `ERR_HTTP2_GOAWAY_SESSION` 14751cb0ef41Sopenharmony_ci 14761cb0ef41Sopenharmony_ciNew HTTP/2 Streams may not be opened after the `Http2Session` has received a 14771cb0ef41Sopenharmony_ci`GOAWAY` frame from the connected peer. 14781cb0ef41Sopenharmony_ci 14791cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_HEADER_SINGLE_VALUE"></a> 14801cb0ef41Sopenharmony_ci 14811cb0ef41Sopenharmony_ci### `ERR_HTTP2_HEADER_SINGLE_VALUE` 14821cb0ef41Sopenharmony_ci 14831cb0ef41Sopenharmony_ciMultiple values were provided for an HTTP/2 header field that was required to 14841cb0ef41Sopenharmony_cihave only a single value. 14851cb0ef41Sopenharmony_ci 14861cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_HEADERS_AFTER_RESPOND"></a> 14871cb0ef41Sopenharmony_ci 14881cb0ef41Sopenharmony_ci### `ERR_HTTP2_HEADERS_AFTER_RESPOND` 14891cb0ef41Sopenharmony_ci 14901cb0ef41Sopenharmony_ciAn additional headers was specified after an HTTP/2 response was initiated. 14911cb0ef41Sopenharmony_ci 14921cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_HEADERS_SENT"></a> 14931cb0ef41Sopenharmony_ci 14941cb0ef41Sopenharmony_ci### `ERR_HTTP2_HEADERS_SENT` 14951cb0ef41Sopenharmony_ci 14961cb0ef41Sopenharmony_ciAn attempt was made to send multiple response headers. 14971cb0ef41Sopenharmony_ci 14981cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_INFO_STATUS_NOT_ALLOWED"></a> 14991cb0ef41Sopenharmony_ci 15001cb0ef41Sopenharmony_ci### `ERR_HTTP2_INFO_STATUS_NOT_ALLOWED` 15011cb0ef41Sopenharmony_ci 15021cb0ef41Sopenharmony_ciInformational HTTP status codes (`1xx`) may not be set as the response status 15031cb0ef41Sopenharmony_cicode on HTTP/2 responses. 15041cb0ef41Sopenharmony_ci 15051cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_INVALID_CONNECTION_HEADERS"></a> 15061cb0ef41Sopenharmony_ci 15071cb0ef41Sopenharmony_ci### `ERR_HTTP2_INVALID_CONNECTION_HEADERS` 15081cb0ef41Sopenharmony_ci 15091cb0ef41Sopenharmony_ciHTTP/1 connection specific headers are forbidden to be used in HTTP/2 15101cb0ef41Sopenharmony_cirequests and responses. 15111cb0ef41Sopenharmony_ci 15121cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_INVALID_HEADER_VALUE"></a> 15131cb0ef41Sopenharmony_ci 15141cb0ef41Sopenharmony_ci### `ERR_HTTP2_INVALID_HEADER_VALUE` 15151cb0ef41Sopenharmony_ci 15161cb0ef41Sopenharmony_ciAn invalid HTTP/2 header value was specified. 15171cb0ef41Sopenharmony_ci 15181cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_INVALID_INFO_STATUS"></a> 15191cb0ef41Sopenharmony_ci 15201cb0ef41Sopenharmony_ci### `ERR_HTTP2_INVALID_INFO_STATUS` 15211cb0ef41Sopenharmony_ci 15221cb0ef41Sopenharmony_ciAn invalid HTTP informational status code has been specified. Informational 15231cb0ef41Sopenharmony_cistatus codes must be an integer between `100` and `199` (inclusive). 15241cb0ef41Sopenharmony_ci 15251cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_INVALID_ORIGIN"></a> 15261cb0ef41Sopenharmony_ci 15271cb0ef41Sopenharmony_ci### `ERR_HTTP2_INVALID_ORIGIN` 15281cb0ef41Sopenharmony_ci 15291cb0ef41Sopenharmony_ciHTTP/2 `ORIGIN` frames require a valid origin. 15301cb0ef41Sopenharmony_ci 15311cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH"></a> 15321cb0ef41Sopenharmony_ci 15331cb0ef41Sopenharmony_ci### `ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH` 15341cb0ef41Sopenharmony_ci 15351cb0ef41Sopenharmony_ciInput `Buffer` and `Uint8Array` instances passed to the 15361cb0ef41Sopenharmony_ci`http2.getUnpackedSettings()` API must have a length that is a multiple of 15371cb0ef41Sopenharmony_cisix. 15381cb0ef41Sopenharmony_ci 15391cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_INVALID_PSEUDOHEADER"></a> 15401cb0ef41Sopenharmony_ci 15411cb0ef41Sopenharmony_ci### `ERR_HTTP2_INVALID_PSEUDOHEADER` 15421cb0ef41Sopenharmony_ci 15431cb0ef41Sopenharmony_ciOnly valid HTTP/2 pseudoheaders (`:status`, `:path`, `:authority`, `:scheme`, 15441cb0ef41Sopenharmony_ciand `:method`) may be used. 15451cb0ef41Sopenharmony_ci 15461cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_INVALID_SESSION"></a> 15471cb0ef41Sopenharmony_ci 15481cb0ef41Sopenharmony_ci### `ERR_HTTP2_INVALID_SESSION` 15491cb0ef41Sopenharmony_ci 15501cb0ef41Sopenharmony_ciAn action was performed on an `Http2Session` object that had already been 15511cb0ef41Sopenharmony_cidestroyed. 15521cb0ef41Sopenharmony_ci 15531cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_INVALID_SETTING_VALUE"></a> 15541cb0ef41Sopenharmony_ci 15551cb0ef41Sopenharmony_ci### `ERR_HTTP2_INVALID_SETTING_VALUE` 15561cb0ef41Sopenharmony_ci 15571cb0ef41Sopenharmony_ciAn invalid value has been specified for an HTTP/2 setting. 15581cb0ef41Sopenharmony_ci 15591cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_INVALID_STREAM"></a> 15601cb0ef41Sopenharmony_ci 15611cb0ef41Sopenharmony_ci### `ERR_HTTP2_INVALID_STREAM` 15621cb0ef41Sopenharmony_ci 15631cb0ef41Sopenharmony_ciAn operation was performed on a stream that had already been destroyed. 15641cb0ef41Sopenharmony_ci 15651cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_MAX_PENDING_SETTINGS_ACK"></a> 15661cb0ef41Sopenharmony_ci 15671cb0ef41Sopenharmony_ci### `ERR_HTTP2_MAX_PENDING_SETTINGS_ACK` 15681cb0ef41Sopenharmony_ci 15691cb0ef41Sopenharmony_ciWhenever an HTTP/2 `SETTINGS` frame is sent to a connected peer, the peer is 15701cb0ef41Sopenharmony_cirequired to send an acknowledgment that it has received and applied the new 15711cb0ef41Sopenharmony_ci`SETTINGS`. By default, a maximum number of unacknowledged `SETTINGS` frames may 15721cb0ef41Sopenharmony_cibe sent at any given time. This error code is used when that limit has been 15731cb0ef41Sopenharmony_cireached. 15741cb0ef41Sopenharmony_ci 15751cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_NESTED_PUSH"></a> 15761cb0ef41Sopenharmony_ci 15771cb0ef41Sopenharmony_ci### `ERR_HTTP2_NESTED_PUSH` 15781cb0ef41Sopenharmony_ci 15791cb0ef41Sopenharmony_ciAn attempt was made to initiate a new push stream from within a push stream. 15801cb0ef41Sopenharmony_ciNested push streams are not permitted. 15811cb0ef41Sopenharmony_ci 15821cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_NO_MEM"></a> 15831cb0ef41Sopenharmony_ci 15841cb0ef41Sopenharmony_ci### `ERR_HTTP2_NO_MEM` 15851cb0ef41Sopenharmony_ci 15861cb0ef41Sopenharmony_ciOut of memory when using the `http2session.setLocalWindowSize(windowSize)` API. 15871cb0ef41Sopenharmony_ci 15881cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_NO_SOCKET_MANIPULATION"></a> 15891cb0ef41Sopenharmony_ci 15901cb0ef41Sopenharmony_ci### `ERR_HTTP2_NO_SOCKET_MANIPULATION` 15911cb0ef41Sopenharmony_ci 15921cb0ef41Sopenharmony_ciAn attempt was made to directly manipulate (read, write, pause, resume, etc.) a 15931cb0ef41Sopenharmony_cisocket attached to an `Http2Session`. 15941cb0ef41Sopenharmony_ci 15951cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_ORIGIN_LENGTH"></a> 15961cb0ef41Sopenharmony_ci 15971cb0ef41Sopenharmony_ci### `ERR_HTTP2_ORIGIN_LENGTH` 15981cb0ef41Sopenharmony_ci 15991cb0ef41Sopenharmony_ciHTTP/2 `ORIGIN` frames are limited to a length of 16382 bytes. 16001cb0ef41Sopenharmony_ci 16011cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_OUT_OF_STREAMS"></a> 16021cb0ef41Sopenharmony_ci 16031cb0ef41Sopenharmony_ci### `ERR_HTTP2_OUT_OF_STREAMS` 16041cb0ef41Sopenharmony_ci 16051cb0ef41Sopenharmony_ciThe number of streams created on a single HTTP/2 session reached the maximum 16061cb0ef41Sopenharmony_cilimit. 16071cb0ef41Sopenharmony_ci 16081cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_PAYLOAD_FORBIDDEN"></a> 16091cb0ef41Sopenharmony_ci 16101cb0ef41Sopenharmony_ci### `ERR_HTTP2_PAYLOAD_FORBIDDEN` 16111cb0ef41Sopenharmony_ci 16121cb0ef41Sopenharmony_ciA message payload was specified for an HTTP response code for which a payload is 16131cb0ef41Sopenharmony_ciforbidden. 16141cb0ef41Sopenharmony_ci 16151cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_PING_CANCEL"></a> 16161cb0ef41Sopenharmony_ci 16171cb0ef41Sopenharmony_ci### `ERR_HTTP2_PING_CANCEL` 16181cb0ef41Sopenharmony_ci 16191cb0ef41Sopenharmony_ciAn HTTP/2 ping was canceled. 16201cb0ef41Sopenharmony_ci 16211cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_PING_LENGTH"></a> 16221cb0ef41Sopenharmony_ci 16231cb0ef41Sopenharmony_ci### `ERR_HTTP2_PING_LENGTH` 16241cb0ef41Sopenharmony_ci 16251cb0ef41Sopenharmony_ciHTTP/2 ping payloads must be exactly 8 bytes in length. 16261cb0ef41Sopenharmony_ci 16271cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED"></a> 16281cb0ef41Sopenharmony_ci 16291cb0ef41Sopenharmony_ci### `ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED` 16301cb0ef41Sopenharmony_ci 16311cb0ef41Sopenharmony_ciAn HTTP/2 pseudo-header has been used inappropriately. Pseudo-headers are header 16321cb0ef41Sopenharmony_cikey names that begin with the `:` prefix. 16331cb0ef41Sopenharmony_ci 16341cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_PUSH_DISABLED"></a> 16351cb0ef41Sopenharmony_ci 16361cb0ef41Sopenharmony_ci### `ERR_HTTP2_PUSH_DISABLED` 16371cb0ef41Sopenharmony_ci 16381cb0ef41Sopenharmony_ciAn attempt was made to create a push stream, which had been disabled by the 16391cb0ef41Sopenharmony_ciclient. 16401cb0ef41Sopenharmony_ci 16411cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_SEND_FILE"></a> 16421cb0ef41Sopenharmony_ci 16431cb0ef41Sopenharmony_ci### `ERR_HTTP2_SEND_FILE` 16441cb0ef41Sopenharmony_ci 16451cb0ef41Sopenharmony_ciAn attempt was made to use the `Http2Stream.prototype.responseWithFile()` API to 16461cb0ef41Sopenharmony_cisend a directory. 16471cb0ef41Sopenharmony_ci 16481cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_SEND_FILE_NOSEEK"></a> 16491cb0ef41Sopenharmony_ci 16501cb0ef41Sopenharmony_ci### `ERR_HTTP2_SEND_FILE_NOSEEK` 16511cb0ef41Sopenharmony_ci 16521cb0ef41Sopenharmony_ciAn attempt was made to use the `Http2Stream.prototype.responseWithFile()` API to 16531cb0ef41Sopenharmony_cisend something other than a regular file, but `offset` or `length` options were 16541cb0ef41Sopenharmony_ciprovided. 16551cb0ef41Sopenharmony_ci 16561cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_SESSION_ERROR"></a> 16571cb0ef41Sopenharmony_ci 16581cb0ef41Sopenharmony_ci### `ERR_HTTP2_SESSION_ERROR` 16591cb0ef41Sopenharmony_ci 16601cb0ef41Sopenharmony_ciThe `Http2Session` closed with a non-zero error code. 16611cb0ef41Sopenharmony_ci 16621cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_SETTINGS_CANCEL"></a> 16631cb0ef41Sopenharmony_ci 16641cb0ef41Sopenharmony_ci### `ERR_HTTP2_SETTINGS_CANCEL` 16651cb0ef41Sopenharmony_ci 16661cb0ef41Sopenharmony_ciThe `Http2Session` settings canceled. 16671cb0ef41Sopenharmony_ci 16681cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_SOCKET_BOUND"></a> 16691cb0ef41Sopenharmony_ci 16701cb0ef41Sopenharmony_ci### `ERR_HTTP2_SOCKET_BOUND` 16711cb0ef41Sopenharmony_ci 16721cb0ef41Sopenharmony_ciAn attempt was made to connect a `Http2Session` object to a `net.Socket` or 16731cb0ef41Sopenharmony_ci`tls.TLSSocket` that had already been bound to another `Http2Session` object. 16741cb0ef41Sopenharmony_ci 16751cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_SOCKET_UNBOUND"></a> 16761cb0ef41Sopenharmony_ci 16771cb0ef41Sopenharmony_ci### `ERR_HTTP2_SOCKET_UNBOUND` 16781cb0ef41Sopenharmony_ci 16791cb0ef41Sopenharmony_ciAn attempt was made to use the `socket` property of an `Http2Session` that 16801cb0ef41Sopenharmony_cihas already been closed. 16811cb0ef41Sopenharmony_ci 16821cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_STATUS_101"></a> 16831cb0ef41Sopenharmony_ci 16841cb0ef41Sopenharmony_ci### `ERR_HTTP2_STATUS_101` 16851cb0ef41Sopenharmony_ci 16861cb0ef41Sopenharmony_ciUse of the `101` Informational status code is forbidden in HTTP/2. 16871cb0ef41Sopenharmony_ci 16881cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_STATUS_INVALID"></a> 16891cb0ef41Sopenharmony_ci 16901cb0ef41Sopenharmony_ci### `ERR_HTTP2_STATUS_INVALID` 16911cb0ef41Sopenharmony_ci 16921cb0ef41Sopenharmony_ciAn invalid HTTP status code has been specified. Status codes must be an integer 16931cb0ef41Sopenharmony_cibetween `100` and `599` (inclusive). 16941cb0ef41Sopenharmony_ci 16951cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_STREAM_CANCEL"></a> 16961cb0ef41Sopenharmony_ci 16971cb0ef41Sopenharmony_ci### `ERR_HTTP2_STREAM_CANCEL` 16981cb0ef41Sopenharmony_ci 16991cb0ef41Sopenharmony_ciAn `Http2Stream` was destroyed before any data was transmitted to the connected 17001cb0ef41Sopenharmony_cipeer. 17011cb0ef41Sopenharmony_ci 17021cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_STREAM_ERROR"></a> 17031cb0ef41Sopenharmony_ci 17041cb0ef41Sopenharmony_ci### `ERR_HTTP2_STREAM_ERROR` 17051cb0ef41Sopenharmony_ci 17061cb0ef41Sopenharmony_ciA non-zero error code was been specified in an `RST_STREAM` frame. 17071cb0ef41Sopenharmony_ci 17081cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_STREAM_SELF_DEPENDENCY"></a> 17091cb0ef41Sopenharmony_ci 17101cb0ef41Sopenharmony_ci### `ERR_HTTP2_STREAM_SELF_DEPENDENCY` 17111cb0ef41Sopenharmony_ci 17121cb0ef41Sopenharmony_ciWhen setting the priority for an HTTP/2 stream, the stream may be marked as 17131cb0ef41Sopenharmony_cia dependency for a parent stream. This error code is used when an attempt is 17141cb0ef41Sopenharmony_cimade to mark a stream and dependent of itself. 17151cb0ef41Sopenharmony_ci 17161cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_TOO_MANY_INVALID_FRAMES"></a> 17171cb0ef41Sopenharmony_ci 17181cb0ef41Sopenharmony_ci### `ERR_HTTP2_TOO_MANY_INVALID_FRAMES` 17191cb0ef41Sopenharmony_ci 17201cb0ef41Sopenharmony_ci<!-- 17211cb0ef41Sopenharmony_ciadded: v15.14.0 17221cb0ef41Sopenharmony_ci--> 17231cb0ef41Sopenharmony_ci 17241cb0ef41Sopenharmony_ciThe limit of acceptable invalid HTTP/2 protocol frames sent by the peer, 17251cb0ef41Sopenharmony_cias specified through the `maxSessionInvalidFrames` option, has been exceeded. 17261cb0ef41Sopenharmony_ci 17271cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_TRAILERS_ALREADY_SENT"></a> 17281cb0ef41Sopenharmony_ci 17291cb0ef41Sopenharmony_ci### `ERR_HTTP2_TRAILERS_ALREADY_SENT` 17301cb0ef41Sopenharmony_ci 17311cb0ef41Sopenharmony_ciTrailing headers have already been sent on the `Http2Stream`. 17321cb0ef41Sopenharmony_ci 17331cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_TRAILERS_NOT_READY"></a> 17341cb0ef41Sopenharmony_ci 17351cb0ef41Sopenharmony_ci### `ERR_HTTP2_TRAILERS_NOT_READY` 17361cb0ef41Sopenharmony_ci 17371cb0ef41Sopenharmony_ciThe `http2stream.sendTrailers()` method cannot be called until after the 17381cb0ef41Sopenharmony_ci`'wantTrailers'` event is emitted on an `Http2Stream` object. The 17391cb0ef41Sopenharmony_ci`'wantTrailers'` event will only be emitted if the `waitForTrailers` option 17401cb0ef41Sopenharmony_ciis set for the `Http2Stream`. 17411cb0ef41Sopenharmony_ci 17421cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_UNSUPPORTED_PROTOCOL"></a> 17431cb0ef41Sopenharmony_ci 17441cb0ef41Sopenharmony_ci### `ERR_HTTP2_UNSUPPORTED_PROTOCOL` 17451cb0ef41Sopenharmony_ci 17461cb0ef41Sopenharmony_ci`http2.connect()` was passed a URL that uses any protocol other than `http:` or 17471cb0ef41Sopenharmony_ci`https:`. 17481cb0ef41Sopenharmony_ci 17491cb0ef41Sopenharmony_ci<a id="ERR_ILLEGAL_CONSTRUCTOR"></a> 17501cb0ef41Sopenharmony_ci 17511cb0ef41Sopenharmony_ci### `ERR_ILLEGAL_CONSTRUCTOR` 17521cb0ef41Sopenharmony_ci 17531cb0ef41Sopenharmony_ciAn attempt was made to construct an object using a non-public constructor. 17541cb0ef41Sopenharmony_ci 17551cb0ef41Sopenharmony_ci<a id="ERR_IMPORT_ASSERTION_TYPE_FAILED"></a> 17561cb0ef41Sopenharmony_ci 17571cb0ef41Sopenharmony_ci### `ERR_IMPORT_ASSERTION_TYPE_FAILED` 17581cb0ef41Sopenharmony_ci 17591cb0ef41Sopenharmony_ci<!-- YAML 17601cb0ef41Sopenharmony_ciadded: 17611cb0ef41Sopenharmony_ci - v17.1.0 17621cb0ef41Sopenharmony_ci - v16.14.0 17631cb0ef41Sopenharmony_ci--> 17641cb0ef41Sopenharmony_ci 17651cb0ef41Sopenharmony_ciAn import `type` attribute was provided, but the specified module is of a 17661cb0ef41Sopenharmony_cidifferent type. 17671cb0ef41Sopenharmony_ci 17681cb0ef41Sopenharmony_ci<a id="ERR_IMPORT_ASSERTION_TYPE_MISSING"></a> 17691cb0ef41Sopenharmony_ci 17701cb0ef41Sopenharmony_ci### `ERR_IMPORT_ASSERTION_TYPE_MISSING` 17711cb0ef41Sopenharmony_ci 17721cb0ef41Sopenharmony_ci<!-- YAML 17731cb0ef41Sopenharmony_ciadded: 17741cb0ef41Sopenharmony_ci - v17.1.0 17751cb0ef41Sopenharmony_ci - v16.14.0 17761cb0ef41Sopenharmony_ci--> 17771cb0ef41Sopenharmony_ci 17781cb0ef41Sopenharmony_ciAn import attribute is missing, preventing the specified module to be imported. 17791cb0ef41Sopenharmony_ci 17801cb0ef41Sopenharmony_ci<a id="ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED"></a> 17811cb0ef41Sopenharmony_ci 17821cb0ef41Sopenharmony_ci### `ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED` 17831cb0ef41Sopenharmony_ci 17841cb0ef41Sopenharmony_ci<!-- YAML 17851cb0ef41Sopenharmony_ciadded: 17861cb0ef41Sopenharmony_ci - v17.1.0 17871cb0ef41Sopenharmony_ci - v16.14.0 17881cb0ef41Sopenharmony_ci--> 17891cb0ef41Sopenharmony_ci 17901cb0ef41Sopenharmony_ciAn import attribute is not supported by this version of Node.js. 17911cb0ef41Sopenharmony_ci 17921cb0ef41Sopenharmony_ci<a id="ERR_IMPORT_ATTRIBUTE_UNSUPPORTED"></a> 17931cb0ef41Sopenharmony_ci 17941cb0ef41Sopenharmony_ci### `ERR_IMPORT_ATTRIBUTE_UNSUPPORTED` 17951cb0ef41Sopenharmony_ci 17961cb0ef41Sopenharmony_ci<!-- YAML 17971cb0ef41Sopenharmony_ciadded: v18.19.0 17981cb0ef41Sopenharmony_ci--> 17991cb0ef41Sopenharmony_ci 18001cb0ef41Sopenharmony_ciAn import attribute is not supported by this version of Node.js. 18011cb0ef41Sopenharmony_ci 18021cb0ef41Sopenharmony_ci<a id="ERR_INCOMPATIBLE_OPTION_PAIR"></a> 18031cb0ef41Sopenharmony_ci 18041cb0ef41Sopenharmony_ci### `ERR_INCOMPATIBLE_OPTION_PAIR` 18051cb0ef41Sopenharmony_ci 18061cb0ef41Sopenharmony_ciAn option pair is incompatible with each other and cannot be used at the same 18071cb0ef41Sopenharmony_citime. 18081cb0ef41Sopenharmony_ci 18091cb0ef41Sopenharmony_ci<a id="ERR_INPUT_TYPE_NOT_ALLOWED"></a> 18101cb0ef41Sopenharmony_ci 18111cb0ef41Sopenharmony_ci### `ERR_INPUT_TYPE_NOT_ALLOWED` 18121cb0ef41Sopenharmony_ci 18131cb0ef41Sopenharmony_ci> Stability: 1 - Experimental 18141cb0ef41Sopenharmony_ci 18151cb0ef41Sopenharmony_ciThe `--input-type` flag was used to attempt to execute a file. This flag can 18161cb0ef41Sopenharmony_cionly be used with input via `--eval`, `--print`, or `STDIN`. 18171cb0ef41Sopenharmony_ci 18181cb0ef41Sopenharmony_ci<a id="ERR_INSPECTOR_ALREADY_ACTIVATED"></a> 18191cb0ef41Sopenharmony_ci 18201cb0ef41Sopenharmony_ci### `ERR_INSPECTOR_ALREADY_ACTIVATED` 18211cb0ef41Sopenharmony_ci 18221cb0ef41Sopenharmony_ciWhile using the `node:inspector` module, an attempt was made to activate the 18231cb0ef41Sopenharmony_ciinspector when it already started to listen on a port. Use `inspector.close()` 18241cb0ef41Sopenharmony_cibefore activating it on a different address. 18251cb0ef41Sopenharmony_ci 18261cb0ef41Sopenharmony_ci<a id="ERR_INSPECTOR_ALREADY_CONNECTED"></a> 18271cb0ef41Sopenharmony_ci 18281cb0ef41Sopenharmony_ci### `ERR_INSPECTOR_ALREADY_CONNECTED` 18291cb0ef41Sopenharmony_ci 18301cb0ef41Sopenharmony_ciWhile using the `node:inspector` module, an attempt was made to connect when the 18311cb0ef41Sopenharmony_ciinspector was already connected. 18321cb0ef41Sopenharmony_ci 18331cb0ef41Sopenharmony_ci<a id="ERR_INSPECTOR_CLOSED"></a> 18341cb0ef41Sopenharmony_ci 18351cb0ef41Sopenharmony_ci### `ERR_INSPECTOR_CLOSED` 18361cb0ef41Sopenharmony_ci 18371cb0ef41Sopenharmony_ciWhile using the `node:inspector` module, an attempt was made to use the 18381cb0ef41Sopenharmony_ciinspector after the session had already closed. 18391cb0ef41Sopenharmony_ci 18401cb0ef41Sopenharmony_ci<a id="ERR_INSPECTOR_COMMAND"></a> 18411cb0ef41Sopenharmony_ci 18421cb0ef41Sopenharmony_ci### `ERR_INSPECTOR_COMMAND` 18431cb0ef41Sopenharmony_ci 18441cb0ef41Sopenharmony_ciAn error occurred while issuing a command via the `node:inspector` module. 18451cb0ef41Sopenharmony_ci 18461cb0ef41Sopenharmony_ci<a id="ERR_INSPECTOR_NOT_ACTIVE"></a> 18471cb0ef41Sopenharmony_ci 18481cb0ef41Sopenharmony_ci### `ERR_INSPECTOR_NOT_ACTIVE` 18491cb0ef41Sopenharmony_ci 18501cb0ef41Sopenharmony_ciThe `inspector` is not active when `inspector.waitForDebugger()` is called. 18511cb0ef41Sopenharmony_ci 18521cb0ef41Sopenharmony_ci<a id="ERR_INSPECTOR_NOT_AVAILABLE"></a> 18531cb0ef41Sopenharmony_ci 18541cb0ef41Sopenharmony_ci### `ERR_INSPECTOR_NOT_AVAILABLE` 18551cb0ef41Sopenharmony_ci 18561cb0ef41Sopenharmony_ciThe `node:inspector` module is not available for use. 18571cb0ef41Sopenharmony_ci 18581cb0ef41Sopenharmony_ci<a id="ERR_INSPECTOR_NOT_CONNECTED"></a> 18591cb0ef41Sopenharmony_ci 18601cb0ef41Sopenharmony_ci### `ERR_INSPECTOR_NOT_CONNECTED` 18611cb0ef41Sopenharmony_ci 18621cb0ef41Sopenharmony_ciWhile using the `node:inspector` module, an attempt was made to use the 18631cb0ef41Sopenharmony_ciinspector before it was connected. 18641cb0ef41Sopenharmony_ci 18651cb0ef41Sopenharmony_ci<a id="ERR_INSPECTOR_NOT_WORKER"></a> 18661cb0ef41Sopenharmony_ci 18671cb0ef41Sopenharmony_ci### `ERR_INSPECTOR_NOT_WORKER` 18681cb0ef41Sopenharmony_ci 18691cb0ef41Sopenharmony_ciAn API was called on the main thread that can only be used from 18701cb0ef41Sopenharmony_cithe worker thread. 18711cb0ef41Sopenharmony_ci 18721cb0ef41Sopenharmony_ci<a id="ERR_INTERNAL_ASSERTION"></a> 18731cb0ef41Sopenharmony_ci 18741cb0ef41Sopenharmony_ci### `ERR_INTERNAL_ASSERTION` 18751cb0ef41Sopenharmony_ci 18761cb0ef41Sopenharmony_ciThere was a bug in Node.js or incorrect usage of Node.js internals. 18771cb0ef41Sopenharmony_ciTo fix the error, open an issue at <https://github.com/nodejs/node/issues>. 18781cb0ef41Sopenharmony_ci 18791cb0ef41Sopenharmony_ci<a id="ERR_INVALID_ADDRESS_FAMILY"></a> 18801cb0ef41Sopenharmony_ci 18811cb0ef41Sopenharmony_ci### `ERR_INVALID_ADDRESS_FAMILY` 18821cb0ef41Sopenharmony_ci 18831cb0ef41Sopenharmony_ciThe provided address family is not understood by the Node.js API. 18841cb0ef41Sopenharmony_ci 18851cb0ef41Sopenharmony_ci<a id="ERR_INVALID_ARG_TYPE"></a> 18861cb0ef41Sopenharmony_ci 18871cb0ef41Sopenharmony_ci### `ERR_INVALID_ARG_TYPE` 18881cb0ef41Sopenharmony_ci 18891cb0ef41Sopenharmony_ciAn argument of the wrong type was passed to a Node.js API. 18901cb0ef41Sopenharmony_ci 18911cb0ef41Sopenharmony_ci<a id="ERR_INVALID_ARG_VALUE"></a> 18921cb0ef41Sopenharmony_ci 18931cb0ef41Sopenharmony_ci### `ERR_INVALID_ARG_VALUE` 18941cb0ef41Sopenharmony_ci 18951cb0ef41Sopenharmony_ciAn invalid or unsupported value was passed for a given argument. 18961cb0ef41Sopenharmony_ci 18971cb0ef41Sopenharmony_ci<a id="ERR_INVALID_ASYNC_ID"></a> 18981cb0ef41Sopenharmony_ci 18991cb0ef41Sopenharmony_ci### `ERR_INVALID_ASYNC_ID` 19001cb0ef41Sopenharmony_ci 19011cb0ef41Sopenharmony_ciAn invalid `asyncId` or `triggerAsyncId` was passed using `AsyncHooks`. An id 19021cb0ef41Sopenharmony_ciless than -1 should never happen. 19031cb0ef41Sopenharmony_ci 19041cb0ef41Sopenharmony_ci<a id="ERR_INVALID_BUFFER_SIZE"></a> 19051cb0ef41Sopenharmony_ci 19061cb0ef41Sopenharmony_ci### `ERR_INVALID_BUFFER_SIZE` 19071cb0ef41Sopenharmony_ci 19081cb0ef41Sopenharmony_ciA swap was performed on a `Buffer` but its size was not compatible with the 19091cb0ef41Sopenharmony_cioperation. 19101cb0ef41Sopenharmony_ci 19111cb0ef41Sopenharmony_ci<a id="ERR_INVALID_CHAR"></a> 19121cb0ef41Sopenharmony_ci 19131cb0ef41Sopenharmony_ci### `ERR_INVALID_CHAR` 19141cb0ef41Sopenharmony_ci 19151cb0ef41Sopenharmony_ciInvalid characters were detected in headers. 19161cb0ef41Sopenharmony_ci 19171cb0ef41Sopenharmony_ci<a id="ERR_INVALID_CURSOR_POS"></a> 19181cb0ef41Sopenharmony_ci 19191cb0ef41Sopenharmony_ci### `ERR_INVALID_CURSOR_POS` 19201cb0ef41Sopenharmony_ci 19211cb0ef41Sopenharmony_ciA cursor on a given stream cannot be moved to a specified row without a 19221cb0ef41Sopenharmony_cispecified column. 19231cb0ef41Sopenharmony_ci 19241cb0ef41Sopenharmony_ci<a id="ERR_INVALID_FD"></a> 19251cb0ef41Sopenharmony_ci 19261cb0ef41Sopenharmony_ci### `ERR_INVALID_FD` 19271cb0ef41Sopenharmony_ci 19281cb0ef41Sopenharmony_ciA file descriptor ('fd') was not valid (e.g. it was a negative value). 19291cb0ef41Sopenharmony_ci 19301cb0ef41Sopenharmony_ci<a id="ERR_INVALID_FD_TYPE"></a> 19311cb0ef41Sopenharmony_ci 19321cb0ef41Sopenharmony_ci### `ERR_INVALID_FD_TYPE` 19331cb0ef41Sopenharmony_ci 19341cb0ef41Sopenharmony_ciA file descriptor ('fd') type was not valid. 19351cb0ef41Sopenharmony_ci 19361cb0ef41Sopenharmony_ci<a id="ERR_INVALID_FILE_URL_HOST"></a> 19371cb0ef41Sopenharmony_ci 19381cb0ef41Sopenharmony_ci### `ERR_INVALID_FILE_URL_HOST` 19391cb0ef41Sopenharmony_ci 19401cb0ef41Sopenharmony_ciA Node.js API that consumes `file:` URLs (such as certain functions in the 19411cb0ef41Sopenharmony_ci[`fs`][] module) encountered a file URL with an incompatible host. This 19421cb0ef41Sopenharmony_cisituation can only occur on Unix-like systems where only `localhost` or an empty 19431cb0ef41Sopenharmony_cihost is supported. 19441cb0ef41Sopenharmony_ci 19451cb0ef41Sopenharmony_ci<a id="ERR_INVALID_FILE_URL_PATH"></a> 19461cb0ef41Sopenharmony_ci 19471cb0ef41Sopenharmony_ci### `ERR_INVALID_FILE_URL_PATH` 19481cb0ef41Sopenharmony_ci 19491cb0ef41Sopenharmony_ciA Node.js API that consumes `file:` URLs (such as certain functions in the 19501cb0ef41Sopenharmony_ci[`fs`][] module) encountered a file URL with an incompatible path. The exact 19511cb0ef41Sopenharmony_cisemantics for determining whether a path can be used is platform-dependent. 19521cb0ef41Sopenharmony_ci 19531cb0ef41Sopenharmony_ci<a id="ERR_INVALID_HANDLE_TYPE"></a> 19541cb0ef41Sopenharmony_ci 19551cb0ef41Sopenharmony_ci### `ERR_INVALID_HANDLE_TYPE` 19561cb0ef41Sopenharmony_ci 19571cb0ef41Sopenharmony_ciAn attempt was made to send an unsupported "handle" over an IPC communication 19581cb0ef41Sopenharmony_cichannel to a child process. See [`subprocess.send()`][] and [`process.send()`][] 19591cb0ef41Sopenharmony_cifor more information. 19601cb0ef41Sopenharmony_ci 19611cb0ef41Sopenharmony_ci<a id="ERR_INVALID_HTTP_TOKEN"></a> 19621cb0ef41Sopenharmony_ci 19631cb0ef41Sopenharmony_ci### `ERR_INVALID_HTTP_TOKEN` 19641cb0ef41Sopenharmony_ci 19651cb0ef41Sopenharmony_ciAn invalid HTTP token was supplied. 19661cb0ef41Sopenharmony_ci 19671cb0ef41Sopenharmony_ci<a id="ERR_INVALID_IP_ADDRESS"></a> 19681cb0ef41Sopenharmony_ci 19691cb0ef41Sopenharmony_ci### `ERR_INVALID_IP_ADDRESS` 19701cb0ef41Sopenharmony_ci 19711cb0ef41Sopenharmony_ciAn IP address is not valid. 19721cb0ef41Sopenharmony_ci 19731cb0ef41Sopenharmony_ci<a id="ERR_INVALID_MIME_SYNTAX"></a> 19741cb0ef41Sopenharmony_ci 19751cb0ef41Sopenharmony_ci### `ERR_INVALID_MIME_SYNTAX` 19761cb0ef41Sopenharmony_ci 19771cb0ef41Sopenharmony_ciThe syntax of a MIME is not valid. 19781cb0ef41Sopenharmony_ci 19791cb0ef41Sopenharmony_ci<a id="ERR_INVALID_MODULE"></a> 19801cb0ef41Sopenharmony_ci 19811cb0ef41Sopenharmony_ci### `ERR_INVALID_MODULE` 19821cb0ef41Sopenharmony_ci 19831cb0ef41Sopenharmony_ci<!-- YAML 19841cb0ef41Sopenharmony_ciadded: 19851cb0ef41Sopenharmony_ci - v15.0.0 19861cb0ef41Sopenharmony_ci - v14.18.0 19871cb0ef41Sopenharmony_ci--> 19881cb0ef41Sopenharmony_ci 19891cb0ef41Sopenharmony_ciAn attempt was made to load a module that does not exist or was otherwise not 19901cb0ef41Sopenharmony_civalid. 19911cb0ef41Sopenharmony_ci 19921cb0ef41Sopenharmony_ci<a id="ERR_INVALID_MODULE_SPECIFIER"></a> 19931cb0ef41Sopenharmony_ci 19941cb0ef41Sopenharmony_ci### `ERR_INVALID_MODULE_SPECIFIER` 19951cb0ef41Sopenharmony_ci 19961cb0ef41Sopenharmony_ciThe imported module string is an invalid URL, package name, or package subpath 19971cb0ef41Sopenharmony_cispecifier. 19981cb0ef41Sopenharmony_ci 19991cb0ef41Sopenharmony_ci<a id="ERR_INVALID_OBJECT_DEFINE_PROPERTY"></a> 20001cb0ef41Sopenharmony_ci 20011cb0ef41Sopenharmony_ci### `ERR_INVALID_OBJECT_DEFINE_PROPERTY` 20021cb0ef41Sopenharmony_ci 20031cb0ef41Sopenharmony_ciAn error occurred while setting an invalid attribute on the property of 20041cb0ef41Sopenharmony_cian object. 20051cb0ef41Sopenharmony_ci 20061cb0ef41Sopenharmony_ci<a id="ERR_INVALID_PACKAGE_CONFIG"></a> 20071cb0ef41Sopenharmony_ci 20081cb0ef41Sopenharmony_ci### `ERR_INVALID_PACKAGE_CONFIG` 20091cb0ef41Sopenharmony_ci 20101cb0ef41Sopenharmony_ciAn invalid [`package.json`][] file failed parsing. 20111cb0ef41Sopenharmony_ci 20121cb0ef41Sopenharmony_ci<a id="ERR_INVALID_PACKAGE_TARGET"></a> 20131cb0ef41Sopenharmony_ci 20141cb0ef41Sopenharmony_ci### `ERR_INVALID_PACKAGE_TARGET` 20151cb0ef41Sopenharmony_ci 20161cb0ef41Sopenharmony_ciThe `package.json` [`"exports"`][] field contains an invalid target mapping 20171cb0ef41Sopenharmony_civalue for the attempted module resolution. 20181cb0ef41Sopenharmony_ci 20191cb0ef41Sopenharmony_ci<a id="ERR_INVALID_PERFORMANCE_MARK"></a> 20201cb0ef41Sopenharmony_ci 20211cb0ef41Sopenharmony_ci### `ERR_INVALID_PERFORMANCE_MARK` 20221cb0ef41Sopenharmony_ci 20231cb0ef41Sopenharmony_ciWhile using the Performance Timing API (`perf_hooks`), a performance mark is 20241cb0ef41Sopenharmony_ciinvalid. 20251cb0ef41Sopenharmony_ci 20261cb0ef41Sopenharmony_ci<a id="ERR_INVALID_PROTOCOL"></a> 20271cb0ef41Sopenharmony_ci 20281cb0ef41Sopenharmony_ci### `ERR_INVALID_PROTOCOL` 20291cb0ef41Sopenharmony_ci 20301cb0ef41Sopenharmony_ciAn invalid `options.protocol` was passed to `http.request()`. 20311cb0ef41Sopenharmony_ci 20321cb0ef41Sopenharmony_ci<a id="ERR_INVALID_REPL_EVAL_CONFIG"></a> 20331cb0ef41Sopenharmony_ci 20341cb0ef41Sopenharmony_ci### `ERR_INVALID_REPL_EVAL_CONFIG` 20351cb0ef41Sopenharmony_ci 20361cb0ef41Sopenharmony_ciBoth `breakEvalOnSigint` and `eval` options were set in the [`REPL`][] config, 20371cb0ef41Sopenharmony_ciwhich is not supported. 20381cb0ef41Sopenharmony_ci 20391cb0ef41Sopenharmony_ci<a id="ERR_INVALID_REPL_INPUT"></a> 20401cb0ef41Sopenharmony_ci 20411cb0ef41Sopenharmony_ci### `ERR_INVALID_REPL_INPUT` 20421cb0ef41Sopenharmony_ci 20431cb0ef41Sopenharmony_ciThe input may not be used in the [`REPL`][]. The conditions under which this 20441cb0ef41Sopenharmony_cierror is used are described in the [`REPL`][] documentation. 20451cb0ef41Sopenharmony_ci 20461cb0ef41Sopenharmony_ci<a id="ERR_INVALID_RETURN_PROPERTY"></a> 20471cb0ef41Sopenharmony_ci 20481cb0ef41Sopenharmony_ci### `ERR_INVALID_RETURN_PROPERTY` 20491cb0ef41Sopenharmony_ci 20501cb0ef41Sopenharmony_ciThrown in case a function option does not provide a valid value for one of its 20511cb0ef41Sopenharmony_cireturned object properties on execution. 20521cb0ef41Sopenharmony_ci 20531cb0ef41Sopenharmony_ci<a id="ERR_INVALID_RETURN_PROPERTY_VALUE"></a> 20541cb0ef41Sopenharmony_ci 20551cb0ef41Sopenharmony_ci### `ERR_INVALID_RETURN_PROPERTY_VALUE` 20561cb0ef41Sopenharmony_ci 20571cb0ef41Sopenharmony_ciThrown in case a function option does not provide an expected value 20581cb0ef41Sopenharmony_citype for one of its returned object properties on execution. 20591cb0ef41Sopenharmony_ci 20601cb0ef41Sopenharmony_ci<a id="ERR_INVALID_RETURN_VALUE"></a> 20611cb0ef41Sopenharmony_ci 20621cb0ef41Sopenharmony_ci### `ERR_INVALID_RETURN_VALUE` 20631cb0ef41Sopenharmony_ci 20641cb0ef41Sopenharmony_ciThrown in case a function option does not return an expected value 20651cb0ef41Sopenharmony_citype on execution, such as when a function is expected to return a promise. 20661cb0ef41Sopenharmony_ci 20671cb0ef41Sopenharmony_ci<a id="ERR_INVALID_STATE"></a> 20681cb0ef41Sopenharmony_ci 20691cb0ef41Sopenharmony_ci### `ERR_INVALID_STATE` 20701cb0ef41Sopenharmony_ci 20711cb0ef41Sopenharmony_ci<!-- YAML 20721cb0ef41Sopenharmony_ciadded: v15.0.0 20731cb0ef41Sopenharmony_ci--> 20741cb0ef41Sopenharmony_ci 20751cb0ef41Sopenharmony_ciIndicates that an operation cannot be completed due to an invalid state. 20761cb0ef41Sopenharmony_ciFor instance, an object may have already been destroyed, or may be 20771cb0ef41Sopenharmony_ciperforming another operation. 20781cb0ef41Sopenharmony_ci 20791cb0ef41Sopenharmony_ci<a id="ERR_INVALID_SYNC_FORK_INPUT"></a> 20801cb0ef41Sopenharmony_ci 20811cb0ef41Sopenharmony_ci### `ERR_INVALID_SYNC_FORK_INPUT` 20821cb0ef41Sopenharmony_ci 20831cb0ef41Sopenharmony_ciA `Buffer`, `TypedArray`, `DataView`, or `string` was provided as stdio input to 20841cb0ef41Sopenharmony_cian asynchronous fork. See the documentation for the [`child_process`][] module 20851cb0ef41Sopenharmony_cifor more information. 20861cb0ef41Sopenharmony_ci 20871cb0ef41Sopenharmony_ci<a id="ERR_INVALID_THIS"></a> 20881cb0ef41Sopenharmony_ci 20891cb0ef41Sopenharmony_ci### `ERR_INVALID_THIS` 20901cb0ef41Sopenharmony_ci 20911cb0ef41Sopenharmony_ciA Node.js API function was called with an incompatible `this` value. 20921cb0ef41Sopenharmony_ci 20931cb0ef41Sopenharmony_ci```js 20941cb0ef41Sopenharmony_ciconst urlSearchParams = new URLSearchParams('foo=bar&baz=new'); 20951cb0ef41Sopenharmony_ci 20961cb0ef41Sopenharmony_ciconst buf = Buffer.alloc(1); 20971cb0ef41Sopenharmony_ciurlSearchParams.has.call(buf, 'foo'); 20981cb0ef41Sopenharmony_ci// Throws a TypeError with code 'ERR_INVALID_THIS' 20991cb0ef41Sopenharmony_ci``` 21001cb0ef41Sopenharmony_ci 21011cb0ef41Sopenharmony_ci<a id="ERR_INVALID_TRANSFER_OBJECT"></a> 21021cb0ef41Sopenharmony_ci 21031cb0ef41Sopenharmony_ci### `ERR_INVALID_TRANSFER_OBJECT` 21041cb0ef41Sopenharmony_ci 21051cb0ef41Sopenharmony_ciAn invalid transfer object was passed to `postMessage()`. 21061cb0ef41Sopenharmony_ci 21071cb0ef41Sopenharmony_ci<a id="ERR_INVALID_TUPLE"></a> 21081cb0ef41Sopenharmony_ci 21091cb0ef41Sopenharmony_ci### `ERR_INVALID_TUPLE` 21101cb0ef41Sopenharmony_ci 21111cb0ef41Sopenharmony_ciAn element in the `iterable` provided to the [WHATWG][WHATWG URL API] 21121cb0ef41Sopenharmony_ci[`URLSearchParams` constructor][`new URLSearchParams(iterable)`] did not 21131cb0ef41Sopenharmony_cirepresent a `[name, value]` tuple – that is, if an element is not iterable, or 21141cb0ef41Sopenharmony_cidoes not consist of exactly two elements. 21151cb0ef41Sopenharmony_ci 21161cb0ef41Sopenharmony_ci<a id="ERR_INVALID_URI"></a> 21171cb0ef41Sopenharmony_ci 21181cb0ef41Sopenharmony_ci### `ERR_INVALID_URI` 21191cb0ef41Sopenharmony_ci 21201cb0ef41Sopenharmony_ciAn invalid URI was passed. 21211cb0ef41Sopenharmony_ci 21221cb0ef41Sopenharmony_ci<a id="ERR_INVALID_URL"></a> 21231cb0ef41Sopenharmony_ci 21241cb0ef41Sopenharmony_ci### `ERR_INVALID_URL` 21251cb0ef41Sopenharmony_ci 21261cb0ef41Sopenharmony_ciAn invalid URL was passed to the [WHATWG][WHATWG URL API] [`URL` 21271cb0ef41Sopenharmony_ciconstructor][`new URL(input)`] or the legacy [`url.parse()`][] to be parsed. 21281cb0ef41Sopenharmony_ciThe thrown error object typically has an additional property `'input'` that 21291cb0ef41Sopenharmony_cicontains the URL that failed to parse. 21301cb0ef41Sopenharmony_ci 21311cb0ef41Sopenharmony_ci<a id="ERR_INVALID_URL_SCHEME"></a> 21321cb0ef41Sopenharmony_ci 21331cb0ef41Sopenharmony_ci### `ERR_INVALID_URL_SCHEME` 21341cb0ef41Sopenharmony_ci 21351cb0ef41Sopenharmony_ciAn attempt was made to use a URL of an incompatible scheme (protocol) for a 21361cb0ef41Sopenharmony_cispecific purpose. It is only used in the [WHATWG URL API][] support in the 21371cb0ef41Sopenharmony_ci[`fs`][] module (which only accepts URLs with `'file'` scheme), but may be used 21381cb0ef41Sopenharmony_ciin other Node.js APIs as well in the future. 21391cb0ef41Sopenharmony_ci 21401cb0ef41Sopenharmony_ci<a id="ERR_IPC_CHANNEL_CLOSED"></a> 21411cb0ef41Sopenharmony_ci 21421cb0ef41Sopenharmony_ci### `ERR_IPC_CHANNEL_CLOSED` 21431cb0ef41Sopenharmony_ci 21441cb0ef41Sopenharmony_ciAn attempt was made to use an IPC communication channel that was already closed. 21451cb0ef41Sopenharmony_ci 21461cb0ef41Sopenharmony_ci<a id="ERR_IPC_DISCONNECTED"></a> 21471cb0ef41Sopenharmony_ci 21481cb0ef41Sopenharmony_ci### `ERR_IPC_DISCONNECTED` 21491cb0ef41Sopenharmony_ci 21501cb0ef41Sopenharmony_ciAn attempt was made to disconnect an IPC communication channel that was already 21511cb0ef41Sopenharmony_cidisconnected. See the documentation for the [`child_process`][] module 21521cb0ef41Sopenharmony_cifor more information. 21531cb0ef41Sopenharmony_ci 21541cb0ef41Sopenharmony_ci<a id="ERR_IPC_ONE_PIPE"></a> 21551cb0ef41Sopenharmony_ci 21561cb0ef41Sopenharmony_ci### `ERR_IPC_ONE_PIPE` 21571cb0ef41Sopenharmony_ci 21581cb0ef41Sopenharmony_ciAn attempt was made to create a child Node.js process using more than one IPC 21591cb0ef41Sopenharmony_cicommunication channel. See the documentation for the [`child_process`][] module 21601cb0ef41Sopenharmony_cifor more information. 21611cb0ef41Sopenharmony_ci 21621cb0ef41Sopenharmony_ci<a id="ERR_IPC_SYNC_FORK"></a> 21631cb0ef41Sopenharmony_ci 21641cb0ef41Sopenharmony_ci### `ERR_IPC_SYNC_FORK` 21651cb0ef41Sopenharmony_ci 21661cb0ef41Sopenharmony_ciAn attempt was made to open an IPC communication channel with a synchronously 21671cb0ef41Sopenharmony_ciforked Node.js process. See the documentation for the [`child_process`][] module 21681cb0ef41Sopenharmony_cifor more information. 21691cb0ef41Sopenharmony_ci 21701cb0ef41Sopenharmony_ci<a id="ERR_LOADER_CHAIN_INCOMPLETE"></a> 21711cb0ef41Sopenharmony_ci 21721cb0ef41Sopenharmony_ci### `ERR_LOADER_CHAIN_INCOMPLETE` 21731cb0ef41Sopenharmony_ci 21741cb0ef41Sopenharmony_ci<!-- YAML 21751cb0ef41Sopenharmony_ciadded: v18.6.0 21761cb0ef41Sopenharmony_ci--> 21771cb0ef41Sopenharmony_ci 21781cb0ef41Sopenharmony_ciAn ESM loader hook returned without calling `next()` and without explicitly 21791cb0ef41Sopenharmony_cisignaling a short circuit. 21801cb0ef41Sopenharmony_ci 21811cb0ef41Sopenharmony_ci<a id="ERR_MANIFEST_ASSERT_INTEGRITY"></a> 21821cb0ef41Sopenharmony_ci 21831cb0ef41Sopenharmony_ci### `ERR_MANIFEST_ASSERT_INTEGRITY` 21841cb0ef41Sopenharmony_ci 21851cb0ef41Sopenharmony_ciAn attempt was made to load a resource, but the resource did not match the 21861cb0ef41Sopenharmony_ciintegrity defined by the policy manifest. See the documentation for [policy][] 21871cb0ef41Sopenharmony_cimanifests for more information. 21881cb0ef41Sopenharmony_ci 21891cb0ef41Sopenharmony_ci<a id="ERR_MANIFEST_DEPENDENCY_MISSING"></a> 21901cb0ef41Sopenharmony_ci 21911cb0ef41Sopenharmony_ci### `ERR_MANIFEST_DEPENDENCY_MISSING` 21921cb0ef41Sopenharmony_ci 21931cb0ef41Sopenharmony_ciAn attempt was made to load a resource, but the resource was not listed as a 21941cb0ef41Sopenharmony_cidependency from the location that attempted to load it. See the documentation 21951cb0ef41Sopenharmony_cifor [policy][] manifests for more information. 21961cb0ef41Sopenharmony_ci 21971cb0ef41Sopenharmony_ci<a id="ERR_MANIFEST_INTEGRITY_MISMATCH"></a> 21981cb0ef41Sopenharmony_ci 21991cb0ef41Sopenharmony_ci### `ERR_MANIFEST_INTEGRITY_MISMATCH` 22001cb0ef41Sopenharmony_ci 22011cb0ef41Sopenharmony_ciAn attempt was made to load a policy manifest, but the manifest had multiple 22021cb0ef41Sopenharmony_cientries for a resource which did not match each other. Update the manifest 22031cb0ef41Sopenharmony_cientries to match in order to resolve this error. See the documentation for 22041cb0ef41Sopenharmony_ci[policy][] manifests for more information. 22051cb0ef41Sopenharmony_ci 22061cb0ef41Sopenharmony_ci<a id="ERR_MANIFEST_INVALID_RESOURCE_FIELD"></a> 22071cb0ef41Sopenharmony_ci 22081cb0ef41Sopenharmony_ci### `ERR_MANIFEST_INVALID_RESOURCE_FIELD` 22091cb0ef41Sopenharmony_ci 22101cb0ef41Sopenharmony_ciA policy manifest resource had an invalid value for one of its fields. Update 22111cb0ef41Sopenharmony_cithe manifest entry to match in order to resolve this error. See the 22121cb0ef41Sopenharmony_cidocumentation for [policy][] manifests for more information. 22131cb0ef41Sopenharmony_ci 22141cb0ef41Sopenharmony_ci<a id="ERR_MANIFEST_INVALID_SPECIFIER"></a> 22151cb0ef41Sopenharmony_ci 22161cb0ef41Sopenharmony_ci### `ERR_MANIFEST_INVALID_SPECIFIER` 22171cb0ef41Sopenharmony_ci 22181cb0ef41Sopenharmony_ciA policy manifest resource had an invalid value for one of its dependency 22191cb0ef41Sopenharmony_cimappings. Update the manifest entry to match to resolve this error. See the 22201cb0ef41Sopenharmony_cidocumentation for [policy][] manifests for more information. 22211cb0ef41Sopenharmony_ci 22221cb0ef41Sopenharmony_ci<a id="ERR_MANIFEST_PARSE_POLICY"></a> 22231cb0ef41Sopenharmony_ci 22241cb0ef41Sopenharmony_ci### `ERR_MANIFEST_PARSE_POLICY` 22251cb0ef41Sopenharmony_ci 22261cb0ef41Sopenharmony_ciAn attempt was made to load a policy manifest, but the manifest was unable to 22271cb0ef41Sopenharmony_cibe parsed. See the documentation for [policy][] manifests for more information. 22281cb0ef41Sopenharmony_ci 22291cb0ef41Sopenharmony_ci<a id="ERR_MANIFEST_TDZ"></a> 22301cb0ef41Sopenharmony_ci 22311cb0ef41Sopenharmony_ci### `ERR_MANIFEST_TDZ` 22321cb0ef41Sopenharmony_ci 22331cb0ef41Sopenharmony_ciAn attempt was made to read from a policy manifest, but the manifest 22341cb0ef41Sopenharmony_ciinitialization has not yet taken place. This is likely a bug in Node.js. 22351cb0ef41Sopenharmony_ci 22361cb0ef41Sopenharmony_ci<a id="ERR_MANIFEST_UNKNOWN_ONERROR"></a> 22371cb0ef41Sopenharmony_ci 22381cb0ef41Sopenharmony_ci### `ERR_MANIFEST_UNKNOWN_ONERROR` 22391cb0ef41Sopenharmony_ci 22401cb0ef41Sopenharmony_ciA policy manifest was loaded, but had an unknown value for its "onerror" 22411cb0ef41Sopenharmony_cibehavior. See the documentation for [policy][] manifests for more information. 22421cb0ef41Sopenharmony_ci 22431cb0ef41Sopenharmony_ci<a id="ERR_MEMORY_ALLOCATION_FAILED"></a> 22441cb0ef41Sopenharmony_ci 22451cb0ef41Sopenharmony_ci### `ERR_MEMORY_ALLOCATION_FAILED` 22461cb0ef41Sopenharmony_ci 22471cb0ef41Sopenharmony_ciAn attempt was made to allocate memory (usually in the C++ layer) but it 22481cb0ef41Sopenharmony_cifailed. 22491cb0ef41Sopenharmony_ci 22501cb0ef41Sopenharmony_ci<a id="ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE"></a> 22511cb0ef41Sopenharmony_ci 22521cb0ef41Sopenharmony_ci### `ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE` 22531cb0ef41Sopenharmony_ci 22541cb0ef41Sopenharmony_ci<!-- YAML 22551cb0ef41Sopenharmony_ciadded: 22561cb0ef41Sopenharmony_ci - v14.5.0 22571cb0ef41Sopenharmony_ci - v12.19.0 22581cb0ef41Sopenharmony_ci--> 22591cb0ef41Sopenharmony_ci 22601cb0ef41Sopenharmony_ciA message posted to a [`MessagePort`][] could not be deserialized in the target 22611cb0ef41Sopenharmony_ci[vm][] `Context`. Not all Node.js objects can be successfully instantiated in 22621cb0ef41Sopenharmony_ciany context at this time, and attempting to transfer them using `postMessage()` 22631cb0ef41Sopenharmony_cican fail on the receiving side in that case. 22641cb0ef41Sopenharmony_ci 22651cb0ef41Sopenharmony_ci<a id="ERR_METHOD_NOT_IMPLEMENTED"></a> 22661cb0ef41Sopenharmony_ci 22671cb0ef41Sopenharmony_ci### `ERR_METHOD_NOT_IMPLEMENTED` 22681cb0ef41Sopenharmony_ci 22691cb0ef41Sopenharmony_ciA method is required but not implemented. 22701cb0ef41Sopenharmony_ci 22711cb0ef41Sopenharmony_ci<a id="ERR_MISSING_ARGS"></a> 22721cb0ef41Sopenharmony_ci 22731cb0ef41Sopenharmony_ci### `ERR_MISSING_ARGS` 22741cb0ef41Sopenharmony_ci 22751cb0ef41Sopenharmony_ciA required argument of a Node.js API was not passed. This is only used for 22761cb0ef41Sopenharmony_cistrict compliance with the API specification (which in some cases may accept 22771cb0ef41Sopenharmony_ci`func(undefined)` but not `func()`). In most native Node.js APIs, 22781cb0ef41Sopenharmony_ci`func(undefined)` and `func()` are treated identically, and the 22791cb0ef41Sopenharmony_ci[`ERR_INVALID_ARG_TYPE`][] error code may be used instead. 22801cb0ef41Sopenharmony_ci 22811cb0ef41Sopenharmony_ci<a id="ERR_MISSING_OPTION"></a> 22821cb0ef41Sopenharmony_ci 22831cb0ef41Sopenharmony_ci### `ERR_MISSING_OPTION` 22841cb0ef41Sopenharmony_ci 22851cb0ef41Sopenharmony_ciFor APIs that accept options objects, some options might be mandatory. This code 22861cb0ef41Sopenharmony_ciis thrown if a required option is missing. 22871cb0ef41Sopenharmony_ci 22881cb0ef41Sopenharmony_ci<a id="ERR_MISSING_PASSPHRASE"></a> 22891cb0ef41Sopenharmony_ci 22901cb0ef41Sopenharmony_ci### `ERR_MISSING_PASSPHRASE` 22911cb0ef41Sopenharmony_ci 22921cb0ef41Sopenharmony_ciAn attempt was made to read an encrypted key without specifying a passphrase. 22931cb0ef41Sopenharmony_ci 22941cb0ef41Sopenharmony_ci<a id="ERR_MISSING_PLATFORM_FOR_WORKER"></a> 22951cb0ef41Sopenharmony_ci 22961cb0ef41Sopenharmony_ci### `ERR_MISSING_PLATFORM_FOR_WORKER` 22971cb0ef41Sopenharmony_ci 22981cb0ef41Sopenharmony_ciThe V8 platform used by this instance of Node.js does not support creating 22991cb0ef41Sopenharmony_ciWorkers. This is caused by lack of embedder support for Workers. In particular, 23001cb0ef41Sopenharmony_cithis error will not occur with standard builds of Node.js. 23011cb0ef41Sopenharmony_ci 23021cb0ef41Sopenharmony_ci<a id="ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST"></a> 23031cb0ef41Sopenharmony_ci 23041cb0ef41Sopenharmony_ci### `ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST` 23051cb0ef41Sopenharmony_ci 23061cb0ef41Sopenharmony_ci<!-- YAML 23071cb0ef41Sopenharmony_ciadded: v15.0.0 23081cb0ef41Sopenharmony_ci--> 23091cb0ef41Sopenharmony_ci 23101cb0ef41Sopenharmony_ciAn object that needs to be explicitly listed in the `transferList` argument 23111cb0ef41Sopenharmony_ciis in the object passed to a [`postMessage()`][] call, but is not provided 23121cb0ef41Sopenharmony_ciin the `transferList` for that call. Usually, this is a `MessagePort`. 23131cb0ef41Sopenharmony_ci 23141cb0ef41Sopenharmony_ciIn Node.js versions prior to v15.0.0, the error code being used here was 23151cb0ef41Sopenharmony_ci[`ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST`][]. However, the set of 23161cb0ef41Sopenharmony_citransferable object types has been expanded to cover more types than 23171cb0ef41Sopenharmony_ci`MessagePort`. 23181cb0ef41Sopenharmony_ci 23191cb0ef41Sopenharmony_ci<a id="ERR_MODULE_NOT_FOUND"></a> 23201cb0ef41Sopenharmony_ci 23211cb0ef41Sopenharmony_ci### `ERR_MODULE_NOT_FOUND` 23221cb0ef41Sopenharmony_ci 23231cb0ef41Sopenharmony_ciA module file could not be resolved by the ECMAScript modules loader while 23241cb0ef41Sopenharmony_ciattempting an `import` operation or when loading the program entry point. 23251cb0ef41Sopenharmony_ci 23261cb0ef41Sopenharmony_ci<a id="ERR_MULTIPLE_CALLBACK"></a> 23271cb0ef41Sopenharmony_ci 23281cb0ef41Sopenharmony_ci### `ERR_MULTIPLE_CALLBACK` 23291cb0ef41Sopenharmony_ci 23301cb0ef41Sopenharmony_ciA callback was called more than once. 23311cb0ef41Sopenharmony_ci 23321cb0ef41Sopenharmony_ciA callback is almost always meant to only be called once as the query 23331cb0ef41Sopenharmony_cican either be fulfilled or rejected but not both at the same time. The latter 23341cb0ef41Sopenharmony_ciwould be possible by calling a callback more than once. 23351cb0ef41Sopenharmony_ci 23361cb0ef41Sopenharmony_ci<a id="ERR_NAPI_CONS_FUNCTION"></a> 23371cb0ef41Sopenharmony_ci 23381cb0ef41Sopenharmony_ci### `ERR_NAPI_CONS_FUNCTION` 23391cb0ef41Sopenharmony_ci 23401cb0ef41Sopenharmony_ciWhile using `Node-API`, a constructor passed was not a function. 23411cb0ef41Sopenharmony_ci 23421cb0ef41Sopenharmony_ci<a id="ERR_NAPI_INVALID_DATAVIEW_ARGS"></a> 23431cb0ef41Sopenharmony_ci 23441cb0ef41Sopenharmony_ci### `ERR_NAPI_INVALID_DATAVIEW_ARGS` 23451cb0ef41Sopenharmony_ci 23461cb0ef41Sopenharmony_ciWhile calling `napi_create_dataview()`, a given `offset` was outside the bounds 23471cb0ef41Sopenharmony_ciof the dataview or `offset + length` was larger than a length of given `buffer`. 23481cb0ef41Sopenharmony_ci 23491cb0ef41Sopenharmony_ci<a id="ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT"></a> 23501cb0ef41Sopenharmony_ci 23511cb0ef41Sopenharmony_ci### `ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT` 23521cb0ef41Sopenharmony_ci 23531cb0ef41Sopenharmony_ciWhile calling `napi_create_typedarray()`, the provided `offset` was not a 23541cb0ef41Sopenharmony_cimultiple of the element size. 23551cb0ef41Sopenharmony_ci 23561cb0ef41Sopenharmony_ci<a id="ERR_NAPI_INVALID_TYPEDARRAY_LENGTH"></a> 23571cb0ef41Sopenharmony_ci 23581cb0ef41Sopenharmony_ci### `ERR_NAPI_INVALID_TYPEDARRAY_LENGTH` 23591cb0ef41Sopenharmony_ci 23601cb0ef41Sopenharmony_ciWhile calling `napi_create_typedarray()`, `(length * size_of_element) + 23611cb0ef41Sopenharmony_cibyte_offset` was larger than the length of given `buffer`. 23621cb0ef41Sopenharmony_ci 23631cb0ef41Sopenharmony_ci<a id="ERR_NAPI_TSFN_CALL_JS"></a> 23641cb0ef41Sopenharmony_ci 23651cb0ef41Sopenharmony_ci### `ERR_NAPI_TSFN_CALL_JS` 23661cb0ef41Sopenharmony_ci 23671cb0ef41Sopenharmony_ciAn error occurred while invoking the JavaScript portion of the thread-safe 23681cb0ef41Sopenharmony_cifunction. 23691cb0ef41Sopenharmony_ci 23701cb0ef41Sopenharmony_ci<a id="ERR_NAPI_TSFN_GET_UNDEFINED"></a> 23711cb0ef41Sopenharmony_ci 23721cb0ef41Sopenharmony_ci### `ERR_NAPI_TSFN_GET_UNDEFINED` 23731cb0ef41Sopenharmony_ci 23741cb0ef41Sopenharmony_ciAn error occurred while attempting to retrieve the JavaScript `undefined` 23751cb0ef41Sopenharmony_civalue. 23761cb0ef41Sopenharmony_ci 23771cb0ef41Sopenharmony_ci<a id="ERR_NAPI_TSFN_START_IDLE_LOOP"></a> 23781cb0ef41Sopenharmony_ci 23791cb0ef41Sopenharmony_ci### `ERR_NAPI_TSFN_START_IDLE_LOOP` 23801cb0ef41Sopenharmony_ci 23811cb0ef41Sopenharmony_ciOn the main thread, values are removed from the queue associated with the 23821cb0ef41Sopenharmony_cithread-safe function in an idle loop. This error indicates that an error 23831cb0ef41Sopenharmony_cihas occurred when attempting to start the loop. 23841cb0ef41Sopenharmony_ci 23851cb0ef41Sopenharmony_ci<a id="ERR_NAPI_TSFN_STOP_IDLE_LOOP"></a> 23861cb0ef41Sopenharmony_ci 23871cb0ef41Sopenharmony_ci### `ERR_NAPI_TSFN_STOP_IDLE_LOOP` 23881cb0ef41Sopenharmony_ci 23891cb0ef41Sopenharmony_ciOnce no more items are left in the queue, the idle loop must be suspended. This 23901cb0ef41Sopenharmony_cierror indicates that the idle loop has failed to stop. 23911cb0ef41Sopenharmony_ci 23921cb0ef41Sopenharmony_ci<a id="ERR_NOT_BUILDING_SNAPSHOT"></a> 23931cb0ef41Sopenharmony_ci 23941cb0ef41Sopenharmony_ci### `ERR_NOT_BUILDING_SNAPSHOT` 23951cb0ef41Sopenharmony_ci 23961cb0ef41Sopenharmony_ciAn attempt was made to use operations that can only be used when building 23971cb0ef41Sopenharmony_ciV8 startup snapshot even though Node.js isn't building one. 23981cb0ef41Sopenharmony_ci 23991cb0ef41Sopenharmony_ci<a id="ERR_NO_CRYPTO"></a> 24001cb0ef41Sopenharmony_ci 24011cb0ef41Sopenharmony_ci### `ERR_NO_CRYPTO` 24021cb0ef41Sopenharmony_ci 24031cb0ef41Sopenharmony_ciAn attempt was made to use crypto features while Node.js was not compiled with 24041cb0ef41Sopenharmony_ciOpenSSL crypto support. 24051cb0ef41Sopenharmony_ci 24061cb0ef41Sopenharmony_ci<a id="ERR_NO_ICU"></a> 24071cb0ef41Sopenharmony_ci 24081cb0ef41Sopenharmony_ci### `ERR_NO_ICU` 24091cb0ef41Sopenharmony_ci 24101cb0ef41Sopenharmony_ciAn attempt was made to use features that require [ICU][], but Node.js was not 24111cb0ef41Sopenharmony_cicompiled with ICU support. 24121cb0ef41Sopenharmony_ci 24131cb0ef41Sopenharmony_ci<a id="ERR_NON_CONTEXT_AWARE_DISABLED"></a> 24141cb0ef41Sopenharmony_ci 24151cb0ef41Sopenharmony_ci### `ERR_NON_CONTEXT_AWARE_DISABLED` 24161cb0ef41Sopenharmony_ci 24171cb0ef41Sopenharmony_ciA non-context-aware native addon was loaded in a process that disallows them. 24181cb0ef41Sopenharmony_ci 24191cb0ef41Sopenharmony_ci<a id="ERR_OUT_OF_RANGE"></a> 24201cb0ef41Sopenharmony_ci 24211cb0ef41Sopenharmony_ci### `ERR_OUT_OF_RANGE` 24221cb0ef41Sopenharmony_ci 24231cb0ef41Sopenharmony_ciA given value is out of the accepted range. 24241cb0ef41Sopenharmony_ci 24251cb0ef41Sopenharmony_ci<a id="ERR_PACKAGE_IMPORT_NOT_DEFINED"></a> 24261cb0ef41Sopenharmony_ci 24271cb0ef41Sopenharmony_ci### `ERR_PACKAGE_IMPORT_NOT_DEFINED` 24281cb0ef41Sopenharmony_ci 24291cb0ef41Sopenharmony_ciThe `package.json` [`"imports"`][] field does not define the given internal 24301cb0ef41Sopenharmony_cipackage specifier mapping. 24311cb0ef41Sopenharmony_ci 24321cb0ef41Sopenharmony_ci<a id="ERR_PACKAGE_PATH_NOT_EXPORTED"></a> 24331cb0ef41Sopenharmony_ci 24341cb0ef41Sopenharmony_ci### `ERR_PACKAGE_PATH_NOT_EXPORTED` 24351cb0ef41Sopenharmony_ci 24361cb0ef41Sopenharmony_ciThe `package.json` [`"exports"`][] field does not export the requested subpath. 24371cb0ef41Sopenharmony_ciBecause exports are encapsulated, private internal modules that are not exported 24381cb0ef41Sopenharmony_cicannot be imported through the package resolution, unless using an absolute URL. 24391cb0ef41Sopenharmony_ci 24401cb0ef41Sopenharmony_ci<a id="ERR_PARSE_ARGS_INVALID_OPTION_VALUE"></a> 24411cb0ef41Sopenharmony_ci 24421cb0ef41Sopenharmony_ci### `ERR_PARSE_ARGS_INVALID_OPTION_VALUE` 24431cb0ef41Sopenharmony_ci 24441cb0ef41Sopenharmony_ci<!-- YAML 24451cb0ef41Sopenharmony_ciadded: v18.3.0 24461cb0ef41Sopenharmony_ci--> 24471cb0ef41Sopenharmony_ci 24481cb0ef41Sopenharmony_ciWhen `strict` set to `true`, thrown by [`util.parseArgs()`][] if a {boolean} 24491cb0ef41Sopenharmony_civalue is provided for an option of type {string}, or if a {string} 24501cb0ef41Sopenharmony_civalue is provided for an option of type {boolean}. 24511cb0ef41Sopenharmony_ci 24521cb0ef41Sopenharmony_ci<a id="ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL"></a> 24531cb0ef41Sopenharmony_ci 24541cb0ef41Sopenharmony_ci### `ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL` 24551cb0ef41Sopenharmony_ci 24561cb0ef41Sopenharmony_ci<!-- YAML 24571cb0ef41Sopenharmony_ciadded: v18.3.0 24581cb0ef41Sopenharmony_ci--> 24591cb0ef41Sopenharmony_ci 24601cb0ef41Sopenharmony_ciThrown by [`util.parseArgs()`][], when a positional argument is provided and 24611cb0ef41Sopenharmony_ci`allowPositionals` is set to `false`. 24621cb0ef41Sopenharmony_ci 24631cb0ef41Sopenharmony_ci<a id="ERR_PARSE_ARGS_UNKNOWN_OPTION"></a> 24641cb0ef41Sopenharmony_ci 24651cb0ef41Sopenharmony_ci### `ERR_PARSE_ARGS_UNKNOWN_OPTION` 24661cb0ef41Sopenharmony_ci 24671cb0ef41Sopenharmony_ci<!-- YAML 24681cb0ef41Sopenharmony_ciadded: v18.3.0 24691cb0ef41Sopenharmony_ci--> 24701cb0ef41Sopenharmony_ci 24711cb0ef41Sopenharmony_ciWhen `strict` set to `true`, thrown by [`util.parseArgs()`][] if an argument 24721cb0ef41Sopenharmony_ciis not configured in `options`. 24731cb0ef41Sopenharmony_ci 24741cb0ef41Sopenharmony_ci<a id="ERR_PERFORMANCE_INVALID_TIMESTAMP"></a> 24751cb0ef41Sopenharmony_ci 24761cb0ef41Sopenharmony_ci### `ERR_PERFORMANCE_INVALID_TIMESTAMP` 24771cb0ef41Sopenharmony_ci 24781cb0ef41Sopenharmony_ciAn invalid timestamp value was provided for a performance mark or measure. 24791cb0ef41Sopenharmony_ci 24801cb0ef41Sopenharmony_ci<a id="ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS"></a> 24811cb0ef41Sopenharmony_ci 24821cb0ef41Sopenharmony_ci### `ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS` 24831cb0ef41Sopenharmony_ci 24841cb0ef41Sopenharmony_ciInvalid options were provided for a performance measure. 24851cb0ef41Sopenharmony_ci 24861cb0ef41Sopenharmony_ci<a id="ERR_PROTO_ACCESS"></a> 24871cb0ef41Sopenharmony_ci 24881cb0ef41Sopenharmony_ci### `ERR_PROTO_ACCESS` 24891cb0ef41Sopenharmony_ci 24901cb0ef41Sopenharmony_ciAccessing `Object.prototype.__proto__` has been forbidden using 24911cb0ef41Sopenharmony_ci[`--disable-proto=throw`][]. [`Object.getPrototypeOf`][] and 24921cb0ef41Sopenharmony_ci[`Object.setPrototypeOf`][] should be used to get and set the prototype of an 24931cb0ef41Sopenharmony_ciobject. 24941cb0ef41Sopenharmony_ci 24951cb0ef41Sopenharmony_ci<a id="ERR_REQUIRE_ESM"></a> 24961cb0ef41Sopenharmony_ci 24971cb0ef41Sopenharmony_ci### `ERR_REQUIRE_ESM` 24981cb0ef41Sopenharmony_ci 24991cb0ef41Sopenharmony_ci> Stability: 1 - Experimental 25001cb0ef41Sopenharmony_ci 25011cb0ef41Sopenharmony_ciAn attempt was made to `require()` an [ES Module][]. 25021cb0ef41Sopenharmony_ci 25031cb0ef41Sopenharmony_ci<a id="ERR_SCRIPT_EXECUTION_INTERRUPTED"></a> 25041cb0ef41Sopenharmony_ci 25051cb0ef41Sopenharmony_ci### `ERR_SCRIPT_EXECUTION_INTERRUPTED` 25061cb0ef41Sopenharmony_ci 25071cb0ef41Sopenharmony_ciScript execution was interrupted by `SIGINT` (For 25081cb0ef41Sopenharmony_ciexample, <kbd>Ctrl</kbd>+<kbd>C</kbd> was pressed.) 25091cb0ef41Sopenharmony_ci 25101cb0ef41Sopenharmony_ci<a id="ERR_SCRIPT_EXECUTION_TIMEOUT"></a> 25111cb0ef41Sopenharmony_ci 25121cb0ef41Sopenharmony_ci### `ERR_SCRIPT_EXECUTION_TIMEOUT` 25131cb0ef41Sopenharmony_ci 25141cb0ef41Sopenharmony_ciScript execution timed out, possibly due to bugs in the script being executed. 25151cb0ef41Sopenharmony_ci 25161cb0ef41Sopenharmony_ci<a id="ERR_SERVER_ALREADY_LISTEN"></a> 25171cb0ef41Sopenharmony_ci 25181cb0ef41Sopenharmony_ci### `ERR_SERVER_ALREADY_LISTEN` 25191cb0ef41Sopenharmony_ci 25201cb0ef41Sopenharmony_ciThe [`server.listen()`][] method was called while a `net.Server` was already 25211cb0ef41Sopenharmony_cilistening. This applies to all instances of `net.Server`, including HTTP, HTTPS, 25221cb0ef41Sopenharmony_ciand HTTP/2 `Server` instances. 25231cb0ef41Sopenharmony_ci 25241cb0ef41Sopenharmony_ci<a id="ERR_SERVER_NOT_RUNNING"></a> 25251cb0ef41Sopenharmony_ci 25261cb0ef41Sopenharmony_ci### `ERR_SERVER_NOT_RUNNING` 25271cb0ef41Sopenharmony_ci 25281cb0ef41Sopenharmony_ciThe [`server.close()`][] method was called when a `net.Server` was not 25291cb0ef41Sopenharmony_cirunning. This applies to all instances of `net.Server`, including HTTP, HTTPS, 25301cb0ef41Sopenharmony_ciand HTTP/2 `Server` instances. 25311cb0ef41Sopenharmony_ci 25321cb0ef41Sopenharmony_ci<a id="ERR_SOCKET_ALREADY_BOUND"></a> 25331cb0ef41Sopenharmony_ci 25341cb0ef41Sopenharmony_ci### `ERR_SOCKET_ALREADY_BOUND` 25351cb0ef41Sopenharmony_ci 25361cb0ef41Sopenharmony_ciAn attempt was made to bind a socket that has already been bound. 25371cb0ef41Sopenharmony_ci 25381cb0ef41Sopenharmony_ci<a id="ERR_SOCKET_BAD_BUFFER_SIZE"></a> 25391cb0ef41Sopenharmony_ci 25401cb0ef41Sopenharmony_ci### `ERR_SOCKET_BAD_BUFFER_SIZE` 25411cb0ef41Sopenharmony_ci 25421cb0ef41Sopenharmony_ciAn invalid (negative) size was passed for either the `recvBufferSize` or 25431cb0ef41Sopenharmony_ci`sendBufferSize` options in [`dgram.createSocket()`][]. 25441cb0ef41Sopenharmony_ci 25451cb0ef41Sopenharmony_ci<a id="ERR_SOCKET_BAD_PORT"></a> 25461cb0ef41Sopenharmony_ci 25471cb0ef41Sopenharmony_ci### `ERR_SOCKET_BAD_PORT` 25481cb0ef41Sopenharmony_ci 25491cb0ef41Sopenharmony_ciAn API function expecting a port >= 0 and < 65536 received an invalid value. 25501cb0ef41Sopenharmony_ci 25511cb0ef41Sopenharmony_ci<a id="ERR_SOCKET_BAD_TYPE"></a> 25521cb0ef41Sopenharmony_ci 25531cb0ef41Sopenharmony_ci### `ERR_SOCKET_BAD_TYPE` 25541cb0ef41Sopenharmony_ci 25551cb0ef41Sopenharmony_ciAn API function expecting a socket type (`udp4` or `udp6`) received an invalid 25561cb0ef41Sopenharmony_civalue. 25571cb0ef41Sopenharmony_ci 25581cb0ef41Sopenharmony_ci<a id="ERR_SOCKET_BUFFER_SIZE"></a> 25591cb0ef41Sopenharmony_ci 25601cb0ef41Sopenharmony_ci### `ERR_SOCKET_BUFFER_SIZE` 25611cb0ef41Sopenharmony_ci 25621cb0ef41Sopenharmony_ciWhile using [`dgram.createSocket()`][], the size of the receive or send `Buffer` 25631cb0ef41Sopenharmony_cicould not be determined. 25641cb0ef41Sopenharmony_ci 25651cb0ef41Sopenharmony_ci<a id="ERR_SOCKET_CLOSED"></a> 25661cb0ef41Sopenharmony_ci 25671cb0ef41Sopenharmony_ci### `ERR_SOCKET_CLOSED` 25681cb0ef41Sopenharmony_ci 25691cb0ef41Sopenharmony_ciAn attempt was made to operate on an already closed socket. 25701cb0ef41Sopenharmony_ci 25711cb0ef41Sopenharmony_ci<a id="ERR_SOCKET_CLOSED_BEFORE_CONNECTION"></a> 25721cb0ef41Sopenharmony_ci 25731cb0ef41Sopenharmony_ci### `ERR_SOCKET_CLOSED_BEFORE_CONNECTION` 25741cb0ef41Sopenharmony_ci 25751cb0ef41Sopenharmony_ciWhen calling [`net.Socket.write()`][] on a connecting socket and the socket was 25761cb0ef41Sopenharmony_ciclosed before the connection was established. 25771cb0ef41Sopenharmony_ci 25781cb0ef41Sopenharmony_ci<a id="ERR_SOCKET_DGRAM_IS_CONNECTED"></a> 25791cb0ef41Sopenharmony_ci 25801cb0ef41Sopenharmony_ci### `ERR_SOCKET_DGRAM_IS_CONNECTED` 25811cb0ef41Sopenharmony_ci 25821cb0ef41Sopenharmony_ciA [`dgram.connect()`][] call was made on an already connected socket. 25831cb0ef41Sopenharmony_ci 25841cb0ef41Sopenharmony_ci<a id="ERR_SOCKET_DGRAM_NOT_CONNECTED"></a> 25851cb0ef41Sopenharmony_ci 25861cb0ef41Sopenharmony_ci### `ERR_SOCKET_DGRAM_NOT_CONNECTED` 25871cb0ef41Sopenharmony_ci 25881cb0ef41Sopenharmony_ciA [`dgram.disconnect()`][] or [`dgram.remoteAddress()`][] call was made on a 25891cb0ef41Sopenharmony_cidisconnected socket. 25901cb0ef41Sopenharmony_ci 25911cb0ef41Sopenharmony_ci<a id="ERR_SOCKET_DGRAM_NOT_RUNNING"></a> 25921cb0ef41Sopenharmony_ci 25931cb0ef41Sopenharmony_ci### `ERR_SOCKET_DGRAM_NOT_RUNNING` 25941cb0ef41Sopenharmony_ci 25951cb0ef41Sopenharmony_ciA call was made and the UDP subsystem was not running. 25961cb0ef41Sopenharmony_ci 25971cb0ef41Sopenharmony_ci<a id="ERR_SRI_PARSE"></a> 25981cb0ef41Sopenharmony_ci 25991cb0ef41Sopenharmony_ci### `ERR_SRI_PARSE` 26001cb0ef41Sopenharmony_ci 26011cb0ef41Sopenharmony_ciA string was provided for a Subresource Integrity check, but was unable to be 26021cb0ef41Sopenharmony_ciparsed. Check the format of integrity attributes by looking at the 26031cb0ef41Sopenharmony_ci[Subresource Integrity specification][]. 26041cb0ef41Sopenharmony_ci 26051cb0ef41Sopenharmony_ci<a id="ERR_STREAM_ALREADY_FINISHED"></a> 26061cb0ef41Sopenharmony_ci 26071cb0ef41Sopenharmony_ci### `ERR_STREAM_ALREADY_FINISHED` 26081cb0ef41Sopenharmony_ci 26091cb0ef41Sopenharmony_ciA stream method was called that cannot complete because the stream was 26101cb0ef41Sopenharmony_cifinished. 26111cb0ef41Sopenharmony_ci 26121cb0ef41Sopenharmony_ci<a id="ERR_STREAM_CANNOT_PIPE"></a> 26131cb0ef41Sopenharmony_ci 26141cb0ef41Sopenharmony_ci### `ERR_STREAM_CANNOT_PIPE` 26151cb0ef41Sopenharmony_ci 26161cb0ef41Sopenharmony_ciAn attempt was made to call [`stream.pipe()`][] on a [`Writable`][] stream. 26171cb0ef41Sopenharmony_ci 26181cb0ef41Sopenharmony_ci<a id="ERR_STREAM_DESTROYED"></a> 26191cb0ef41Sopenharmony_ci 26201cb0ef41Sopenharmony_ci### `ERR_STREAM_DESTROYED` 26211cb0ef41Sopenharmony_ci 26221cb0ef41Sopenharmony_ciA stream method was called that cannot complete because the stream was 26231cb0ef41Sopenharmony_cidestroyed using `stream.destroy()`. 26241cb0ef41Sopenharmony_ci 26251cb0ef41Sopenharmony_ci<a id="ERR_STREAM_NULL_VALUES"></a> 26261cb0ef41Sopenharmony_ci 26271cb0ef41Sopenharmony_ci### `ERR_STREAM_NULL_VALUES` 26281cb0ef41Sopenharmony_ci 26291cb0ef41Sopenharmony_ciAn attempt was made to call [`stream.write()`][] with a `null` chunk. 26301cb0ef41Sopenharmony_ci 26311cb0ef41Sopenharmony_ci<a id="ERR_STREAM_PREMATURE_CLOSE"></a> 26321cb0ef41Sopenharmony_ci 26331cb0ef41Sopenharmony_ci### `ERR_STREAM_PREMATURE_CLOSE` 26341cb0ef41Sopenharmony_ci 26351cb0ef41Sopenharmony_ciAn error returned by `stream.finished()` and `stream.pipeline()`, when a stream 26361cb0ef41Sopenharmony_cior a pipeline ends non gracefully with no explicit error. 26371cb0ef41Sopenharmony_ci 26381cb0ef41Sopenharmony_ci<a id="ERR_STREAM_PUSH_AFTER_EOF"></a> 26391cb0ef41Sopenharmony_ci 26401cb0ef41Sopenharmony_ci### `ERR_STREAM_PUSH_AFTER_EOF` 26411cb0ef41Sopenharmony_ci 26421cb0ef41Sopenharmony_ciAn attempt was made to call [`stream.push()`][] after a `null`(EOF) had been 26431cb0ef41Sopenharmony_cipushed to the stream. 26441cb0ef41Sopenharmony_ci 26451cb0ef41Sopenharmony_ci<a id="ERR_STREAM_UNSHIFT_AFTER_END_EVENT"></a> 26461cb0ef41Sopenharmony_ci 26471cb0ef41Sopenharmony_ci### `ERR_STREAM_UNSHIFT_AFTER_END_EVENT` 26481cb0ef41Sopenharmony_ci 26491cb0ef41Sopenharmony_ciAn attempt was made to call [`stream.unshift()`][] after the `'end'` event was 26501cb0ef41Sopenharmony_ciemitted. 26511cb0ef41Sopenharmony_ci 26521cb0ef41Sopenharmony_ci<a id="ERR_STREAM_WRAP"></a> 26531cb0ef41Sopenharmony_ci 26541cb0ef41Sopenharmony_ci### `ERR_STREAM_WRAP` 26551cb0ef41Sopenharmony_ci 26561cb0ef41Sopenharmony_ciPrevents an abort if a string decoder was set on the Socket or if the decoder 26571cb0ef41Sopenharmony_ciis in `objectMode`. 26581cb0ef41Sopenharmony_ci 26591cb0ef41Sopenharmony_ci```js 26601cb0ef41Sopenharmony_ciconst Socket = require('node:net').Socket; 26611cb0ef41Sopenharmony_ciconst instance = new Socket(); 26621cb0ef41Sopenharmony_ci 26631cb0ef41Sopenharmony_ciinstance.setEncoding('utf8'); 26641cb0ef41Sopenharmony_ci``` 26651cb0ef41Sopenharmony_ci 26661cb0ef41Sopenharmony_ci<a id="ERR_STREAM_WRITE_AFTER_END"></a> 26671cb0ef41Sopenharmony_ci 26681cb0ef41Sopenharmony_ci### `ERR_STREAM_WRITE_AFTER_END` 26691cb0ef41Sopenharmony_ci 26701cb0ef41Sopenharmony_ciAn attempt was made to call [`stream.write()`][] after `stream.end()` has been 26711cb0ef41Sopenharmony_cicalled. 26721cb0ef41Sopenharmony_ci 26731cb0ef41Sopenharmony_ci<a id="ERR_STRING_TOO_LONG"></a> 26741cb0ef41Sopenharmony_ci 26751cb0ef41Sopenharmony_ci### `ERR_STRING_TOO_LONG` 26761cb0ef41Sopenharmony_ci 26771cb0ef41Sopenharmony_ciAn attempt has been made to create a string longer than the maximum allowed 26781cb0ef41Sopenharmony_cilength. 26791cb0ef41Sopenharmony_ci 26801cb0ef41Sopenharmony_ci<a id="ERR_SYNTHETIC"></a> 26811cb0ef41Sopenharmony_ci 26821cb0ef41Sopenharmony_ci### `ERR_SYNTHETIC` 26831cb0ef41Sopenharmony_ci 26841cb0ef41Sopenharmony_ciAn artificial error object used to capture the call stack for diagnostic 26851cb0ef41Sopenharmony_cireports. 26861cb0ef41Sopenharmony_ci 26871cb0ef41Sopenharmony_ci<a id="ERR_SYSTEM_ERROR"></a> 26881cb0ef41Sopenharmony_ci 26891cb0ef41Sopenharmony_ci### `ERR_SYSTEM_ERROR` 26901cb0ef41Sopenharmony_ci 26911cb0ef41Sopenharmony_ciAn unspecified or non-specific system error has occurred within the Node.js 26921cb0ef41Sopenharmony_ciprocess. The error object will have an `err.info` object property with 26931cb0ef41Sopenharmony_ciadditional details. 26941cb0ef41Sopenharmony_ci 26951cb0ef41Sopenharmony_ci<a id="ERR_TAP_LEXER_ERROR"></a> 26961cb0ef41Sopenharmony_ci 26971cb0ef41Sopenharmony_ci### `ERR_TAP_LEXER_ERROR` 26981cb0ef41Sopenharmony_ci 26991cb0ef41Sopenharmony_ciAn error representing a failing lexer state. 27001cb0ef41Sopenharmony_ci 27011cb0ef41Sopenharmony_ci<a id="ERR_TAP_PARSER_ERROR"></a> 27021cb0ef41Sopenharmony_ci 27031cb0ef41Sopenharmony_ci### `ERR_TAP_PARSER_ERROR` 27041cb0ef41Sopenharmony_ci 27051cb0ef41Sopenharmony_ciAn error representing a failing parser state. Additional information about 27061cb0ef41Sopenharmony_cithe token causing the error is available via the `cause` property. 27071cb0ef41Sopenharmony_ci 27081cb0ef41Sopenharmony_ci<a id="ERR_TAP_VALIDATION_ERROR"></a> 27091cb0ef41Sopenharmony_ci 27101cb0ef41Sopenharmony_ci### `ERR_TAP_VALIDATION_ERROR` 27111cb0ef41Sopenharmony_ci 27121cb0ef41Sopenharmony_ciThis error represents a failed TAP validation. 27131cb0ef41Sopenharmony_ci 27141cb0ef41Sopenharmony_ci<a id="ERR_TEST_FAILURE"></a> 27151cb0ef41Sopenharmony_ci 27161cb0ef41Sopenharmony_ci### `ERR_TEST_FAILURE` 27171cb0ef41Sopenharmony_ci 27181cb0ef41Sopenharmony_ciThis error represents a failed test. Additional information about the failure 27191cb0ef41Sopenharmony_ciis available via the `cause` property. The `failureType` property specifies 27201cb0ef41Sopenharmony_ciwhat the test was doing when the failure occurred. 27211cb0ef41Sopenharmony_ci 27221cb0ef41Sopenharmony_ci<a id="ERR_TLS_ALPN_CALLBACK_INVALID_RESULT"></a> 27231cb0ef41Sopenharmony_ci 27241cb0ef41Sopenharmony_ci### `ERR_TLS_ALPN_CALLBACK_INVALID_RESULT` 27251cb0ef41Sopenharmony_ci 27261cb0ef41Sopenharmony_ciThis error is thrown when an `ALPNCallback` returns a value that is not in the 27271cb0ef41Sopenharmony_cilist of ALPN protocols offered by the client. 27281cb0ef41Sopenharmony_ci 27291cb0ef41Sopenharmony_ci<a id="ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS"></a> 27301cb0ef41Sopenharmony_ci 27311cb0ef41Sopenharmony_ci### `ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS` 27321cb0ef41Sopenharmony_ci 27331cb0ef41Sopenharmony_ciThis error is thrown when creating a `TLSServer` if the TLS options include 27341cb0ef41Sopenharmony_ciboth `ALPNProtocols` and `ALPNCallback`. These options are mutually exclusive. 27351cb0ef41Sopenharmony_ci 27361cb0ef41Sopenharmony_ci<a id="ERR_TLS_CERT_ALTNAME_FORMAT"></a> 27371cb0ef41Sopenharmony_ci 27381cb0ef41Sopenharmony_ci### `ERR_TLS_CERT_ALTNAME_FORMAT` 27391cb0ef41Sopenharmony_ci 27401cb0ef41Sopenharmony_ciThis error is thrown by `checkServerIdentity` if a user-supplied 27411cb0ef41Sopenharmony_ci`subjectaltname` property violates encoding rules. Certificate objects produced 27421cb0ef41Sopenharmony_ciby Node.js itself always comply with encoding rules and will never cause 27431cb0ef41Sopenharmony_cithis error. 27441cb0ef41Sopenharmony_ci 27451cb0ef41Sopenharmony_ci<a id="ERR_TLS_CERT_ALTNAME_INVALID"></a> 27461cb0ef41Sopenharmony_ci 27471cb0ef41Sopenharmony_ci### `ERR_TLS_CERT_ALTNAME_INVALID` 27481cb0ef41Sopenharmony_ci 27491cb0ef41Sopenharmony_ciWhile using TLS, the host name/IP of the peer did not match any of the 27501cb0ef41Sopenharmony_ci`subjectAltNames` in its certificate. 27511cb0ef41Sopenharmony_ci 27521cb0ef41Sopenharmony_ci<a id="ERR_TLS_DH_PARAM_SIZE"></a> 27531cb0ef41Sopenharmony_ci 27541cb0ef41Sopenharmony_ci### `ERR_TLS_DH_PARAM_SIZE` 27551cb0ef41Sopenharmony_ci 27561cb0ef41Sopenharmony_ciWhile using TLS, the parameter offered for the Diffie-Hellman (`DH`) 27571cb0ef41Sopenharmony_cikey-agreement protocol is too small. By default, the key length must be greater 27581cb0ef41Sopenharmony_cithan or equal to 1024 bits to avoid vulnerabilities, even though it is strongly 27591cb0ef41Sopenharmony_cirecommended to use 2048 bits or larger for stronger security. 27601cb0ef41Sopenharmony_ci 27611cb0ef41Sopenharmony_ci<a id="ERR_TLS_HANDSHAKE_TIMEOUT"></a> 27621cb0ef41Sopenharmony_ci 27631cb0ef41Sopenharmony_ci### `ERR_TLS_HANDSHAKE_TIMEOUT` 27641cb0ef41Sopenharmony_ci 27651cb0ef41Sopenharmony_ciA TLS/SSL handshake timed out. In this case, the server must also abort the 27661cb0ef41Sopenharmony_ciconnection. 27671cb0ef41Sopenharmony_ci 27681cb0ef41Sopenharmony_ci<a id="ERR_TLS_INVALID_CONTEXT"></a> 27691cb0ef41Sopenharmony_ci 27701cb0ef41Sopenharmony_ci### `ERR_TLS_INVALID_CONTEXT` 27711cb0ef41Sopenharmony_ci 27721cb0ef41Sopenharmony_ci<!-- YAML 27731cb0ef41Sopenharmony_ciadded: v13.3.0 27741cb0ef41Sopenharmony_ci--> 27751cb0ef41Sopenharmony_ci 27761cb0ef41Sopenharmony_ciThe context must be a `SecureContext`. 27771cb0ef41Sopenharmony_ci 27781cb0ef41Sopenharmony_ci<a id="ERR_TLS_INVALID_PROTOCOL_METHOD"></a> 27791cb0ef41Sopenharmony_ci 27801cb0ef41Sopenharmony_ci### `ERR_TLS_INVALID_PROTOCOL_METHOD` 27811cb0ef41Sopenharmony_ci 27821cb0ef41Sopenharmony_ciThe specified `secureProtocol` method is invalid. It is either unknown, or 27831cb0ef41Sopenharmony_cidisabled because it is insecure. 27841cb0ef41Sopenharmony_ci 27851cb0ef41Sopenharmony_ci<a id="ERR_TLS_INVALID_PROTOCOL_VERSION"></a> 27861cb0ef41Sopenharmony_ci 27871cb0ef41Sopenharmony_ci### `ERR_TLS_INVALID_PROTOCOL_VERSION` 27881cb0ef41Sopenharmony_ci 27891cb0ef41Sopenharmony_ciValid TLS protocol versions are `'TLSv1'`, `'TLSv1.1'`, or `'TLSv1.2'`. 27901cb0ef41Sopenharmony_ci 27911cb0ef41Sopenharmony_ci<a id="ERR_TLS_INVALID_STATE"></a> 27921cb0ef41Sopenharmony_ci 27931cb0ef41Sopenharmony_ci### `ERR_TLS_INVALID_STATE` 27941cb0ef41Sopenharmony_ci 27951cb0ef41Sopenharmony_ci<!-- YAML 27961cb0ef41Sopenharmony_ciadded: 27971cb0ef41Sopenharmony_ci - v13.10.0 27981cb0ef41Sopenharmony_ci - v12.17.0 27991cb0ef41Sopenharmony_ci--> 28001cb0ef41Sopenharmony_ci 28011cb0ef41Sopenharmony_ciThe TLS socket must be connected and securely established. Ensure the 'secure' 28021cb0ef41Sopenharmony_cievent is emitted before continuing. 28031cb0ef41Sopenharmony_ci 28041cb0ef41Sopenharmony_ci<a id="ERR_TLS_PROTOCOL_VERSION_CONFLICT"></a> 28051cb0ef41Sopenharmony_ci 28061cb0ef41Sopenharmony_ci### `ERR_TLS_PROTOCOL_VERSION_CONFLICT` 28071cb0ef41Sopenharmony_ci 28081cb0ef41Sopenharmony_ciAttempting to set a TLS protocol `minVersion` or `maxVersion` conflicts with an 28091cb0ef41Sopenharmony_ciattempt to set the `secureProtocol` explicitly. Use one mechanism or the other. 28101cb0ef41Sopenharmony_ci 28111cb0ef41Sopenharmony_ci<a id="ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED"></a> 28121cb0ef41Sopenharmony_ci 28131cb0ef41Sopenharmony_ci### `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` 28141cb0ef41Sopenharmony_ci 28151cb0ef41Sopenharmony_ciFailed to set PSK identity hint. Hint may be too long. 28161cb0ef41Sopenharmony_ci 28171cb0ef41Sopenharmony_ci<a id="ERR_TLS_RENEGOTIATION_DISABLED"></a> 28181cb0ef41Sopenharmony_ci 28191cb0ef41Sopenharmony_ci### `ERR_TLS_RENEGOTIATION_DISABLED` 28201cb0ef41Sopenharmony_ci 28211cb0ef41Sopenharmony_ciAn attempt was made to renegotiate TLS on a socket instance with renegotiation 28221cb0ef41Sopenharmony_cidisabled. 28231cb0ef41Sopenharmony_ci 28241cb0ef41Sopenharmony_ci<a id="ERR_TLS_REQUIRED_SERVER_NAME"></a> 28251cb0ef41Sopenharmony_ci 28261cb0ef41Sopenharmony_ci### `ERR_TLS_REQUIRED_SERVER_NAME` 28271cb0ef41Sopenharmony_ci 28281cb0ef41Sopenharmony_ciWhile using TLS, the `server.addContext()` method was called without providing 28291cb0ef41Sopenharmony_cia host name in the first parameter. 28301cb0ef41Sopenharmony_ci 28311cb0ef41Sopenharmony_ci<a id="ERR_TLS_SESSION_ATTACK"></a> 28321cb0ef41Sopenharmony_ci 28331cb0ef41Sopenharmony_ci### `ERR_TLS_SESSION_ATTACK` 28341cb0ef41Sopenharmony_ci 28351cb0ef41Sopenharmony_ciAn excessive amount of TLS renegotiations is detected, which is a potential 28361cb0ef41Sopenharmony_civector for denial-of-service attacks. 28371cb0ef41Sopenharmony_ci 28381cb0ef41Sopenharmony_ci<a id="ERR_TLS_SNI_FROM_SERVER"></a> 28391cb0ef41Sopenharmony_ci 28401cb0ef41Sopenharmony_ci### `ERR_TLS_SNI_FROM_SERVER` 28411cb0ef41Sopenharmony_ci 28421cb0ef41Sopenharmony_ciAn attempt was made to issue Server Name Indication from a TLS server-side 28431cb0ef41Sopenharmony_cisocket, which is only valid from a client. 28441cb0ef41Sopenharmony_ci 28451cb0ef41Sopenharmony_ci<a id="ERR_TRACE_EVENTS_CATEGORY_REQUIRED"></a> 28461cb0ef41Sopenharmony_ci 28471cb0ef41Sopenharmony_ci### `ERR_TRACE_EVENTS_CATEGORY_REQUIRED` 28481cb0ef41Sopenharmony_ci 28491cb0ef41Sopenharmony_ciThe `trace_events.createTracing()` method requires at least one trace event 28501cb0ef41Sopenharmony_cicategory. 28511cb0ef41Sopenharmony_ci 28521cb0ef41Sopenharmony_ci<a id="ERR_TRACE_EVENTS_UNAVAILABLE"></a> 28531cb0ef41Sopenharmony_ci 28541cb0ef41Sopenharmony_ci### `ERR_TRACE_EVENTS_UNAVAILABLE` 28551cb0ef41Sopenharmony_ci 28561cb0ef41Sopenharmony_ciThe `node:trace_events` module could not be loaded because Node.js was compiled 28571cb0ef41Sopenharmony_ciwith the `--without-v8-platform` flag. 28581cb0ef41Sopenharmony_ci 28591cb0ef41Sopenharmony_ci<a id="ERR_TRANSFORM_ALREADY_TRANSFORMING"></a> 28601cb0ef41Sopenharmony_ci 28611cb0ef41Sopenharmony_ci### `ERR_TRANSFORM_ALREADY_TRANSFORMING` 28621cb0ef41Sopenharmony_ci 28631cb0ef41Sopenharmony_ciA `Transform` stream finished while it was still transforming. 28641cb0ef41Sopenharmony_ci 28651cb0ef41Sopenharmony_ci<a id="ERR_TRANSFORM_WITH_LENGTH_0"></a> 28661cb0ef41Sopenharmony_ci 28671cb0ef41Sopenharmony_ci### `ERR_TRANSFORM_WITH_LENGTH_0` 28681cb0ef41Sopenharmony_ci 28691cb0ef41Sopenharmony_ciA `Transform` stream finished with data still in the write buffer. 28701cb0ef41Sopenharmony_ci 28711cb0ef41Sopenharmony_ci<a id="ERR_TTY_INIT_FAILED"></a> 28721cb0ef41Sopenharmony_ci 28731cb0ef41Sopenharmony_ci### `ERR_TTY_INIT_FAILED` 28741cb0ef41Sopenharmony_ci 28751cb0ef41Sopenharmony_ciThe initialization of a TTY failed due to a system error. 28761cb0ef41Sopenharmony_ci 28771cb0ef41Sopenharmony_ci<a id="ERR_UNAVAILABLE_DURING_EXIT"></a> 28781cb0ef41Sopenharmony_ci 28791cb0ef41Sopenharmony_ci### `ERR_UNAVAILABLE_DURING_EXIT` 28801cb0ef41Sopenharmony_ci 28811cb0ef41Sopenharmony_ciFunction was called within a [`process.on('exit')`][] handler that shouldn't be 28821cb0ef41Sopenharmony_cicalled within [`process.on('exit')`][] handler. 28831cb0ef41Sopenharmony_ci 28841cb0ef41Sopenharmony_ci<a id="ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET"></a> 28851cb0ef41Sopenharmony_ci 28861cb0ef41Sopenharmony_ci### `ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET` 28871cb0ef41Sopenharmony_ci 28881cb0ef41Sopenharmony_ci[`process.setUncaughtExceptionCaptureCallback()`][] was called twice, 28891cb0ef41Sopenharmony_ciwithout first resetting the callback to `null`. 28901cb0ef41Sopenharmony_ci 28911cb0ef41Sopenharmony_ciThis error is designed to prevent accidentally overwriting a callback registered 28921cb0ef41Sopenharmony_cifrom another module. 28931cb0ef41Sopenharmony_ci 28941cb0ef41Sopenharmony_ci<a id="ERR_UNESCAPED_CHARACTERS"></a> 28951cb0ef41Sopenharmony_ci 28961cb0ef41Sopenharmony_ci### `ERR_UNESCAPED_CHARACTERS` 28971cb0ef41Sopenharmony_ci 28981cb0ef41Sopenharmony_ciA string that contained unescaped characters was received. 28991cb0ef41Sopenharmony_ci 29001cb0ef41Sopenharmony_ci<a id="ERR_UNHANDLED_ERROR"></a> 29011cb0ef41Sopenharmony_ci 29021cb0ef41Sopenharmony_ci### `ERR_UNHANDLED_ERROR` 29031cb0ef41Sopenharmony_ci 29041cb0ef41Sopenharmony_ciAn unhandled error occurred (for instance, when an `'error'` event is emitted 29051cb0ef41Sopenharmony_ciby an [`EventEmitter`][] but an `'error'` handler is not registered). 29061cb0ef41Sopenharmony_ci 29071cb0ef41Sopenharmony_ci<a id="ERR_UNKNOWN_BUILTIN_MODULE"></a> 29081cb0ef41Sopenharmony_ci 29091cb0ef41Sopenharmony_ci### `ERR_UNKNOWN_BUILTIN_MODULE` 29101cb0ef41Sopenharmony_ci 29111cb0ef41Sopenharmony_ciUsed to identify a specific kind of internal Node.js error that should not 29121cb0ef41Sopenharmony_citypically be triggered by user code. Instances of this error point to an 29131cb0ef41Sopenharmony_ciinternal bug within the Node.js binary itself. 29141cb0ef41Sopenharmony_ci 29151cb0ef41Sopenharmony_ci<a id="ERR_UNKNOWN_CREDENTIAL"></a> 29161cb0ef41Sopenharmony_ci 29171cb0ef41Sopenharmony_ci### `ERR_UNKNOWN_CREDENTIAL` 29181cb0ef41Sopenharmony_ci 29191cb0ef41Sopenharmony_ciA Unix group or user identifier that does not exist was passed. 29201cb0ef41Sopenharmony_ci 29211cb0ef41Sopenharmony_ci<a id="ERR_UNKNOWN_ENCODING"></a> 29221cb0ef41Sopenharmony_ci 29231cb0ef41Sopenharmony_ci### `ERR_UNKNOWN_ENCODING` 29241cb0ef41Sopenharmony_ci 29251cb0ef41Sopenharmony_ciAn invalid or unknown encoding option was passed to an API. 29261cb0ef41Sopenharmony_ci 29271cb0ef41Sopenharmony_ci<a id="ERR_UNKNOWN_FILE_EXTENSION"></a> 29281cb0ef41Sopenharmony_ci 29291cb0ef41Sopenharmony_ci### `ERR_UNKNOWN_FILE_EXTENSION` 29301cb0ef41Sopenharmony_ci 29311cb0ef41Sopenharmony_ci> Stability: 1 - Experimental 29321cb0ef41Sopenharmony_ci 29331cb0ef41Sopenharmony_ciAn attempt was made to load a module with an unknown or unsupported file 29341cb0ef41Sopenharmony_ciextension. 29351cb0ef41Sopenharmony_ci 29361cb0ef41Sopenharmony_ci<a id="ERR_UNKNOWN_MODULE_FORMAT"></a> 29371cb0ef41Sopenharmony_ci 29381cb0ef41Sopenharmony_ci### `ERR_UNKNOWN_MODULE_FORMAT` 29391cb0ef41Sopenharmony_ci 29401cb0ef41Sopenharmony_ci> Stability: 1 - Experimental 29411cb0ef41Sopenharmony_ci 29421cb0ef41Sopenharmony_ciAn attempt was made to load a module with an unknown or unsupported format. 29431cb0ef41Sopenharmony_ci 29441cb0ef41Sopenharmony_ci<a id="ERR_UNKNOWN_SIGNAL"></a> 29451cb0ef41Sopenharmony_ci 29461cb0ef41Sopenharmony_ci### `ERR_UNKNOWN_SIGNAL` 29471cb0ef41Sopenharmony_ci 29481cb0ef41Sopenharmony_ciAn invalid or unknown process signal was passed to an API expecting a valid 29491cb0ef41Sopenharmony_cisignal (such as [`subprocess.kill()`][]). 29501cb0ef41Sopenharmony_ci 29511cb0ef41Sopenharmony_ci<a id="ERR_UNSUPPORTED_DIR_IMPORT"></a> 29521cb0ef41Sopenharmony_ci 29531cb0ef41Sopenharmony_ci### `ERR_UNSUPPORTED_DIR_IMPORT` 29541cb0ef41Sopenharmony_ci 29551cb0ef41Sopenharmony_ci`import` a directory URL is unsupported. Instead, 29561cb0ef41Sopenharmony_ci[self-reference a package using its name][] and [define a custom subpath][] in 29571cb0ef41Sopenharmony_cithe [`"exports"`][] field of the [`package.json`][] file. 29581cb0ef41Sopenharmony_ci 29591cb0ef41Sopenharmony_ci<!-- eslint-skip --> 29601cb0ef41Sopenharmony_ci 29611cb0ef41Sopenharmony_ci```js 29621cb0ef41Sopenharmony_ciimport './'; // unsupported 29631cb0ef41Sopenharmony_ciimport './index.js'; // supported 29641cb0ef41Sopenharmony_ciimport 'package-name'; // supported 29651cb0ef41Sopenharmony_ci``` 29661cb0ef41Sopenharmony_ci 29671cb0ef41Sopenharmony_ci<a id="ERR_UNSUPPORTED_ESM_URL_SCHEME"></a> 29681cb0ef41Sopenharmony_ci 29691cb0ef41Sopenharmony_ci### `ERR_UNSUPPORTED_ESM_URL_SCHEME` 29701cb0ef41Sopenharmony_ci 29711cb0ef41Sopenharmony_ci`import` with URL schemes other than `file` and `data` is unsupported. 29721cb0ef41Sopenharmony_ci 29731cb0ef41Sopenharmony_ci<a id="ERR_USE_AFTER_CLOSE"></a> 29741cb0ef41Sopenharmony_ci 29751cb0ef41Sopenharmony_ci### `ERR_USE_AFTER_CLOSE` 29761cb0ef41Sopenharmony_ci 29771cb0ef41Sopenharmony_ci> Stability: 1 - Experimental 29781cb0ef41Sopenharmony_ci 29791cb0ef41Sopenharmony_ciAn attempt was made to use something that was already closed. 29801cb0ef41Sopenharmony_ci 29811cb0ef41Sopenharmony_ci<a id="ERR_VALID_PERFORMANCE_ENTRY_TYPE"></a> 29821cb0ef41Sopenharmony_ci 29831cb0ef41Sopenharmony_ci### `ERR_VALID_PERFORMANCE_ENTRY_TYPE` 29841cb0ef41Sopenharmony_ci 29851cb0ef41Sopenharmony_ciWhile using the Performance Timing API (`perf_hooks`), no valid performance 29861cb0ef41Sopenharmony_cientry types are found. 29871cb0ef41Sopenharmony_ci 29881cb0ef41Sopenharmony_ci<a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG"></a> 29891cb0ef41Sopenharmony_ci 29901cb0ef41Sopenharmony_ci### `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG` 29911cb0ef41Sopenharmony_ci 29921cb0ef41Sopenharmony_ciA dynamic import callback was invoked without `--experimental-vm-modules`. 29931cb0ef41Sopenharmony_ci 29941cb0ef41Sopenharmony_ci<a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING"></a> 29951cb0ef41Sopenharmony_ci 29961cb0ef41Sopenharmony_ci### `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING` 29971cb0ef41Sopenharmony_ci 29981cb0ef41Sopenharmony_ciA dynamic import callback was not specified. 29991cb0ef41Sopenharmony_ci 30001cb0ef41Sopenharmony_ci<a id="ERR_VM_MODULE_ALREADY_LINKED"></a> 30011cb0ef41Sopenharmony_ci 30021cb0ef41Sopenharmony_ci### `ERR_VM_MODULE_ALREADY_LINKED` 30031cb0ef41Sopenharmony_ci 30041cb0ef41Sopenharmony_ciThe module attempted to be linked is not eligible for linking, because of one of 30051cb0ef41Sopenharmony_cithe following reasons: 30061cb0ef41Sopenharmony_ci 30071cb0ef41Sopenharmony_ci* It has already been linked (`linkingStatus` is `'linked'`) 30081cb0ef41Sopenharmony_ci* It is being linked (`linkingStatus` is `'linking'`) 30091cb0ef41Sopenharmony_ci* Linking has failed for this module (`linkingStatus` is `'errored'`) 30101cb0ef41Sopenharmony_ci 30111cb0ef41Sopenharmony_ci<a id="ERR_VM_MODULE_CACHED_DATA_REJECTED"></a> 30121cb0ef41Sopenharmony_ci 30131cb0ef41Sopenharmony_ci### `ERR_VM_MODULE_CACHED_DATA_REJECTED` 30141cb0ef41Sopenharmony_ci 30151cb0ef41Sopenharmony_ciThe `cachedData` option passed to a module constructor is invalid. 30161cb0ef41Sopenharmony_ci 30171cb0ef41Sopenharmony_ci<a id="ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA"></a> 30181cb0ef41Sopenharmony_ci 30191cb0ef41Sopenharmony_ci### `ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA` 30201cb0ef41Sopenharmony_ci 30211cb0ef41Sopenharmony_ciCached data cannot be created for modules which have already been evaluated. 30221cb0ef41Sopenharmony_ci 30231cb0ef41Sopenharmony_ci<a id="ERR_VM_MODULE_DIFFERENT_CONTEXT"></a> 30241cb0ef41Sopenharmony_ci 30251cb0ef41Sopenharmony_ci### `ERR_VM_MODULE_DIFFERENT_CONTEXT` 30261cb0ef41Sopenharmony_ci 30271cb0ef41Sopenharmony_ciThe module being returned from the linker function is from a different context 30281cb0ef41Sopenharmony_cithan the parent module. Linked modules must share the same context. 30291cb0ef41Sopenharmony_ci 30301cb0ef41Sopenharmony_ci<a id="ERR_VM_MODULE_LINK_FAILURE"></a> 30311cb0ef41Sopenharmony_ci 30321cb0ef41Sopenharmony_ci### `ERR_VM_MODULE_LINK_FAILURE` 30331cb0ef41Sopenharmony_ci 30341cb0ef41Sopenharmony_ciThe module was unable to be linked due to a failure. 30351cb0ef41Sopenharmony_ci 30361cb0ef41Sopenharmony_ci<a id="ERR_VM_MODULE_NOT_MODULE"></a> 30371cb0ef41Sopenharmony_ci 30381cb0ef41Sopenharmony_ci### `ERR_VM_MODULE_NOT_MODULE` 30391cb0ef41Sopenharmony_ci 30401cb0ef41Sopenharmony_ciThe fulfilled value of a linking promise is not a `vm.Module` object. 30411cb0ef41Sopenharmony_ci 30421cb0ef41Sopenharmony_ci<a id="ERR_VM_MODULE_STATUS"></a> 30431cb0ef41Sopenharmony_ci 30441cb0ef41Sopenharmony_ci### `ERR_VM_MODULE_STATUS` 30451cb0ef41Sopenharmony_ci 30461cb0ef41Sopenharmony_ciThe current module's status does not allow for this operation. The specific 30471cb0ef41Sopenharmony_cimeaning of the error depends on the specific function. 30481cb0ef41Sopenharmony_ci 30491cb0ef41Sopenharmony_ci<a id="ERR_WASI_ALREADY_STARTED"></a> 30501cb0ef41Sopenharmony_ci 30511cb0ef41Sopenharmony_ci### `ERR_WASI_ALREADY_STARTED` 30521cb0ef41Sopenharmony_ci 30531cb0ef41Sopenharmony_ciThe WASI instance has already started. 30541cb0ef41Sopenharmony_ci 30551cb0ef41Sopenharmony_ci<a id="ERR_WASI_NOT_STARTED"></a> 30561cb0ef41Sopenharmony_ci 30571cb0ef41Sopenharmony_ci### `ERR_WASI_NOT_STARTED` 30581cb0ef41Sopenharmony_ci 30591cb0ef41Sopenharmony_ciThe WASI instance has not been started. 30601cb0ef41Sopenharmony_ci 30611cb0ef41Sopenharmony_ci<a id="ERR_WEBASSEMBLY_RESPONSE"></a> 30621cb0ef41Sopenharmony_ci 30631cb0ef41Sopenharmony_ci### `ERR_WEBASSEMBLY_RESPONSE` 30641cb0ef41Sopenharmony_ci 30651cb0ef41Sopenharmony_ci<!-- YAML 30661cb0ef41Sopenharmony_ciadded: v18.1.0 30671cb0ef41Sopenharmony_ci--> 30681cb0ef41Sopenharmony_ci 30691cb0ef41Sopenharmony_ciThe `Response` that has been passed to `WebAssembly.compileStreaming` or to 30701cb0ef41Sopenharmony_ci`WebAssembly.instantiateStreaming` is not a valid WebAssembly response. 30711cb0ef41Sopenharmony_ci 30721cb0ef41Sopenharmony_ci<a id="ERR_WORKER_INIT_FAILED"></a> 30731cb0ef41Sopenharmony_ci 30741cb0ef41Sopenharmony_ci### `ERR_WORKER_INIT_FAILED` 30751cb0ef41Sopenharmony_ci 30761cb0ef41Sopenharmony_ciThe `Worker` initialization failed. 30771cb0ef41Sopenharmony_ci 30781cb0ef41Sopenharmony_ci<a id="ERR_WORKER_INVALID_EXEC_ARGV"></a> 30791cb0ef41Sopenharmony_ci 30801cb0ef41Sopenharmony_ci### `ERR_WORKER_INVALID_EXEC_ARGV` 30811cb0ef41Sopenharmony_ci 30821cb0ef41Sopenharmony_ciThe `execArgv` option passed to the `Worker` constructor contains 30831cb0ef41Sopenharmony_ciinvalid flags. 30841cb0ef41Sopenharmony_ci 30851cb0ef41Sopenharmony_ci<a id="ERR_WORKER_NOT_RUNNING"></a> 30861cb0ef41Sopenharmony_ci 30871cb0ef41Sopenharmony_ci### `ERR_WORKER_NOT_RUNNING` 30881cb0ef41Sopenharmony_ci 30891cb0ef41Sopenharmony_ciAn operation failed because the `Worker` instance is not currently running. 30901cb0ef41Sopenharmony_ci 30911cb0ef41Sopenharmony_ci<a id="ERR_WORKER_OUT_OF_MEMORY"></a> 30921cb0ef41Sopenharmony_ci 30931cb0ef41Sopenharmony_ci### `ERR_WORKER_OUT_OF_MEMORY` 30941cb0ef41Sopenharmony_ci 30951cb0ef41Sopenharmony_ciThe `Worker` instance terminated because it reached its memory limit. 30961cb0ef41Sopenharmony_ci 30971cb0ef41Sopenharmony_ci<a id="ERR_WORKER_PATH"></a> 30981cb0ef41Sopenharmony_ci 30991cb0ef41Sopenharmony_ci### `ERR_WORKER_PATH` 31001cb0ef41Sopenharmony_ci 31011cb0ef41Sopenharmony_ciThe path for the main script of a worker is neither an absolute path 31021cb0ef41Sopenharmony_cinor a relative path starting with `./` or `../`. 31031cb0ef41Sopenharmony_ci 31041cb0ef41Sopenharmony_ci<a id="ERR_WORKER_UNSERIALIZABLE_ERROR"></a> 31051cb0ef41Sopenharmony_ci 31061cb0ef41Sopenharmony_ci### `ERR_WORKER_UNSERIALIZABLE_ERROR` 31071cb0ef41Sopenharmony_ci 31081cb0ef41Sopenharmony_ciAll attempts at serializing an uncaught exception from a worker thread failed. 31091cb0ef41Sopenharmony_ci 31101cb0ef41Sopenharmony_ci<a id="ERR_WORKER_UNSUPPORTED_OPERATION"></a> 31111cb0ef41Sopenharmony_ci 31121cb0ef41Sopenharmony_ci### `ERR_WORKER_UNSUPPORTED_OPERATION` 31131cb0ef41Sopenharmony_ci 31141cb0ef41Sopenharmony_ciThe requested functionality is not supported in worker threads. 31151cb0ef41Sopenharmony_ci 31161cb0ef41Sopenharmony_ci<a id="ERR_ZLIB_INITIALIZATION_FAILED"></a> 31171cb0ef41Sopenharmony_ci 31181cb0ef41Sopenharmony_ci### `ERR_ZLIB_INITIALIZATION_FAILED` 31191cb0ef41Sopenharmony_ci 31201cb0ef41Sopenharmony_ciCreation of a [`zlib`][] object failed due to incorrect configuration. 31211cb0ef41Sopenharmony_ci 31221cb0ef41Sopenharmony_ci<a id="HPE_HEADER_OVERFLOW"></a> 31231cb0ef41Sopenharmony_ci 31241cb0ef41Sopenharmony_ci### `HPE_HEADER_OVERFLOW` 31251cb0ef41Sopenharmony_ci 31261cb0ef41Sopenharmony_ci<!-- YAML 31271cb0ef41Sopenharmony_cichanges: 31281cb0ef41Sopenharmony_ci - version: 31291cb0ef41Sopenharmony_ci - v11.4.0 31301cb0ef41Sopenharmony_ci - v10.15.0 31311cb0ef41Sopenharmony_ci commit: 186035243fad247e3955f 31321cb0ef41Sopenharmony_ci pr-url: https://github.com/nodejs-private/node-private/pull/143 31331cb0ef41Sopenharmony_ci description: Max header size in `http_parser` was set to 8 KiB. 31341cb0ef41Sopenharmony_ci--> 31351cb0ef41Sopenharmony_ci 31361cb0ef41Sopenharmony_ciToo much HTTP header data was received. In order to protect against malicious or 31371cb0ef41Sopenharmony_cimalconfigured clients, if more than 8 KiB of HTTP header data is received then 31381cb0ef41Sopenharmony_ciHTTP parsing will abort without a request or response object being created, and 31391cb0ef41Sopenharmony_cian `Error` with this code will be emitted. 31401cb0ef41Sopenharmony_ci 31411cb0ef41Sopenharmony_ci<a id="HPE_CHUNK_EXTENSIONS_OVERFLOW"></a> 31421cb0ef41Sopenharmony_ci 31431cb0ef41Sopenharmony_ci### `HPE_CHUNK_EXTENSIONS_OVERFLOW` 31441cb0ef41Sopenharmony_ci 31451cb0ef41Sopenharmony_ci<!-- YAML 31461cb0ef41Sopenharmony_ciadded: v18.19.1 31471cb0ef41Sopenharmony_ci--> 31481cb0ef41Sopenharmony_ci 31491cb0ef41Sopenharmony_ciToo much data was received for a chunk extensions. In order to protect against 31501cb0ef41Sopenharmony_cimalicious or malconfigured clients, if more than 16 KiB of data is received 31511cb0ef41Sopenharmony_cithen an `Error` with this code will be emitted. 31521cb0ef41Sopenharmony_ci 31531cb0ef41Sopenharmony_ci<a id="HPE_UNEXPECTED_CONTENT_LENGTH"></a> 31541cb0ef41Sopenharmony_ci 31551cb0ef41Sopenharmony_ci### `HPE_UNEXPECTED_CONTENT_LENGTH` 31561cb0ef41Sopenharmony_ci 31571cb0ef41Sopenharmony_ciServer is sending both a `Content-Length` header and `Transfer-Encoding: chunked`. 31581cb0ef41Sopenharmony_ci 31591cb0ef41Sopenharmony_ci`Transfer-Encoding: chunked` allows the server to maintain an HTTP persistent 31601cb0ef41Sopenharmony_ciconnection for dynamically generated content. 31611cb0ef41Sopenharmony_ciIn this case, the `Content-Length` HTTP header cannot be used. 31621cb0ef41Sopenharmony_ci 31631cb0ef41Sopenharmony_ciUse `Content-Length` or `Transfer-Encoding: chunked`. 31641cb0ef41Sopenharmony_ci 31651cb0ef41Sopenharmony_ci<a id="MODULE_NOT_FOUND"></a> 31661cb0ef41Sopenharmony_ci 31671cb0ef41Sopenharmony_ci### `MODULE_NOT_FOUND` 31681cb0ef41Sopenharmony_ci 31691cb0ef41Sopenharmony_ci<!-- YAML 31701cb0ef41Sopenharmony_cichanges: 31711cb0ef41Sopenharmony_ci - version: v12.0.0 31721cb0ef41Sopenharmony_ci pr-url: https://github.com/nodejs/node/pull/25690 31731cb0ef41Sopenharmony_ci description: Added `requireStack` property. 31741cb0ef41Sopenharmony_ci--> 31751cb0ef41Sopenharmony_ci 31761cb0ef41Sopenharmony_ciA module file could not be resolved by the CommonJS modules loader while 31771cb0ef41Sopenharmony_ciattempting a [`require()`][] operation or when loading the program entry point. 31781cb0ef41Sopenharmony_ci 31791cb0ef41Sopenharmony_ci## Legacy Node.js error codes 31801cb0ef41Sopenharmony_ci 31811cb0ef41Sopenharmony_ci> Stability: 0 - Deprecated. These error codes are either inconsistent, or have 31821cb0ef41Sopenharmony_ci> been removed. 31831cb0ef41Sopenharmony_ci 31841cb0ef41Sopenharmony_ci<a id="ERR_CANNOT_TRANSFER_OBJECT"></a> 31851cb0ef41Sopenharmony_ci 31861cb0ef41Sopenharmony_ci### `ERR_CANNOT_TRANSFER_OBJECT` 31871cb0ef41Sopenharmony_ci 31881cb0ef41Sopenharmony_ci<!-- 31891cb0ef41Sopenharmony_ciadded: v10.5.0 31901cb0ef41Sopenharmony_ciremoved: v12.5.0 31911cb0ef41Sopenharmony_ci--> 31921cb0ef41Sopenharmony_ci 31931cb0ef41Sopenharmony_ciThe value passed to `postMessage()` contained an object that is not supported 31941cb0ef41Sopenharmony_cifor transferring. 31951cb0ef41Sopenharmony_ci 31961cb0ef41Sopenharmony_ci<a id="ERR_CRYPTO_HASH_DIGEST_NO_UTF16"></a> 31971cb0ef41Sopenharmony_ci 31981cb0ef41Sopenharmony_ci### `ERR_CRYPTO_HASH_DIGEST_NO_UTF16` 31991cb0ef41Sopenharmony_ci 32001cb0ef41Sopenharmony_ci<!-- YAML 32011cb0ef41Sopenharmony_ciadded: v9.0.0 32021cb0ef41Sopenharmony_ciremoved: v12.12.0 32031cb0ef41Sopenharmony_ci--> 32041cb0ef41Sopenharmony_ci 32051cb0ef41Sopenharmony_ciThe UTF-16 encoding was used with [`hash.digest()`][]. While the 32061cb0ef41Sopenharmony_ci`hash.digest()` method does allow an `encoding` argument to be passed in, 32071cb0ef41Sopenharmony_cicausing the method to return a string rather than a `Buffer`, the UTF-16 32081cb0ef41Sopenharmony_ciencoding (e.g. `ucs` or `utf16le`) is not supported. 32091cb0ef41Sopenharmony_ci 32101cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_FRAME_ERROR"></a> 32111cb0ef41Sopenharmony_ci 32121cb0ef41Sopenharmony_ci### `ERR_HTTP2_FRAME_ERROR` 32131cb0ef41Sopenharmony_ci 32141cb0ef41Sopenharmony_ci<!-- YAML 32151cb0ef41Sopenharmony_ciadded: v9.0.0 32161cb0ef41Sopenharmony_ciremoved: v10.0.0 32171cb0ef41Sopenharmony_ci--> 32181cb0ef41Sopenharmony_ci 32191cb0ef41Sopenharmony_ciUsed when a failure occurs sending an individual frame on the HTTP/2 32201cb0ef41Sopenharmony_cisession. 32211cb0ef41Sopenharmony_ci 32221cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_HEADERS_OBJECT"></a> 32231cb0ef41Sopenharmony_ci 32241cb0ef41Sopenharmony_ci### `ERR_HTTP2_HEADERS_OBJECT` 32251cb0ef41Sopenharmony_ci 32261cb0ef41Sopenharmony_ci<!-- YAML 32271cb0ef41Sopenharmony_ciadded: v9.0.0 32281cb0ef41Sopenharmony_ciremoved: v10.0.0 32291cb0ef41Sopenharmony_ci--> 32301cb0ef41Sopenharmony_ci 32311cb0ef41Sopenharmony_ciUsed when an HTTP/2 Headers Object is expected. 32321cb0ef41Sopenharmony_ci 32331cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_HEADER_REQUIRED"></a> 32341cb0ef41Sopenharmony_ci 32351cb0ef41Sopenharmony_ci### `ERR_HTTP2_HEADER_REQUIRED` 32361cb0ef41Sopenharmony_ci 32371cb0ef41Sopenharmony_ci<!-- YAML 32381cb0ef41Sopenharmony_ciadded: v9.0.0 32391cb0ef41Sopenharmony_ciremoved: v10.0.0 32401cb0ef41Sopenharmony_ci--> 32411cb0ef41Sopenharmony_ci 32421cb0ef41Sopenharmony_ciUsed when a required header is missing in an HTTP/2 message. 32431cb0ef41Sopenharmony_ci 32441cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND"></a> 32451cb0ef41Sopenharmony_ci 32461cb0ef41Sopenharmony_ci### `ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND` 32471cb0ef41Sopenharmony_ci 32481cb0ef41Sopenharmony_ci<!-- YAML 32491cb0ef41Sopenharmony_ciadded: v9.0.0 32501cb0ef41Sopenharmony_ciremoved: v10.0.0 32511cb0ef41Sopenharmony_ci--> 32521cb0ef41Sopenharmony_ci 32531cb0ef41Sopenharmony_ciHTTP/2 informational headers must only be sent _prior_ to calling the 32541cb0ef41Sopenharmony_ci`Http2Stream.prototype.respond()` method. 32551cb0ef41Sopenharmony_ci 32561cb0ef41Sopenharmony_ci<a id="ERR_HTTP2_STREAM_CLOSED"></a> 32571cb0ef41Sopenharmony_ci 32581cb0ef41Sopenharmony_ci### `ERR_HTTP2_STREAM_CLOSED` 32591cb0ef41Sopenharmony_ci 32601cb0ef41Sopenharmony_ci<!-- YAML 32611cb0ef41Sopenharmony_ciadded: v9.0.0 32621cb0ef41Sopenharmony_ciremoved: v10.0.0 32631cb0ef41Sopenharmony_ci--> 32641cb0ef41Sopenharmony_ci 32651cb0ef41Sopenharmony_ciUsed when an action has been performed on an HTTP/2 Stream that has already 32661cb0ef41Sopenharmony_cibeen closed. 32671cb0ef41Sopenharmony_ci 32681cb0ef41Sopenharmony_ci<a id="ERR_HTTP_INVALID_CHAR"></a> 32691cb0ef41Sopenharmony_ci 32701cb0ef41Sopenharmony_ci### `ERR_HTTP_INVALID_CHAR` 32711cb0ef41Sopenharmony_ci 32721cb0ef41Sopenharmony_ci<!-- YAML 32731cb0ef41Sopenharmony_ciadded: v9.0.0 32741cb0ef41Sopenharmony_ciremoved: v10.0.0 32751cb0ef41Sopenharmony_ci--> 32761cb0ef41Sopenharmony_ci 32771cb0ef41Sopenharmony_ciUsed when an invalid character is found in an HTTP response status message 32781cb0ef41Sopenharmony_ci(reason phrase). 32791cb0ef41Sopenharmony_ci 32801cb0ef41Sopenharmony_ci<a id="ERR_INDEX_OUT_OF_RANGE"></a> 32811cb0ef41Sopenharmony_ci 32821cb0ef41Sopenharmony_ci### `ERR_INDEX_OUT_OF_RANGE` 32831cb0ef41Sopenharmony_ci 32841cb0ef41Sopenharmony_ci<!-- YAML 32851cb0ef41Sopenharmony_ci added: v10.0.0 32861cb0ef41Sopenharmony_ci removed: v11.0.0 32871cb0ef41Sopenharmony_ci--> 32881cb0ef41Sopenharmony_ci 32891cb0ef41Sopenharmony_ciA given index was out of the accepted range (e.g. negative offsets). 32901cb0ef41Sopenharmony_ci 32911cb0ef41Sopenharmony_ci<a id="ERR_INVALID_OPT_VALUE"></a> 32921cb0ef41Sopenharmony_ci 32931cb0ef41Sopenharmony_ci### `ERR_INVALID_OPT_VALUE` 32941cb0ef41Sopenharmony_ci 32951cb0ef41Sopenharmony_ci<!-- YAML 32961cb0ef41Sopenharmony_ciadded: v8.0.0 32971cb0ef41Sopenharmony_ciremoved: v15.0.0 32981cb0ef41Sopenharmony_ci--> 32991cb0ef41Sopenharmony_ci 33001cb0ef41Sopenharmony_ciAn invalid or unexpected value was passed in an options object. 33011cb0ef41Sopenharmony_ci 33021cb0ef41Sopenharmony_ci<a id="ERR_INVALID_OPT_VALUE_ENCODING"></a> 33031cb0ef41Sopenharmony_ci 33041cb0ef41Sopenharmony_ci### `ERR_INVALID_OPT_VALUE_ENCODING` 33051cb0ef41Sopenharmony_ci 33061cb0ef41Sopenharmony_ci<!-- YAML 33071cb0ef41Sopenharmony_ciadded: v9.0.0 33081cb0ef41Sopenharmony_ciremoved: v15.0.0 33091cb0ef41Sopenharmony_ci--> 33101cb0ef41Sopenharmony_ci 33111cb0ef41Sopenharmony_ciAn invalid or unknown file encoding was passed. 33121cb0ef41Sopenharmony_ci 33131cb0ef41Sopenharmony_ci<a id="ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST"></a> 33141cb0ef41Sopenharmony_ci 33151cb0ef41Sopenharmony_ci### `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` 33161cb0ef41Sopenharmony_ci 33171cb0ef41Sopenharmony_ci<!-- YAML 33181cb0ef41Sopenharmony_ciremoved: v15.0.0 33191cb0ef41Sopenharmony_ci--> 33201cb0ef41Sopenharmony_ci 33211cb0ef41Sopenharmony_ciThis error code was replaced by [`ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST`][] 33221cb0ef41Sopenharmony_ciin Node.js v15.0.0, because it is no longer accurate as other types of 33231cb0ef41Sopenharmony_citransferable objects also exist now. 33241cb0ef41Sopenharmony_ci 33251cb0ef41Sopenharmony_ci<a id="ERR_NAPI_CONS_PROTOTYPE_OBJECT"></a> 33261cb0ef41Sopenharmony_ci 33271cb0ef41Sopenharmony_ci### `ERR_NAPI_CONS_PROTOTYPE_OBJECT` 33281cb0ef41Sopenharmony_ci 33291cb0ef41Sopenharmony_ci<!-- YAML 33301cb0ef41Sopenharmony_ciadded: v9.0.0 33311cb0ef41Sopenharmony_ciremoved: v10.0.0 33321cb0ef41Sopenharmony_ci--> 33331cb0ef41Sopenharmony_ci 33341cb0ef41Sopenharmony_ciUsed by the `Node-API` when `Constructor.prototype` is not an object. 33351cb0ef41Sopenharmony_ci 33361cb0ef41Sopenharmony_ci<a id="ERR_NETWORK_IMPORT_BAD_RESPONSE"></a> 33371cb0ef41Sopenharmony_ci 33381cb0ef41Sopenharmony_ci### `ERR_NETWORK_IMPORT_BAD_RESPONSE` 33391cb0ef41Sopenharmony_ci 33401cb0ef41Sopenharmony_ci> Stability: 1 - Experimental 33411cb0ef41Sopenharmony_ci 33421cb0ef41Sopenharmony_ciResponse was received but was invalid when importing a module over the network. 33431cb0ef41Sopenharmony_ci 33441cb0ef41Sopenharmony_ci<a id="ERR_NETWORK_IMPORT_DISALLOWED"></a> 33451cb0ef41Sopenharmony_ci 33461cb0ef41Sopenharmony_ci### `ERR_NETWORK_IMPORT_DISALLOWED` 33471cb0ef41Sopenharmony_ci 33481cb0ef41Sopenharmony_ci> Stability: 1 - Experimental 33491cb0ef41Sopenharmony_ci 33501cb0ef41Sopenharmony_ciA network module attempted to load another module that it is not allowed to 33511cb0ef41Sopenharmony_ciload. Likely this restriction is for security reasons. 33521cb0ef41Sopenharmony_ci 33531cb0ef41Sopenharmony_ci<a id="ERR_NO_LONGER_SUPPORTED"></a> 33541cb0ef41Sopenharmony_ci 33551cb0ef41Sopenharmony_ci### `ERR_NO_LONGER_SUPPORTED` 33561cb0ef41Sopenharmony_ci 33571cb0ef41Sopenharmony_ciA Node.js API was called in an unsupported manner, such as 33581cb0ef41Sopenharmony_ci`Buffer.write(string, encoding, offset[, length])`. 33591cb0ef41Sopenharmony_ci 33601cb0ef41Sopenharmony_ci<a id="ERR_OPERATION_FAILED"></a> 33611cb0ef41Sopenharmony_ci 33621cb0ef41Sopenharmony_ci### `ERR_OPERATION_FAILED` 33631cb0ef41Sopenharmony_ci 33641cb0ef41Sopenharmony_ci<!-- YAML 33651cb0ef41Sopenharmony_ciadded: v15.0.0 33661cb0ef41Sopenharmony_ci--> 33671cb0ef41Sopenharmony_ci 33681cb0ef41Sopenharmony_ciAn operation failed. This is typically used to signal the general failure 33691cb0ef41Sopenharmony_ciof an asynchronous operation. 33701cb0ef41Sopenharmony_ci 33711cb0ef41Sopenharmony_ci<a id="ERR_OUTOFMEMORY"></a> 33721cb0ef41Sopenharmony_ci 33731cb0ef41Sopenharmony_ci### `ERR_OUTOFMEMORY` 33741cb0ef41Sopenharmony_ci 33751cb0ef41Sopenharmony_ci<!-- YAML 33761cb0ef41Sopenharmony_ciadded: v9.0.0 33771cb0ef41Sopenharmony_ciremoved: v10.0.0 33781cb0ef41Sopenharmony_ci--> 33791cb0ef41Sopenharmony_ci 33801cb0ef41Sopenharmony_ciUsed generically to identify that an operation caused an out of memory 33811cb0ef41Sopenharmony_cicondition. 33821cb0ef41Sopenharmony_ci 33831cb0ef41Sopenharmony_ci<a id="ERR_PARSE_HISTORY_DATA"></a> 33841cb0ef41Sopenharmony_ci 33851cb0ef41Sopenharmony_ci### `ERR_PARSE_HISTORY_DATA` 33861cb0ef41Sopenharmony_ci 33871cb0ef41Sopenharmony_ci<!-- YAML 33881cb0ef41Sopenharmony_ciadded: v9.0.0 33891cb0ef41Sopenharmony_ciremoved: v10.0.0 33901cb0ef41Sopenharmony_ci--> 33911cb0ef41Sopenharmony_ci 33921cb0ef41Sopenharmony_ciThe `node:repl` module was unable to parse data from the REPL history file. 33931cb0ef41Sopenharmony_ci 33941cb0ef41Sopenharmony_ci<a id="ERR_SOCKET_CANNOT_SEND"></a> 33951cb0ef41Sopenharmony_ci 33961cb0ef41Sopenharmony_ci### `ERR_SOCKET_CANNOT_SEND` 33971cb0ef41Sopenharmony_ci 33981cb0ef41Sopenharmony_ci<!-- YAML 33991cb0ef41Sopenharmony_ciadded: v9.0.0 34001cb0ef41Sopenharmony_ciremoved: v14.0.0 34011cb0ef41Sopenharmony_ci--> 34021cb0ef41Sopenharmony_ci 34031cb0ef41Sopenharmony_ciData could not be sent on a socket. 34041cb0ef41Sopenharmony_ci 34051cb0ef41Sopenharmony_ci<a id="ERR_STDERR_CLOSE"></a> 34061cb0ef41Sopenharmony_ci 34071cb0ef41Sopenharmony_ci### `ERR_STDERR_CLOSE` 34081cb0ef41Sopenharmony_ci 34091cb0ef41Sopenharmony_ci<!-- YAML 34101cb0ef41Sopenharmony_ciremoved: v10.12.0 34111cb0ef41Sopenharmony_cichanges: 34121cb0ef41Sopenharmony_ci - version: v10.12.0 34131cb0ef41Sopenharmony_ci pr-url: https://github.com/nodejs/node/pull/23053 34141cb0ef41Sopenharmony_ci description: Rather than emitting an error, `process.stderr.end()` now 34151cb0ef41Sopenharmony_ci only closes the stream side but not the underlying resource, 34161cb0ef41Sopenharmony_ci making this error obsolete. 34171cb0ef41Sopenharmony_ci--> 34181cb0ef41Sopenharmony_ci 34191cb0ef41Sopenharmony_ciAn attempt was made to close the `process.stderr` stream. By design, Node.js 34201cb0ef41Sopenharmony_cidoes not allow `stdout` or `stderr` streams to be closed by user code. 34211cb0ef41Sopenharmony_ci 34221cb0ef41Sopenharmony_ci<a id="ERR_STDOUT_CLOSE"></a> 34231cb0ef41Sopenharmony_ci 34241cb0ef41Sopenharmony_ci### `ERR_STDOUT_CLOSE` 34251cb0ef41Sopenharmony_ci 34261cb0ef41Sopenharmony_ci<!-- YAML 34271cb0ef41Sopenharmony_ciremoved: v10.12.0 34281cb0ef41Sopenharmony_cichanges: 34291cb0ef41Sopenharmony_ci - version: v10.12.0 34301cb0ef41Sopenharmony_ci pr-url: https://github.com/nodejs/node/pull/23053 34311cb0ef41Sopenharmony_ci description: Rather than emitting an error, `process.stderr.end()` now 34321cb0ef41Sopenharmony_ci only closes the stream side but not the underlying resource, 34331cb0ef41Sopenharmony_ci making this error obsolete. 34341cb0ef41Sopenharmony_ci--> 34351cb0ef41Sopenharmony_ci 34361cb0ef41Sopenharmony_ciAn attempt was made to close the `process.stdout` stream. By design, Node.js 34371cb0ef41Sopenharmony_cidoes not allow `stdout` or `stderr` streams to be closed by user code. 34381cb0ef41Sopenharmony_ci 34391cb0ef41Sopenharmony_ci<a id="ERR_STREAM_READ_NOT_IMPLEMENTED"></a> 34401cb0ef41Sopenharmony_ci 34411cb0ef41Sopenharmony_ci### `ERR_STREAM_READ_NOT_IMPLEMENTED` 34421cb0ef41Sopenharmony_ci 34431cb0ef41Sopenharmony_ci<!-- YAML 34441cb0ef41Sopenharmony_ciadded: v9.0.0 34451cb0ef41Sopenharmony_ciremoved: v10.0.0 34461cb0ef41Sopenharmony_ci--> 34471cb0ef41Sopenharmony_ci 34481cb0ef41Sopenharmony_ciUsed when an attempt is made to use a readable stream that has not implemented 34491cb0ef41Sopenharmony_ci[`readable._read()`][]. 34501cb0ef41Sopenharmony_ci 34511cb0ef41Sopenharmony_ci<a id="ERR_TLS_RENEGOTIATION_FAILED"></a> 34521cb0ef41Sopenharmony_ci 34531cb0ef41Sopenharmony_ci### `ERR_TLS_RENEGOTIATION_FAILED` 34541cb0ef41Sopenharmony_ci 34551cb0ef41Sopenharmony_ci<!-- YAML 34561cb0ef41Sopenharmony_ciadded: v9.0.0 34571cb0ef41Sopenharmony_ciremoved: v10.0.0 34581cb0ef41Sopenharmony_ci--> 34591cb0ef41Sopenharmony_ci 34601cb0ef41Sopenharmony_ciUsed when a TLS renegotiation request has failed in a non-specific way. 34611cb0ef41Sopenharmony_ci 34621cb0ef41Sopenharmony_ci<a id="ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER"></a> 34631cb0ef41Sopenharmony_ci 34641cb0ef41Sopenharmony_ci### `ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER` 34651cb0ef41Sopenharmony_ci 34661cb0ef41Sopenharmony_ci<!-- YAML 34671cb0ef41Sopenharmony_ciadded: v10.5.0 34681cb0ef41Sopenharmony_ciremoved: v14.0.0 34691cb0ef41Sopenharmony_ci--> 34701cb0ef41Sopenharmony_ci 34711cb0ef41Sopenharmony_ciA `SharedArrayBuffer` whose memory is not managed by the JavaScript engine 34721cb0ef41Sopenharmony_cior by Node.js was encountered during serialization. Such a `SharedArrayBuffer` 34731cb0ef41Sopenharmony_cicannot be serialized. 34741cb0ef41Sopenharmony_ci 34751cb0ef41Sopenharmony_ciThis can only happen when native addons create `SharedArrayBuffer`s in 34761cb0ef41Sopenharmony_ci"externalized" mode, or put existing `SharedArrayBuffer` into externalized mode. 34771cb0ef41Sopenharmony_ci 34781cb0ef41Sopenharmony_ci<a id="ERR_UNKNOWN_STDIN_TYPE"></a> 34791cb0ef41Sopenharmony_ci 34801cb0ef41Sopenharmony_ci### `ERR_UNKNOWN_STDIN_TYPE` 34811cb0ef41Sopenharmony_ci 34821cb0ef41Sopenharmony_ci<!-- YAML 34831cb0ef41Sopenharmony_ciadded: v8.0.0 34841cb0ef41Sopenharmony_ciremoved: v11.7.0 34851cb0ef41Sopenharmony_ci--> 34861cb0ef41Sopenharmony_ci 34871cb0ef41Sopenharmony_ciAn attempt was made to launch a Node.js process with an unknown `stdin` file 34881cb0ef41Sopenharmony_citype. This error is usually an indication of a bug within Node.js itself, 34891cb0ef41Sopenharmony_cialthough it is possible for user code to trigger it. 34901cb0ef41Sopenharmony_ci 34911cb0ef41Sopenharmony_ci<a id="ERR_UNKNOWN_STREAM_TYPE"></a> 34921cb0ef41Sopenharmony_ci 34931cb0ef41Sopenharmony_ci### `ERR_UNKNOWN_STREAM_TYPE` 34941cb0ef41Sopenharmony_ci 34951cb0ef41Sopenharmony_ci<!-- YAML 34961cb0ef41Sopenharmony_ciadded: v8.0.0 34971cb0ef41Sopenharmony_ciremoved: v11.7.0 34981cb0ef41Sopenharmony_ci--> 34991cb0ef41Sopenharmony_ci 35001cb0ef41Sopenharmony_ciAn attempt was made to launch a Node.js process with an unknown `stdout` or 35011cb0ef41Sopenharmony_ci`stderr` file type. This error is usually an indication of a bug within Node.js 35021cb0ef41Sopenharmony_ciitself, although it is possible for user code to trigger it. 35031cb0ef41Sopenharmony_ci 35041cb0ef41Sopenharmony_ci<a id="ERR_V8BREAKITERATOR"></a> 35051cb0ef41Sopenharmony_ci 35061cb0ef41Sopenharmony_ci### `ERR_V8BREAKITERATOR` 35071cb0ef41Sopenharmony_ci 35081cb0ef41Sopenharmony_ciThe V8 `BreakIterator` API was used but the full ICU data set is not installed. 35091cb0ef41Sopenharmony_ci 35101cb0ef41Sopenharmony_ci<a id="ERR_VALUE_OUT_OF_RANGE"></a> 35111cb0ef41Sopenharmony_ci 35121cb0ef41Sopenharmony_ci### `ERR_VALUE_OUT_OF_RANGE` 35131cb0ef41Sopenharmony_ci 35141cb0ef41Sopenharmony_ci<!-- YAML 35151cb0ef41Sopenharmony_ciadded: v9.0.0 35161cb0ef41Sopenharmony_ciremoved: v10.0.0 35171cb0ef41Sopenharmony_ci--> 35181cb0ef41Sopenharmony_ci 35191cb0ef41Sopenharmony_ciUsed when a given value is out of the accepted range. 35201cb0ef41Sopenharmony_ci 35211cb0ef41Sopenharmony_ci<a id="ERR_VM_MODULE_NOT_LINKED"></a> 35221cb0ef41Sopenharmony_ci 35231cb0ef41Sopenharmony_ci### `ERR_VM_MODULE_NOT_LINKED` 35241cb0ef41Sopenharmony_ci 35251cb0ef41Sopenharmony_ciThe module must be successfully linked before instantiation. 35261cb0ef41Sopenharmony_ci 35271cb0ef41Sopenharmony_ci<a id="ERR_VM_MODULE_LINKING_ERRORED"></a> 35281cb0ef41Sopenharmony_ci 35291cb0ef41Sopenharmony_ci### `ERR_VM_MODULE_LINKING_ERRORED` 35301cb0ef41Sopenharmony_ci 35311cb0ef41Sopenharmony_ci<!-- YAML 35321cb0ef41Sopenharmony_ciadded: v10.0.0 35331cb0ef41Sopenharmony_ciremoved: v18.1.0 35341cb0ef41Sopenharmony_ci--> 35351cb0ef41Sopenharmony_ci 35361cb0ef41Sopenharmony_ciThe linker function returned a module for which linking has failed. 35371cb0ef41Sopenharmony_ci 35381cb0ef41Sopenharmony_ci<a id="ERR_WORKER_UNSUPPORTED_EXTENSION"></a> 35391cb0ef41Sopenharmony_ci 35401cb0ef41Sopenharmony_ci### `ERR_WORKER_UNSUPPORTED_EXTENSION` 35411cb0ef41Sopenharmony_ci 35421cb0ef41Sopenharmony_ci<!-- YAML 35431cb0ef41Sopenharmony_ciadded: v11.0.0 35441cb0ef41Sopenharmony_ciremoved: v16.9.0 35451cb0ef41Sopenharmony_ci--> 35461cb0ef41Sopenharmony_ci 35471cb0ef41Sopenharmony_ciThe pathname used for the main script of a worker has an 35481cb0ef41Sopenharmony_ciunknown file extension. 35491cb0ef41Sopenharmony_ci 35501cb0ef41Sopenharmony_ci<a id="ERR_ZLIB_BINDING_CLOSED"></a> 35511cb0ef41Sopenharmony_ci 35521cb0ef41Sopenharmony_ci### `ERR_ZLIB_BINDING_CLOSED` 35531cb0ef41Sopenharmony_ci 35541cb0ef41Sopenharmony_ci<!-- YAML 35551cb0ef41Sopenharmony_ciadded: v9.0.0 35561cb0ef41Sopenharmony_ciremoved: v10.0.0 35571cb0ef41Sopenharmony_ci--> 35581cb0ef41Sopenharmony_ci 35591cb0ef41Sopenharmony_ciUsed when an attempt is made to use a `zlib` object after it has already been 35601cb0ef41Sopenharmony_ciclosed. 35611cb0ef41Sopenharmony_ci 35621cb0ef41Sopenharmony_ci<a id="ERR_CPU_USAGE"></a> 35631cb0ef41Sopenharmony_ci 35641cb0ef41Sopenharmony_ci### `ERR_CPU_USAGE` 35651cb0ef41Sopenharmony_ci 35661cb0ef41Sopenharmony_ci<!-- YAML 35671cb0ef41Sopenharmony_ciremoved: v15.0.0 35681cb0ef41Sopenharmony_ci--> 35691cb0ef41Sopenharmony_ci 35701cb0ef41Sopenharmony_ciThe native call from `process.cpuUsage` could not be processed. 35711cb0ef41Sopenharmony_ci 35721cb0ef41Sopenharmony_ci[ES Module]: esm.md 35731cb0ef41Sopenharmony_ci[ICU]: intl.md#internationalization-support 35741cb0ef41Sopenharmony_ci[JSON Web Key Elliptic Curve Registry]: https://www.iana.org/assignments/jose/jose.xhtml#web-key-elliptic-curve 35751cb0ef41Sopenharmony_ci[JSON Web Key Types Registry]: https://www.iana.org/assignments/jose/jose.xhtml#web-key-types 35761cb0ef41Sopenharmony_ci[Node.js error codes]: #nodejs-error-codes 35771cb0ef41Sopenharmony_ci[RFC 7230 Section 3]: https://tools.ietf.org/html/rfc7230#section-3 35781cb0ef41Sopenharmony_ci[Subresource Integrity specification]: https://www.w3.org/TR/SRI/#the-integrity-attribute 35791cb0ef41Sopenharmony_ci[V8's stack trace API]: https://v8.dev/docs/stack-trace-api 35801cb0ef41Sopenharmony_ci[WHATWG Supported Encodings]: util.md#whatwg-supported-encodings 35811cb0ef41Sopenharmony_ci[WHATWG URL API]: url.md#the-whatwg-url-api 35821cb0ef41Sopenharmony_ci[`"exports"`]: packages.md#exports 35831cb0ef41Sopenharmony_ci[`"imports"`]: packages.md#imports 35841cb0ef41Sopenharmony_ci[`'uncaughtException'`]: process.md#event-uncaughtexception 35851cb0ef41Sopenharmony_ci[`--disable-proto=throw`]: cli.md#--disable-protomode 35861cb0ef41Sopenharmony_ci[`--force-fips`]: cli.md#--force-fips 35871cb0ef41Sopenharmony_ci[`--no-addons`]: cli.md#--no-addons 35881cb0ef41Sopenharmony_ci[`--unhandled-rejections`]: cli.md#--unhandled-rejectionsmode 35891cb0ef41Sopenharmony_ci[`Class: assert.AssertionError`]: assert.md#class-assertassertionerror 35901cb0ef41Sopenharmony_ci[`ERR_INVALID_ARG_TYPE`]: #err_invalid_arg_type 35911cb0ef41Sopenharmony_ci[`ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST`]: #err_missing_message_port_in_transfer_list 35921cb0ef41Sopenharmony_ci[`ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST`]: #err_missing_transferable_in_transfer_list 35931cb0ef41Sopenharmony_ci[`EventEmitter`]: events.md#class-eventemitter 35941cb0ef41Sopenharmony_ci[`MessagePort`]: worker_threads.md#class-messageport 35951cb0ef41Sopenharmony_ci[`Object.getPrototypeOf`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf 35961cb0ef41Sopenharmony_ci[`Object.setPrototypeOf`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf 35971cb0ef41Sopenharmony_ci[`REPL`]: repl.md 35981cb0ef41Sopenharmony_ci[`ServerResponse`]: http.md#class-httpserverresponse 35991cb0ef41Sopenharmony_ci[`Writable`]: stream.md#class-streamwritable 36001cb0ef41Sopenharmony_ci[`child_process`]: child_process.md 36011cb0ef41Sopenharmony_ci[`cipher.getAuthTag()`]: crypto.md#ciphergetauthtag 36021cb0ef41Sopenharmony_ci[`crypto.getDiffieHellman()`]: crypto.md#cryptogetdiffiehellmangroupname 36031cb0ef41Sopenharmony_ci[`crypto.scrypt()`]: crypto.md#cryptoscryptpassword-salt-keylen-options-callback 36041cb0ef41Sopenharmony_ci[`crypto.scryptSync()`]: crypto.md#cryptoscryptsyncpassword-salt-keylen-options 36051cb0ef41Sopenharmony_ci[`crypto.timingSafeEqual()`]: crypto.md#cryptotimingsafeequala-b 36061cb0ef41Sopenharmony_ci[`dgram.connect()`]: dgram.md#socketconnectport-address-callback 36071cb0ef41Sopenharmony_ci[`dgram.createSocket()`]: dgram.md#dgramcreatesocketoptions-callback 36081cb0ef41Sopenharmony_ci[`dgram.disconnect()`]: dgram.md#socketdisconnect 36091cb0ef41Sopenharmony_ci[`dgram.remoteAddress()`]: dgram.md#socketremoteaddress 36101cb0ef41Sopenharmony_ci[`errno`(3) man page]: https://man7.org/linux/man-pages/man3/errno.3.html 36111cb0ef41Sopenharmony_ci[`fs.Dir`]: fs.md#class-fsdir 36121cb0ef41Sopenharmony_ci[`fs.cp()`]: fs.md#fscpsrc-dest-options-callback 36131cb0ef41Sopenharmony_ci[`fs.readFileSync`]: fs.md#fsreadfilesyncpath-options 36141cb0ef41Sopenharmony_ci[`fs.readdir`]: fs.md#fsreaddirpath-options-callback 36151cb0ef41Sopenharmony_ci[`fs.symlink()`]: fs.md#fssymlinktarget-path-type-callback 36161cb0ef41Sopenharmony_ci[`fs.symlinkSync()`]: fs.md#fssymlinksynctarget-path-type 36171cb0ef41Sopenharmony_ci[`fs.unlink`]: fs.md#fsunlinkpath-callback 36181cb0ef41Sopenharmony_ci[`fs`]: fs.md 36191cb0ef41Sopenharmony_ci[`hash.digest()`]: crypto.md#hashdigestencoding 36201cb0ef41Sopenharmony_ci[`hash.update()`]: crypto.md#hashupdatedata-inputencoding 36211cb0ef41Sopenharmony_ci[`http`]: http.md 36221cb0ef41Sopenharmony_ci[`https`]: https.md 36231cb0ef41Sopenharmony_ci[`libuv Error handling`]: https://docs.libuv.org/en/v1.x/errors.html 36241cb0ef41Sopenharmony_ci[`net.Socket.write()`]: net.md#socketwritedata-encoding-callback 36251cb0ef41Sopenharmony_ci[`net`]: net.md 36261cb0ef41Sopenharmony_ci[`new URL(input)`]: url.md#new-urlinput-base 36271cb0ef41Sopenharmony_ci[`new URLSearchParams(iterable)`]: url.md#new-urlsearchparamsiterable 36281cb0ef41Sopenharmony_ci[`package.json`]: packages.md#nodejs-packagejson-field-definitions 36291cb0ef41Sopenharmony_ci[`postMessage()`]: worker_threads.md#portpostmessagevalue-transferlist 36301cb0ef41Sopenharmony_ci[`process.on('exit')`]: process.md#event-exit 36311cb0ef41Sopenharmony_ci[`process.send()`]: process.md#processsendmessage-sendhandle-options-callback 36321cb0ef41Sopenharmony_ci[`process.setUncaughtExceptionCaptureCallback()`]: process.md#processsetuncaughtexceptioncapturecallbackfn 36331cb0ef41Sopenharmony_ci[`readable._read()`]: stream.md#readable_readsize 36341cb0ef41Sopenharmony_ci[`require('node:crypto').setEngine()`]: crypto.md#cryptosetengineengine-flags 36351cb0ef41Sopenharmony_ci[`require()`]: modules.md#requireid 36361cb0ef41Sopenharmony_ci[`server.close()`]: net.md#serverclosecallback 36371cb0ef41Sopenharmony_ci[`server.listen()`]: net.md#serverlisten 36381cb0ef41Sopenharmony_ci[`sign.sign()`]: crypto.md#signsignprivatekey-outputencoding 36391cb0ef41Sopenharmony_ci[`stream.pipe()`]: stream.md#readablepipedestination-options 36401cb0ef41Sopenharmony_ci[`stream.push()`]: stream.md#readablepushchunk-encoding 36411cb0ef41Sopenharmony_ci[`stream.unshift()`]: stream.md#readableunshiftchunk-encoding 36421cb0ef41Sopenharmony_ci[`stream.write()`]: stream.md#writablewritechunk-encoding-callback 36431cb0ef41Sopenharmony_ci[`subprocess.kill()`]: child_process.md#subprocesskillsignal 36441cb0ef41Sopenharmony_ci[`subprocess.send()`]: child_process.md#subprocesssendmessage-sendhandle-options-callback 36451cb0ef41Sopenharmony_ci[`url.parse()`]: url.md#urlparseurlstring-parsequerystring-slashesdenotehost 36461cb0ef41Sopenharmony_ci[`util.getSystemErrorName(error.errno)`]: util.md#utilgetsystemerrornameerr 36471cb0ef41Sopenharmony_ci[`util.inspect()`]: util.md#utilinspectobject-options 36481cb0ef41Sopenharmony_ci[`util.parseArgs()`]: util.md#utilparseargsconfig 36491cb0ef41Sopenharmony_ci[`v8.startupSnapshot.setDeserializeMainFunction()`]: v8.md#v8startupsnapshotsetdeserializemainfunctioncallback-data 36501cb0ef41Sopenharmony_ci[`zlib`]: zlib.md 36511cb0ef41Sopenharmony_ci[crypto digest algorithm]: crypto.md#cryptogethashes 36521cb0ef41Sopenharmony_ci[debugger]: debugger.md 36531cb0ef41Sopenharmony_ci[define a custom subpath]: packages.md#subpath-exports 36541cb0ef41Sopenharmony_ci[domains]: domain.md 36551cb0ef41Sopenharmony_ci[event emitter-based]: events.md#class-eventemitter 36561cb0ef41Sopenharmony_ci[file descriptors]: https://en.wikipedia.org/wiki/File_descriptor 36571cb0ef41Sopenharmony_ci[policy]: permissions.md#policies 36581cb0ef41Sopenharmony_ci[self-reference a package using its name]: packages.md#self-referencing-a-package-using-its-name 36591cb0ef41Sopenharmony_ci[stream-based]: stream.md 36601cb0ef41Sopenharmony_ci[syscall]: https://man7.org/linux/man-pages/man2/syscalls.2.html 36611cb0ef41Sopenharmony_ci[try-catch]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch 36621cb0ef41Sopenharmony_ci[vm]: vm.md 3663