11cb0ef41Sopenharmony_ci<!DOCTYPE html> 21cb0ef41Sopenharmony_ci<html lang="en"> 31cb0ef41Sopenharmony_ci<head> 41cb0ef41Sopenharmony_ci <meta charset="utf-8"> 51cb0ef41Sopenharmony_ci <meta name="viewport" content="width=device-width"> 61cb0ef41Sopenharmony_ci <meta name="nodejs.org:node-version" content="v18.20.1"> 71cb0ef41Sopenharmony_ci <title>Errors | Node.js v18.20.1 Documentation</title> 81cb0ef41Sopenharmony_ci <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic&display=fallback"> 91cb0ef41Sopenharmony_ci <link rel="stylesheet" href="assets/style.css"> 101cb0ef41Sopenharmony_ci <link rel="stylesheet" href="assets/hljs.css"> 111cb0ef41Sopenharmony_ci <link rel="canonical" href="https://nodejs.org/api/errors.html"> 121cb0ef41Sopenharmony_ci <script async defer src="assets/api.js" type="text/javascript"></script> 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ci</head> 151cb0ef41Sopenharmony_ci<body class="alt apidoc" id="api-section-errors"> 161cb0ef41Sopenharmony_ci <div id="content" class="clearfix"> 171cb0ef41Sopenharmony_ci <div id="column2" class="interior"> 181cb0ef41Sopenharmony_ci <div id="intro" class="interior"> 191cb0ef41Sopenharmony_ci <a href="/" title="Go back to the home page"> 201cb0ef41Sopenharmony_ci Node.js 211cb0ef41Sopenharmony_ci </a> 221cb0ef41Sopenharmony_ci </div> 231cb0ef41Sopenharmony_ci <ul> 241cb0ef41Sopenharmony_ci<li><a href="documentation.html" class="nav-documentation">About this documentation</a></li> 251cb0ef41Sopenharmony_ci<li><a href="synopsis.html" class="nav-synopsis">Usage and example</a></li> 261cb0ef41Sopenharmony_ci</ul> 271cb0ef41Sopenharmony_ci<hr class="line"> 281cb0ef41Sopenharmony_ci<ul> 291cb0ef41Sopenharmony_ci<li><a href="assert.html" class="nav-assert">Assertion testing</a></li> 301cb0ef41Sopenharmony_ci<li><a href="async_context.html" class="nav-async_context">Asynchronous context tracking</a></li> 311cb0ef41Sopenharmony_ci<li><a href="async_hooks.html" class="nav-async_hooks">Async hooks</a></li> 321cb0ef41Sopenharmony_ci<li><a href="buffer.html" class="nav-buffer">Buffer</a></li> 331cb0ef41Sopenharmony_ci<li><a href="addons.html" class="nav-addons">C++ addons</a></li> 341cb0ef41Sopenharmony_ci<li><a href="n-api.html" class="nav-n-api">C/C++ addons with Node-API</a></li> 351cb0ef41Sopenharmony_ci<li><a href="embedding.html" class="nav-embedding">C++ embedder API</a></li> 361cb0ef41Sopenharmony_ci<li><a href="child_process.html" class="nav-child_process">Child processes</a></li> 371cb0ef41Sopenharmony_ci<li><a href="cluster.html" class="nav-cluster">Cluster</a></li> 381cb0ef41Sopenharmony_ci<li><a href="cli.html" class="nav-cli">Command-line options</a></li> 391cb0ef41Sopenharmony_ci<li><a href="console.html" class="nav-console">Console</a></li> 401cb0ef41Sopenharmony_ci<li><a href="corepack.html" class="nav-corepack">Corepack</a></li> 411cb0ef41Sopenharmony_ci<li><a href="crypto.html" class="nav-crypto">Crypto</a></li> 421cb0ef41Sopenharmony_ci<li><a href="debugger.html" class="nav-debugger">Debugger</a></li> 431cb0ef41Sopenharmony_ci<li><a href="deprecations.html" class="nav-deprecations">Deprecated APIs</a></li> 441cb0ef41Sopenharmony_ci<li><a href="diagnostics_channel.html" class="nav-diagnostics_channel">Diagnostics Channel</a></li> 451cb0ef41Sopenharmony_ci<li><a href="dns.html" class="nav-dns">DNS</a></li> 461cb0ef41Sopenharmony_ci<li><a href="domain.html" class="nav-domain">Domain</a></li> 471cb0ef41Sopenharmony_ci<li><a href="errors.html" class="nav-errors active">Errors</a></li> 481cb0ef41Sopenharmony_ci<li><a href="events.html" class="nav-events">Events</a></li> 491cb0ef41Sopenharmony_ci<li><a href="fs.html" class="nav-fs">File system</a></li> 501cb0ef41Sopenharmony_ci<li><a href="globals.html" class="nav-globals">Globals</a></li> 511cb0ef41Sopenharmony_ci<li><a href="http.html" class="nav-http">HTTP</a></li> 521cb0ef41Sopenharmony_ci<li><a href="http2.html" class="nav-http2">HTTP/2</a></li> 531cb0ef41Sopenharmony_ci<li><a href="https.html" class="nav-https">HTTPS</a></li> 541cb0ef41Sopenharmony_ci<li><a href="inspector.html" class="nav-inspector">Inspector</a></li> 551cb0ef41Sopenharmony_ci<li><a href="intl.html" class="nav-intl">Internationalization</a></li> 561cb0ef41Sopenharmony_ci<li><a href="modules.html" class="nav-modules">Modules: CommonJS modules</a></li> 571cb0ef41Sopenharmony_ci<li><a href="esm.html" class="nav-esm">Modules: ECMAScript modules</a></li> 581cb0ef41Sopenharmony_ci<li><a href="module.html" class="nav-module">Modules: <code>node:module</code> API</a></li> 591cb0ef41Sopenharmony_ci<li><a href="packages.html" class="nav-packages">Modules: Packages</a></li> 601cb0ef41Sopenharmony_ci<li><a href="net.html" class="nav-net">Net</a></li> 611cb0ef41Sopenharmony_ci<li><a href="os.html" class="nav-os">OS</a></li> 621cb0ef41Sopenharmony_ci<li><a href="path.html" class="nav-path">Path</a></li> 631cb0ef41Sopenharmony_ci<li><a href="perf_hooks.html" class="nav-perf_hooks">Performance hooks</a></li> 641cb0ef41Sopenharmony_ci<li><a href="permissions.html" class="nav-permissions">Permissions</a></li> 651cb0ef41Sopenharmony_ci<li><a href="process.html" class="nav-process">Process</a></li> 661cb0ef41Sopenharmony_ci<li><a href="punycode.html" class="nav-punycode">Punycode</a></li> 671cb0ef41Sopenharmony_ci<li><a href="querystring.html" class="nav-querystring">Query strings</a></li> 681cb0ef41Sopenharmony_ci<li><a href="readline.html" class="nav-readline">Readline</a></li> 691cb0ef41Sopenharmony_ci<li><a href="repl.html" class="nav-repl">REPL</a></li> 701cb0ef41Sopenharmony_ci<li><a href="report.html" class="nav-report">Report</a></li> 711cb0ef41Sopenharmony_ci<li><a href="single-executable-applications.html" class="nav-single-executable-applications">Single executable applications</a></li> 721cb0ef41Sopenharmony_ci<li><a href="stream.html" class="nav-stream">Stream</a></li> 731cb0ef41Sopenharmony_ci<li><a href="string_decoder.html" class="nav-string_decoder">String decoder</a></li> 741cb0ef41Sopenharmony_ci<li><a href="test.html" class="nav-test">Test runner</a></li> 751cb0ef41Sopenharmony_ci<li><a href="timers.html" class="nav-timers">Timers</a></li> 761cb0ef41Sopenharmony_ci<li><a href="tls.html" class="nav-tls">TLS/SSL</a></li> 771cb0ef41Sopenharmony_ci<li><a href="tracing.html" class="nav-tracing">Trace events</a></li> 781cb0ef41Sopenharmony_ci<li><a href="tty.html" class="nav-tty">TTY</a></li> 791cb0ef41Sopenharmony_ci<li><a href="dgram.html" class="nav-dgram">UDP/datagram</a></li> 801cb0ef41Sopenharmony_ci<li><a href="url.html" class="nav-url">URL</a></li> 811cb0ef41Sopenharmony_ci<li><a href="util.html" class="nav-util">Utilities</a></li> 821cb0ef41Sopenharmony_ci<li><a href="v8.html" class="nav-v8">V8</a></li> 831cb0ef41Sopenharmony_ci<li><a href="vm.html" class="nav-vm">VM</a></li> 841cb0ef41Sopenharmony_ci<li><a href="wasi.html" class="nav-wasi">WASI</a></li> 851cb0ef41Sopenharmony_ci<li><a href="webcrypto.html" class="nav-webcrypto">Web Crypto API</a></li> 861cb0ef41Sopenharmony_ci<li><a href="webstreams.html" class="nav-webstreams">Web Streams API</a></li> 871cb0ef41Sopenharmony_ci<li><a href="worker_threads.html" class="nav-worker_threads">Worker threads</a></li> 881cb0ef41Sopenharmony_ci<li><a href="zlib.html" class="nav-zlib">Zlib</a></li> 891cb0ef41Sopenharmony_ci</ul> 901cb0ef41Sopenharmony_ci<hr class="line"> 911cb0ef41Sopenharmony_ci<ul> 921cb0ef41Sopenharmony_ci<li><a href="https://github.com/nodejs/node" class="nav-https-github-com-nodejs-node">Code repository and issue tracker</a></li> 931cb0ef41Sopenharmony_ci</ul> 941cb0ef41Sopenharmony_ci </div> 951cb0ef41Sopenharmony_ci 961cb0ef41Sopenharmony_ci <div id="column1" data-id="errors" class="interior"> 971cb0ef41Sopenharmony_ci <header class="header"> 981cb0ef41Sopenharmony_ci <div class="header-container"> 991cb0ef41Sopenharmony_ci <h1>Node.js v18.20.1 documentation</h1> 1001cb0ef41Sopenharmony_ci <button class="theme-toggle-btn" id="theme-toggle-btn" title="Toggle dark mode/light mode" aria-label="Toggle dark mode/light mode" hidden> 1011cb0ef41Sopenharmony_ci <svg xmlns="http://www.w3.org/2000/svg" class="icon dark-icon" height="24" width="24"> 1021cb0ef41Sopenharmony_ci <path fill="none" d="M0 0h24v24H0z" /> 1031cb0ef41Sopenharmony_ci <path d="M11.1 12.08c-2.33-4.51-.5-8.48.53-10.07C6.27 2.2 1.98 6.59 1.98 12c0 .14.02.28.02.42.62-.27 1.29-.42 2-.42 1.66 0 3.18.83 4.1 2.15A4.01 4.01 0 0111 18c0 1.52-.87 2.83-2.12 3.51.98.32 2.03.5 3.11.5 3.5 0 6.58-1.8 8.37-4.52-2.36.23-6.98-.97-9.26-5.41z"/> 1041cb0ef41Sopenharmony_ci <path d="M7 16h-.18C6.4 14.84 5.3 14 4 14c-1.66 0-3 1.34-3 3s1.34 3 3 3h3c1.1 0 2-.9 2-2s-.9-2-2-2z"/> 1051cb0ef41Sopenharmony_ci </svg> 1061cb0ef41Sopenharmony_ci <svg xmlns="http://www.w3.org/2000/svg" class="icon light-icon" height="24" width="24"> 1071cb0ef41Sopenharmony_ci <path d="M0 0h24v24H0z" fill="none" /> 1081cb0ef41Sopenharmony_ci <path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"/> 1091cb0ef41Sopenharmony_ci </svg> 1101cb0ef41Sopenharmony_ci </button> 1111cb0ef41Sopenharmony_ci </div> 1121cb0ef41Sopenharmony_ci <div id="gtoc"> 1131cb0ef41Sopenharmony_ci <ul> 1141cb0ef41Sopenharmony_ci <li class="pinned-header">Node.js v18.20.1</li> 1151cb0ef41Sopenharmony_ci 1161cb0ef41Sopenharmony_ci <li class="picker-header"> 1171cb0ef41Sopenharmony_ci <a href="#"> 1181cb0ef41Sopenharmony_ci <span class="collapsed-arrow">►</span><span class="expanded-arrow">▼</span> 1191cb0ef41Sopenharmony_ci Table of contents 1201cb0ef41Sopenharmony_ci </a> 1211cb0ef41Sopenharmony_ci 1221cb0ef41Sopenharmony_ci <div class="picker"><div class="toc"><ul> 1231cb0ef41Sopenharmony_ci<li><a href="#errors">Errors</a> 1241cb0ef41Sopenharmony_ci<ul> 1251cb0ef41Sopenharmony_ci<li><a href="#error-propagation-and-interception">Error propagation and interception</a></li> 1261cb0ef41Sopenharmony_ci<li><a href="#class-error">Class: <code>Error</code></a> 1271cb0ef41Sopenharmony_ci<ul> 1281cb0ef41Sopenharmony_ci<li><a href="#new-errormessage-options"><code>new Error(message[, options])</code></a></li> 1291cb0ef41Sopenharmony_ci<li><a href="#errorcapturestacktracetargetobject-constructoropt"><code>Error.captureStackTrace(targetObject[, constructorOpt])</code></a></li> 1301cb0ef41Sopenharmony_ci<li><a href="#errorstacktracelimit"><code>Error.stackTraceLimit</code></a></li> 1311cb0ef41Sopenharmony_ci<li><a href="#errorcause"><code>error.cause</code></a></li> 1321cb0ef41Sopenharmony_ci<li><a href="#errorcode"><code>error.code</code></a></li> 1331cb0ef41Sopenharmony_ci<li><a href="#errormessage"><code>error.message</code></a></li> 1341cb0ef41Sopenharmony_ci<li><a href="#errorstack"><code>error.stack</code></a></li> 1351cb0ef41Sopenharmony_ci</ul> 1361cb0ef41Sopenharmony_ci</li> 1371cb0ef41Sopenharmony_ci<li><a href="#class-assertionerror">Class: <code>AssertionError</code></a></li> 1381cb0ef41Sopenharmony_ci<li><a href="#class-rangeerror">Class: <code>RangeError</code></a></li> 1391cb0ef41Sopenharmony_ci<li><a href="#class-referenceerror">Class: <code>ReferenceError</code></a></li> 1401cb0ef41Sopenharmony_ci<li><a href="#class-syntaxerror">Class: <code>SyntaxError</code></a></li> 1411cb0ef41Sopenharmony_ci<li><a href="#class-systemerror">Class: <code>SystemError</code></a> 1421cb0ef41Sopenharmony_ci<ul> 1431cb0ef41Sopenharmony_ci<li><a href="#erroraddress"><code>error.address</code></a></li> 1441cb0ef41Sopenharmony_ci<li><a href="#errorcode_1"><code>error.code</code></a></li> 1451cb0ef41Sopenharmony_ci<li><a href="#errordest"><code>error.dest</code></a></li> 1461cb0ef41Sopenharmony_ci<li><a href="#errorerrno"><code>error.errno</code></a></li> 1471cb0ef41Sopenharmony_ci<li><a href="#errorinfo"><code>error.info</code></a></li> 1481cb0ef41Sopenharmony_ci<li><a href="#errormessage_1"><code>error.message</code></a></li> 1491cb0ef41Sopenharmony_ci<li><a href="#errorpath"><code>error.path</code></a></li> 1501cb0ef41Sopenharmony_ci<li><a href="#errorport"><code>error.port</code></a></li> 1511cb0ef41Sopenharmony_ci<li><a href="#errorsyscall"><code>error.syscall</code></a></li> 1521cb0ef41Sopenharmony_ci<li><a href="#common-system-errors">Common system errors</a></li> 1531cb0ef41Sopenharmony_ci</ul> 1541cb0ef41Sopenharmony_ci</li> 1551cb0ef41Sopenharmony_ci<li><a href="#class-typeerror">Class: <code>TypeError</code></a></li> 1561cb0ef41Sopenharmony_ci<li><a href="#exceptions-vs-errors">Exceptions vs. errors</a></li> 1571cb0ef41Sopenharmony_ci<li><a href="#openssl-errors">OpenSSL errors</a> 1581cb0ef41Sopenharmony_ci<ul> 1591cb0ef41Sopenharmony_ci<li><a href="#erroropensslerrorstack"><code>error.opensslErrorStack</code></a></li> 1601cb0ef41Sopenharmony_ci<li><a href="#errorfunction"><code>error.function</code></a></li> 1611cb0ef41Sopenharmony_ci<li><a href="#errorlibrary"><code>error.library</code></a></li> 1621cb0ef41Sopenharmony_ci<li><a href="#errorreason"><code>error.reason</code></a></li> 1631cb0ef41Sopenharmony_ci</ul> 1641cb0ef41Sopenharmony_ci</li> 1651cb0ef41Sopenharmony_ci<li><a href="#nodejs-error-codes">Node.js error codes</a> 1661cb0ef41Sopenharmony_ci<ul> 1671cb0ef41Sopenharmony_ci<li><a href="#abort_err"><code>ABORT_ERR</code></a></li> 1681cb0ef41Sopenharmony_ci<li><a href="#err_access_denied"><code>ERR_ACCESS_DENIED</code></a></li> 1691cb0ef41Sopenharmony_ci<li><a href="#err_ambiguous_argument"><code>ERR_AMBIGUOUS_ARGUMENT</code></a></li> 1701cb0ef41Sopenharmony_ci<li><a href="#err_arg_not_iterable"><code>ERR_ARG_NOT_ITERABLE</code></a></li> 1711cb0ef41Sopenharmony_ci<li><a href="#err_assertion"><code>ERR_ASSERTION</code></a></li> 1721cb0ef41Sopenharmony_ci<li><a href="#err_async_callback"><code>ERR_ASYNC_CALLBACK</code></a></li> 1731cb0ef41Sopenharmony_ci<li><a href="#err_async_type"><code>ERR_ASYNC_TYPE</code></a></li> 1741cb0ef41Sopenharmony_ci<li><a href="#err_brotli_compression_failed"><code>ERR_BROTLI_COMPRESSION_FAILED</code></a></li> 1751cb0ef41Sopenharmony_ci<li><a href="#err_brotli_invalid_param"><code>ERR_BROTLI_INVALID_PARAM</code></a></li> 1761cb0ef41Sopenharmony_ci<li><a href="#err_buffer_context_not_available"><code>ERR_BUFFER_CONTEXT_NOT_AVAILABLE</code></a></li> 1771cb0ef41Sopenharmony_ci<li><a href="#err_buffer_out_of_bounds"><code>ERR_BUFFER_OUT_OF_BOUNDS</code></a></li> 1781cb0ef41Sopenharmony_ci<li><a href="#err_buffer_too_large"><code>ERR_BUFFER_TOO_LARGE</code></a></li> 1791cb0ef41Sopenharmony_ci<li><a href="#err_cannot_watch_sigint"><code>ERR_CANNOT_WATCH_SIGINT</code></a></li> 1801cb0ef41Sopenharmony_ci<li><a href="#err_child_closed_before_reply"><code>ERR_CHILD_CLOSED_BEFORE_REPLY</code></a></li> 1811cb0ef41Sopenharmony_ci<li><a href="#err_child_process_ipc_required"><code>ERR_CHILD_PROCESS_IPC_REQUIRED</code></a></li> 1821cb0ef41Sopenharmony_ci<li><a href="#err_child_process_stdio_maxbuffer"><code>ERR_CHILD_PROCESS_STDIO_MAXBUFFER</code></a></li> 1831cb0ef41Sopenharmony_ci<li><a href="#err_closed_message_port"><code>ERR_CLOSED_MESSAGE_PORT</code></a></li> 1841cb0ef41Sopenharmony_ci<li><a href="#err_console_writable_stream"><code>ERR_CONSOLE_WRITABLE_STREAM</code></a></li> 1851cb0ef41Sopenharmony_ci<li><a href="#err_construct_call_invalid"><code>ERR_CONSTRUCT_CALL_INVALID</code></a></li> 1861cb0ef41Sopenharmony_ci<li><a href="#err_construct_call_required"><code>ERR_CONSTRUCT_CALL_REQUIRED</code></a></li> 1871cb0ef41Sopenharmony_ci<li><a href="#err_context_not_initialized"><code>ERR_CONTEXT_NOT_INITIALIZED</code></a></li> 1881cb0ef41Sopenharmony_ci<li><a href="#err_crypto_custom_engine_not_supported"><code>ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED</code></a></li> 1891cb0ef41Sopenharmony_ci<li><a href="#err_crypto_ecdh_invalid_format"><code>ERR_CRYPTO_ECDH_INVALID_FORMAT</code></a></li> 1901cb0ef41Sopenharmony_ci<li><a href="#err_crypto_ecdh_invalid_public_key"><code>ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY</code></a></li> 1911cb0ef41Sopenharmony_ci<li><a href="#err_crypto_engine_unknown"><code>ERR_CRYPTO_ENGINE_UNKNOWN</code></a></li> 1921cb0ef41Sopenharmony_ci<li><a href="#err_crypto_fips_forced"><code>ERR_CRYPTO_FIPS_FORCED</code></a></li> 1931cb0ef41Sopenharmony_ci<li><a href="#err_crypto_fips_unavailable"><code>ERR_CRYPTO_FIPS_UNAVAILABLE</code></a></li> 1941cb0ef41Sopenharmony_ci<li><a href="#err_crypto_hash_finalized"><code>ERR_CRYPTO_HASH_FINALIZED</code></a></li> 1951cb0ef41Sopenharmony_ci<li><a href="#err_crypto_hash_update_failed"><code>ERR_CRYPTO_HASH_UPDATE_FAILED</code></a></li> 1961cb0ef41Sopenharmony_ci<li><a href="#err_crypto_incompatible_key"><code>ERR_CRYPTO_INCOMPATIBLE_KEY</code></a></li> 1971cb0ef41Sopenharmony_ci<li><a href="#err_crypto_incompatible_key_options"><code>ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS</code></a></li> 1981cb0ef41Sopenharmony_ci<li><a href="#err_crypto_initialization_failed"><code>ERR_CRYPTO_INITIALIZATION_FAILED</code></a></li> 1991cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_auth_tag"><code>ERR_CRYPTO_INVALID_AUTH_TAG</code></a></li> 2001cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_counter"><code>ERR_CRYPTO_INVALID_COUNTER</code></a></li> 2011cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_curve"><code>ERR_CRYPTO_INVALID_CURVE</code></a></li> 2021cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_digest"><code>ERR_CRYPTO_INVALID_DIGEST</code></a></li> 2031cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_iv"><code>ERR_CRYPTO_INVALID_IV</code></a></li> 2041cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_jwk"><code>ERR_CRYPTO_INVALID_JWK</code></a></li> 2051cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_key_object_type"><code>ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE</code></a></li> 2061cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_keylen"><code>ERR_CRYPTO_INVALID_KEYLEN</code></a></li> 2071cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_keypair"><code>ERR_CRYPTO_INVALID_KEYPAIR</code></a></li> 2081cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_keytype"><code>ERR_CRYPTO_INVALID_KEYTYPE</code></a></li> 2091cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_messagelen"><code>ERR_CRYPTO_INVALID_MESSAGELEN</code></a></li> 2101cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_scrypt_params"><code>ERR_CRYPTO_INVALID_SCRYPT_PARAMS</code></a></li> 2111cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_state"><code>ERR_CRYPTO_INVALID_STATE</code></a></li> 2121cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_tag_length"><code>ERR_CRYPTO_INVALID_TAG_LENGTH</code></a></li> 2131cb0ef41Sopenharmony_ci<li><a href="#err_crypto_job_init_failed"><code>ERR_CRYPTO_JOB_INIT_FAILED</code></a></li> 2141cb0ef41Sopenharmony_ci<li><a href="#err_crypto_jwk_unsupported_curve"><code>ERR_CRYPTO_JWK_UNSUPPORTED_CURVE</code></a></li> 2151cb0ef41Sopenharmony_ci<li><a href="#err_crypto_jwk_unsupported_key_type"><code>ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE</code></a></li> 2161cb0ef41Sopenharmony_ci<li><a href="#err_crypto_operation_failed"><code>ERR_CRYPTO_OPERATION_FAILED</code></a></li> 2171cb0ef41Sopenharmony_ci<li><a href="#err_crypto_pbkdf2_error"><code>ERR_CRYPTO_PBKDF2_ERROR</code></a></li> 2181cb0ef41Sopenharmony_ci<li><a href="#err_crypto_scrypt_invalid_parameter"><code>ERR_CRYPTO_SCRYPT_INVALID_PARAMETER</code></a></li> 2191cb0ef41Sopenharmony_ci<li><a href="#err_crypto_scrypt_not_supported"><code>ERR_CRYPTO_SCRYPT_NOT_SUPPORTED</code></a></li> 2201cb0ef41Sopenharmony_ci<li><a href="#err_crypto_sign_key_required"><code>ERR_CRYPTO_SIGN_KEY_REQUIRED</code></a></li> 2211cb0ef41Sopenharmony_ci<li><a href="#err_crypto_timing_safe_equal_length"><code>ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH</code></a></li> 2221cb0ef41Sopenharmony_ci<li><a href="#err_crypto_unknown_cipher"><code>ERR_CRYPTO_UNKNOWN_CIPHER</code></a></li> 2231cb0ef41Sopenharmony_ci<li><a href="#err_crypto_unknown_dh_group"><code>ERR_CRYPTO_UNKNOWN_DH_GROUP</code></a></li> 2241cb0ef41Sopenharmony_ci<li><a href="#err_crypto_unsupported_operation"><code>ERR_CRYPTO_UNSUPPORTED_OPERATION</code></a></li> 2251cb0ef41Sopenharmony_ci<li><a href="#err_debugger_error"><code>ERR_DEBUGGER_ERROR</code></a></li> 2261cb0ef41Sopenharmony_ci<li><a href="#err_debugger_startup_error"><code>ERR_DEBUGGER_STARTUP_ERROR</code></a></li> 2271cb0ef41Sopenharmony_ci<li><a href="#err_dlopen_disabled"><code>ERR_DLOPEN_DISABLED</code></a></li> 2281cb0ef41Sopenharmony_ci<li><a href="#err_dlopen_failed"><code>ERR_DLOPEN_FAILED</code></a></li> 2291cb0ef41Sopenharmony_ci<li><a href="#err_dir_closed"><code>ERR_DIR_CLOSED</code></a></li> 2301cb0ef41Sopenharmony_ci<li><a href="#err_dir_concurrent_operation"><code>ERR_DIR_CONCURRENT_OPERATION</code></a></li> 2311cb0ef41Sopenharmony_ci<li><a href="#err_dns_set_servers_failed"><code>ERR_DNS_SET_SERVERS_FAILED</code></a></li> 2321cb0ef41Sopenharmony_ci<li><a href="#err_domain_callback_not_available"><code>ERR_DOMAIN_CALLBACK_NOT_AVAILABLE</code></a></li> 2331cb0ef41Sopenharmony_ci<li><a href="#err_domain_cannot_set_uncaught_exception_capture"><code>ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE</code></a></li> 2341cb0ef41Sopenharmony_ci<li><a href="#err_duplicate_startup_snapshot_main_function"><code>ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION</code></a></li> 2351cb0ef41Sopenharmony_ci<li><a href="#err_encoding_invalid_encoded_data"><code>ERR_ENCODING_INVALID_ENCODED_DATA</code></a></li> 2361cb0ef41Sopenharmony_ci<li><a href="#err_encoding_not_supported"><code>ERR_ENCODING_NOT_SUPPORTED</code></a></li> 2371cb0ef41Sopenharmony_ci<li><a href="#err_eval_esm_cannot_print"><code>ERR_EVAL_ESM_CANNOT_PRINT</code></a></li> 2381cb0ef41Sopenharmony_ci<li><a href="#err_event_recursion"><code>ERR_EVENT_RECURSION</code></a></li> 2391cb0ef41Sopenharmony_ci<li><a href="#err_execution_environment_not_available"><code>ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE</code></a></li> 2401cb0ef41Sopenharmony_ci<li><a href="#err_falsy_value_rejection"><code>ERR_FALSY_VALUE_REJECTION</code></a></li> 2411cb0ef41Sopenharmony_ci<li><a href="#err_feature_unavailable_on_platform"><code>ERR_FEATURE_UNAVAILABLE_ON_PLATFORM</code></a></li> 2421cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_dir_to_non_dir"><code>ERR_FS_CP_DIR_TO_NON_DIR</code></a></li> 2431cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_eexist"><code>ERR_FS_CP_EEXIST</code></a></li> 2441cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_einval"><code>ERR_FS_CP_EINVAL</code></a></li> 2451cb0ef41Sopenharmony_ci<li><a href="#err_http_body_not_allowed"><code>ERR_HTTP_BODY_NOT_ALLOWED</code></a></li> 2461cb0ef41Sopenharmony_ci<li><a href="#err_http_content_length_mismatch"><code>ERR_HTTP_CONTENT_LENGTH_MISMATCH</code></a></li> 2471cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_fifo_pipe"><code>ERR_FS_CP_FIFO_PIPE</code></a></li> 2481cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_non_dir_to_dir"><code>ERR_FS_CP_NON_DIR_TO_DIR</code></a></li> 2491cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_socket"><code>ERR_FS_CP_SOCKET</code></a></li> 2501cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_symlink_to_subdirectory"><code>ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY</code></a></li> 2511cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_unknown"><code>ERR_FS_CP_UNKNOWN</code></a></li> 2521cb0ef41Sopenharmony_ci<li><a href="#err_fs_eisdir"><code>ERR_FS_EISDIR</code></a></li> 2531cb0ef41Sopenharmony_ci<li><a href="#err_fs_file_too_large"><code>ERR_FS_FILE_TOO_LARGE</code></a></li> 2541cb0ef41Sopenharmony_ci<li><a href="#err_fs_invalid_symlink_type"><code>ERR_FS_INVALID_SYMLINK_TYPE</code></a></li> 2551cb0ef41Sopenharmony_ci<li><a href="#err_http_headers_sent"><code>ERR_HTTP_HEADERS_SENT</code></a></li> 2561cb0ef41Sopenharmony_ci<li><a href="#err_http_invalid_header_value"><code>ERR_HTTP_INVALID_HEADER_VALUE</code></a></li> 2571cb0ef41Sopenharmony_ci<li><a href="#err_http_invalid_status_code"><code>ERR_HTTP_INVALID_STATUS_CODE</code></a></li> 2581cb0ef41Sopenharmony_ci<li><a href="#err_http_request_timeout"><code>ERR_HTTP_REQUEST_TIMEOUT</code></a></li> 2591cb0ef41Sopenharmony_ci<li><a href="#err_http_socket_assigned"><code>ERR_HTTP_SOCKET_ASSIGNED</code></a></li> 2601cb0ef41Sopenharmony_ci<li><a href="#err_http_socket_encoding"><code>ERR_HTTP_SOCKET_ENCODING</code></a></li> 2611cb0ef41Sopenharmony_ci<li><a href="#err_http_trailer_invalid"><code>ERR_HTTP_TRAILER_INVALID</code></a></li> 2621cb0ef41Sopenharmony_ci<li><a href="#err_http2_altsvc_invalid_origin"><code>ERR_HTTP2_ALTSVC_INVALID_ORIGIN</code></a></li> 2631cb0ef41Sopenharmony_ci<li><a href="#err_http2_altsvc_length"><code>ERR_HTTP2_ALTSVC_LENGTH</code></a></li> 2641cb0ef41Sopenharmony_ci<li><a href="#err_http2_connect_authority"><code>ERR_HTTP2_CONNECT_AUTHORITY</code></a></li> 2651cb0ef41Sopenharmony_ci<li><a href="#err_http2_connect_path"><code>ERR_HTTP2_CONNECT_PATH</code></a></li> 2661cb0ef41Sopenharmony_ci<li><a href="#err_http2_connect_scheme"><code>ERR_HTTP2_CONNECT_SCHEME</code></a></li> 2671cb0ef41Sopenharmony_ci<li><a href="#err_http2_error"><code>ERR_HTTP2_ERROR</code></a></li> 2681cb0ef41Sopenharmony_ci<li><a href="#err_http2_goaway_session"><code>ERR_HTTP2_GOAWAY_SESSION</code></a></li> 2691cb0ef41Sopenharmony_ci<li><a href="#err_http2_header_single_value"><code>ERR_HTTP2_HEADER_SINGLE_VALUE</code></a></li> 2701cb0ef41Sopenharmony_ci<li><a href="#err_http2_headers_after_respond"><code>ERR_HTTP2_HEADERS_AFTER_RESPOND</code></a></li> 2711cb0ef41Sopenharmony_ci<li><a href="#err_http2_headers_sent"><code>ERR_HTTP2_HEADERS_SENT</code></a></li> 2721cb0ef41Sopenharmony_ci<li><a href="#err_http2_info_status_not_allowed"><code>ERR_HTTP2_INFO_STATUS_NOT_ALLOWED</code></a></li> 2731cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_connection_headers"><code>ERR_HTTP2_INVALID_CONNECTION_HEADERS</code></a></li> 2741cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_header_value"><code>ERR_HTTP2_INVALID_HEADER_VALUE</code></a></li> 2751cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_info_status"><code>ERR_HTTP2_INVALID_INFO_STATUS</code></a></li> 2761cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_origin"><code>ERR_HTTP2_INVALID_ORIGIN</code></a></li> 2771cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_packed_settings_length"><code>ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH</code></a></li> 2781cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_pseudoheader"><code>ERR_HTTP2_INVALID_PSEUDOHEADER</code></a></li> 2791cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_session"><code>ERR_HTTP2_INVALID_SESSION</code></a></li> 2801cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_setting_value"><code>ERR_HTTP2_INVALID_SETTING_VALUE</code></a></li> 2811cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_stream"><code>ERR_HTTP2_INVALID_STREAM</code></a></li> 2821cb0ef41Sopenharmony_ci<li><a href="#err_http2_max_pending_settings_ack"><code>ERR_HTTP2_MAX_PENDING_SETTINGS_ACK</code></a></li> 2831cb0ef41Sopenharmony_ci<li><a href="#err_http2_nested_push"><code>ERR_HTTP2_NESTED_PUSH</code></a></li> 2841cb0ef41Sopenharmony_ci<li><a href="#err_http2_no_mem"><code>ERR_HTTP2_NO_MEM</code></a></li> 2851cb0ef41Sopenharmony_ci<li><a href="#err_http2_no_socket_manipulation"><code>ERR_HTTP2_NO_SOCKET_MANIPULATION</code></a></li> 2861cb0ef41Sopenharmony_ci<li><a href="#err_http2_origin_length"><code>ERR_HTTP2_ORIGIN_LENGTH</code></a></li> 2871cb0ef41Sopenharmony_ci<li><a href="#err_http2_out_of_streams"><code>ERR_HTTP2_OUT_OF_STREAMS</code></a></li> 2881cb0ef41Sopenharmony_ci<li><a href="#err_http2_payload_forbidden"><code>ERR_HTTP2_PAYLOAD_FORBIDDEN</code></a></li> 2891cb0ef41Sopenharmony_ci<li><a href="#err_http2_ping_cancel"><code>ERR_HTTP2_PING_CANCEL</code></a></li> 2901cb0ef41Sopenharmony_ci<li><a href="#err_http2_ping_length"><code>ERR_HTTP2_PING_LENGTH</code></a></li> 2911cb0ef41Sopenharmony_ci<li><a href="#err_http2_pseudoheader_not_allowed"><code>ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED</code></a></li> 2921cb0ef41Sopenharmony_ci<li><a href="#err_http2_push_disabled"><code>ERR_HTTP2_PUSH_DISABLED</code></a></li> 2931cb0ef41Sopenharmony_ci<li><a href="#err_http2_send_file"><code>ERR_HTTP2_SEND_FILE</code></a></li> 2941cb0ef41Sopenharmony_ci<li><a href="#err_http2_send_file_noseek"><code>ERR_HTTP2_SEND_FILE_NOSEEK</code></a></li> 2951cb0ef41Sopenharmony_ci<li><a href="#err_http2_session_error"><code>ERR_HTTP2_SESSION_ERROR</code></a></li> 2961cb0ef41Sopenharmony_ci<li><a href="#err_http2_settings_cancel"><code>ERR_HTTP2_SETTINGS_CANCEL</code></a></li> 2971cb0ef41Sopenharmony_ci<li><a href="#err_http2_socket_bound"><code>ERR_HTTP2_SOCKET_BOUND</code></a></li> 2981cb0ef41Sopenharmony_ci<li><a href="#err_http2_socket_unbound"><code>ERR_HTTP2_SOCKET_UNBOUND</code></a></li> 2991cb0ef41Sopenharmony_ci<li><a href="#err_http2_status_101"><code>ERR_HTTP2_STATUS_101</code></a></li> 3001cb0ef41Sopenharmony_ci<li><a href="#err_http2_status_invalid"><code>ERR_HTTP2_STATUS_INVALID</code></a></li> 3011cb0ef41Sopenharmony_ci<li><a href="#err_http2_stream_cancel"><code>ERR_HTTP2_STREAM_CANCEL</code></a></li> 3021cb0ef41Sopenharmony_ci<li><a href="#err_http2_stream_error"><code>ERR_HTTP2_STREAM_ERROR</code></a></li> 3031cb0ef41Sopenharmony_ci<li><a href="#err_http2_stream_self_dependency"><code>ERR_HTTP2_STREAM_SELF_DEPENDENCY</code></a></li> 3041cb0ef41Sopenharmony_ci<li><a href="#err_http2_too_many_invalid_frames"><code>ERR_HTTP2_TOO_MANY_INVALID_FRAMES</code></a></li> 3051cb0ef41Sopenharmony_ci<li><a href="#err_http2_trailers_already_sent"><code>ERR_HTTP2_TRAILERS_ALREADY_SENT</code></a></li> 3061cb0ef41Sopenharmony_ci<li><a href="#err_http2_trailers_not_ready"><code>ERR_HTTP2_TRAILERS_NOT_READY</code></a></li> 3071cb0ef41Sopenharmony_ci<li><a href="#err_http2_unsupported_protocol"><code>ERR_HTTP2_UNSUPPORTED_PROTOCOL</code></a></li> 3081cb0ef41Sopenharmony_ci<li><a href="#err_illegal_constructor"><code>ERR_ILLEGAL_CONSTRUCTOR</code></a></li> 3091cb0ef41Sopenharmony_ci<li><a href="#err_import_assertion_type_failed"><code>ERR_IMPORT_ASSERTION_TYPE_FAILED</code></a></li> 3101cb0ef41Sopenharmony_ci<li><a href="#err_import_assertion_type_missing"><code>ERR_IMPORT_ASSERTION_TYPE_MISSING</code></a></li> 3111cb0ef41Sopenharmony_ci<li><a href="#err_import_assertion_type_unsupported"><code>ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED</code></a></li> 3121cb0ef41Sopenharmony_ci<li><a href="#err_import_attribute_unsupported"><code>ERR_IMPORT_ATTRIBUTE_UNSUPPORTED</code></a></li> 3131cb0ef41Sopenharmony_ci<li><a href="#err_incompatible_option_pair"><code>ERR_INCOMPATIBLE_OPTION_PAIR</code></a></li> 3141cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_input_type_not_allowed"><code>ERR_INPUT_TYPE_NOT_ALLOWED</code></a></span></li> 3151cb0ef41Sopenharmony_ci<li><a href="#err_inspector_already_activated"><code>ERR_INSPECTOR_ALREADY_ACTIVATED</code></a></li> 3161cb0ef41Sopenharmony_ci<li><a href="#err_inspector_already_connected"><code>ERR_INSPECTOR_ALREADY_CONNECTED</code></a></li> 3171cb0ef41Sopenharmony_ci<li><a href="#err_inspector_closed"><code>ERR_INSPECTOR_CLOSED</code></a></li> 3181cb0ef41Sopenharmony_ci<li><a href="#err_inspector_command"><code>ERR_INSPECTOR_COMMAND</code></a></li> 3191cb0ef41Sopenharmony_ci<li><a href="#err_inspector_not_active"><code>ERR_INSPECTOR_NOT_ACTIVE</code></a></li> 3201cb0ef41Sopenharmony_ci<li><a href="#err_inspector_not_available"><code>ERR_INSPECTOR_NOT_AVAILABLE</code></a></li> 3211cb0ef41Sopenharmony_ci<li><a href="#err_inspector_not_connected"><code>ERR_INSPECTOR_NOT_CONNECTED</code></a></li> 3221cb0ef41Sopenharmony_ci<li><a href="#err_inspector_not_worker"><code>ERR_INSPECTOR_NOT_WORKER</code></a></li> 3231cb0ef41Sopenharmony_ci<li><a href="#err_internal_assertion"><code>ERR_INTERNAL_ASSERTION</code></a></li> 3241cb0ef41Sopenharmony_ci<li><a href="#err_invalid_address_family"><code>ERR_INVALID_ADDRESS_FAMILY</code></a></li> 3251cb0ef41Sopenharmony_ci<li><a href="#err_invalid_arg_type"><code>ERR_INVALID_ARG_TYPE</code></a></li> 3261cb0ef41Sopenharmony_ci<li><a href="#err_invalid_arg_value"><code>ERR_INVALID_ARG_VALUE</code></a></li> 3271cb0ef41Sopenharmony_ci<li><a href="#err_invalid_async_id"><code>ERR_INVALID_ASYNC_ID</code></a></li> 3281cb0ef41Sopenharmony_ci<li><a href="#err_invalid_buffer_size"><code>ERR_INVALID_BUFFER_SIZE</code></a></li> 3291cb0ef41Sopenharmony_ci<li><a href="#err_invalid_char"><code>ERR_INVALID_CHAR</code></a></li> 3301cb0ef41Sopenharmony_ci<li><a href="#err_invalid_cursor_pos"><code>ERR_INVALID_CURSOR_POS</code></a></li> 3311cb0ef41Sopenharmony_ci<li><a href="#err_invalid_fd"><code>ERR_INVALID_FD</code></a></li> 3321cb0ef41Sopenharmony_ci<li><a href="#err_invalid_fd_type"><code>ERR_INVALID_FD_TYPE</code></a></li> 3331cb0ef41Sopenharmony_ci<li><a href="#err_invalid_file_url_host"><code>ERR_INVALID_FILE_URL_HOST</code></a></li> 3341cb0ef41Sopenharmony_ci<li><a href="#err_invalid_file_url_path"><code>ERR_INVALID_FILE_URL_PATH</code></a></li> 3351cb0ef41Sopenharmony_ci<li><a href="#err_invalid_handle_type"><code>ERR_INVALID_HANDLE_TYPE</code></a></li> 3361cb0ef41Sopenharmony_ci<li><a href="#err_invalid_http_token"><code>ERR_INVALID_HTTP_TOKEN</code></a></li> 3371cb0ef41Sopenharmony_ci<li><a href="#err_invalid_ip_address"><code>ERR_INVALID_IP_ADDRESS</code></a></li> 3381cb0ef41Sopenharmony_ci<li><a href="#err_invalid_mime_syntax"><code>ERR_INVALID_MIME_SYNTAX</code></a></li> 3391cb0ef41Sopenharmony_ci<li><a href="#err_invalid_module"><code>ERR_INVALID_MODULE</code></a></li> 3401cb0ef41Sopenharmony_ci<li><a href="#err_invalid_module_specifier"><code>ERR_INVALID_MODULE_SPECIFIER</code></a></li> 3411cb0ef41Sopenharmony_ci<li><a href="#err_invalid_object_define_property"><code>ERR_INVALID_OBJECT_DEFINE_PROPERTY</code></a></li> 3421cb0ef41Sopenharmony_ci<li><a href="#err_invalid_package_config"><code>ERR_INVALID_PACKAGE_CONFIG</code></a></li> 3431cb0ef41Sopenharmony_ci<li><a href="#err_invalid_package_target"><code>ERR_INVALID_PACKAGE_TARGET</code></a></li> 3441cb0ef41Sopenharmony_ci<li><a href="#err_invalid_performance_mark"><code>ERR_INVALID_PERFORMANCE_MARK</code></a></li> 3451cb0ef41Sopenharmony_ci<li><a href="#err_invalid_protocol"><code>ERR_INVALID_PROTOCOL</code></a></li> 3461cb0ef41Sopenharmony_ci<li><a href="#err_invalid_repl_eval_config"><code>ERR_INVALID_REPL_EVAL_CONFIG</code></a></li> 3471cb0ef41Sopenharmony_ci<li><a href="#err_invalid_repl_input"><code>ERR_INVALID_REPL_INPUT</code></a></li> 3481cb0ef41Sopenharmony_ci<li><a href="#err_invalid_return_property"><code>ERR_INVALID_RETURN_PROPERTY</code></a></li> 3491cb0ef41Sopenharmony_ci<li><a href="#err_invalid_return_property_value"><code>ERR_INVALID_RETURN_PROPERTY_VALUE</code></a></li> 3501cb0ef41Sopenharmony_ci<li><a href="#err_invalid_return_value"><code>ERR_INVALID_RETURN_VALUE</code></a></li> 3511cb0ef41Sopenharmony_ci<li><a href="#err_invalid_state"><code>ERR_INVALID_STATE</code></a></li> 3521cb0ef41Sopenharmony_ci<li><a href="#err_invalid_sync_fork_input"><code>ERR_INVALID_SYNC_FORK_INPUT</code></a></li> 3531cb0ef41Sopenharmony_ci<li><a href="#err_invalid_this"><code>ERR_INVALID_THIS</code></a></li> 3541cb0ef41Sopenharmony_ci<li><a href="#err_invalid_transfer_object"><code>ERR_INVALID_TRANSFER_OBJECT</code></a></li> 3551cb0ef41Sopenharmony_ci<li><a href="#err_invalid_tuple"><code>ERR_INVALID_TUPLE</code></a></li> 3561cb0ef41Sopenharmony_ci<li><a href="#err_invalid_uri"><code>ERR_INVALID_URI</code></a></li> 3571cb0ef41Sopenharmony_ci<li><a href="#err_invalid_url"><code>ERR_INVALID_URL</code></a></li> 3581cb0ef41Sopenharmony_ci<li><a href="#err_invalid_url_scheme"><code>ERR_INVALID_URL_SCHEME</code></a></li> 3591cb0ef41Sopenharmony_ci<li><a href="#err_ipc_channel_closed"><code>ERR_IPC_CHANNEL_CLOSED</code></a></li> 3601cb0ef41Sopenharmony_ci<li><a href="#err_ipc_disconnected"><code>ERR_IPC_DISCONNECTED</code></a></li> 3611cb0ef41Sopenharmony_ci<li><a href="#err_ipc_one_pipe"><code>ERR_IPC_ONE_PIPE</code></a></li> 3621cb0ef41Sopenharmony_ci<li><a href="#err_ipc_sync_fork"><code>ERR_IPC_SYNC_FORK</code></a></li> 3631cb0ef41Sopenharmony_ci<li><a href="#err_loader_chain_incomplete"><code>ERR_LOADER_CHAIN_INCOMPLETE</code></a></li> 3641cb0ef41Sopenharmony_ci<li><a href="#err_manifest_assert_integrity"><code>ERR_MANIFEST_ASSERT_INTEGRITY</code></a></li> 3651cb0ef41Sopenharmony_ci<li><a href="#err_manifest_dependency_missing"><code>ERR_MANIFEST_DEPENDENCY_MISSING</code></a></li> 3661cb0ef41Sopenharmony_ci<li><a href="#err_manifest_integrity_mismatch"><code>ERR_MANIFEST_INTEGRITY_MISMATCH</code></a></li> 3671cb0ef41Sopenharmony_ci<li><a href="#err_manifest_invalid_resource_field"><code>ERR_MANIFEST_INVALID_RESOURCE_FIELD</code></a></li> 3681cb0ef41Sopenharmony_ci<li><a href="#err_manifest_invalid_specifier"><code>ERR_MANIFEST_INVALID_SPECIFIER</code></a></li> 3691cb0ef41Sopenharmony_ci<li><a href="#err_manifest_parse_policy"><code>ERR_MANIFEST_PARSE_POLICY</code></a></li> 3701cb0ef41Sopenharmony_ci<li><a href="#err_manifest_tdz"><code>ERR_MANIFEST_TDZ</code></a></li> 3711cb0ef41Sopenharmony_ci<li><a href="#err_manifest_unknown_onerror"><code>ERR_MANIFEST_UNKNOWN_ONERROR</code></a></li> 3721cb0ef41Sopenharmony_ci<li><a href="#err_memory_allocation_failed"><code>ERR_MEMORY_ALLOCATION_FAILED</code></a></li> 3731cb0ef41Sopenharmony_ci<li><a href="#err_message_target_context_unavailable"><code>ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE</code></a></li> 3741cb0ef41Sopenharmony_ci<li><a href="#err_method_not_implemented"><code>ERR_METHOD_NOT_IMPLEMENTED</code></a></li> 3751cb0ef41Sopenharmony_ci<li><a href="#err_missing_args"><code>ERR_MISSING_ARGS</code></a></li> 3761cb0ef41Sopenharmony_ci<li><a href="#err_missing_option"><code>ERR_MISSING_OPTION</code></a></li> 3771cb0ef41Sopenharmony_ci<li><a href="#err_missing_passphrase"><code>ERR_MISSING_PASSPHRASE</code></a></li> 3781cb0ef41Sopenharmony_ci<li><a href="#err_missing_platform_for_worker"><code>ERR_MISSING_PLATFORM_FOR_WORKER</code></a></li> 3791cb0ef41Sopenharmony_ci<li><a href="#err_missing_transferable_in_transfer_list"><code>ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST</code></a></li> 3801cb0ef41Sopenharmony_ci<li><a href="#err_module_not_found"><code>ERR_MODULE_NOT_FOUND</code></a></li> 3811cb0ef41Sopenharmony_ci<li><a href="#err_multiple_callback"><code>ERR_MULTIPLE_CALLBACK</code></a></li> 3821cb0ef41Sopenharmony_ci<li><a href="#err_napi_cons_function"><code>ERR_NAPI_CONS_FUNCTION</code></a></li> 3831cb0ef41Sopenharmony_ci<li><a href="#err_napi_invalid_dataview_args"><code>ERR_NAPI_INVALID_DATAVIEW_ARGS</code></a></li> 3841cb0ef41Sopenharmony_ci<li><a href="#err_napi_invalid_typedarray_alignment"><code>ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT</code></a></li> 3851cb0ef41Sopenharmony_ci<li><a href="#err_napi_invalid_typedarray_length"><code>ERR_NAPI_INVALID_TYPEDARRAY_LENGTH</code></a></li> 3861cb0ef41Sopenharmony_ci<li><a href="#err_napi_tsfn_call_js"><code>ERR_NAPI_TSFN_CALL_JS</code></a></li> 3871cb0ef41Sopenharmony_ci<li><a href="#err_napi_tsfn_get_undefined"><code>ERR_NAPI_TSFN_GET_UNDEFINED</code></a></li> 3881cb0ef41Sopenharmony_ci<li><a href="#err_napi_tsfn_start_idle_loop"><code>ERR_NAPI_TSFN_START_IDLE_LOOP</code></a></li> 3891cb0ef41Sopenharmony_ci<li><a href="#err_napi_tsfn_stop_idle_loop"><code>ERR_NAPI_TSFN_STOP_IDLE_LOOP</code></a></li> 3901cb0ef41Sopenharmony_ci<li><a href="#err_not_building_snapshot"><code>ERR_NOT_BUILDING_SNAPSHOT</code></a></li> 3911cb0ef41Sopenharmony_ci<li><a href="#err_no_crypto"><code>ERR_NO_CRYPTO</code></a></li> 3921cb0ef41Sopenharmony_ci<li><a href="#err_no_icu"><code>ERR_NO_ICU</code></a></li> 3931cb0ef41Sopenharmony_ci<li><a href="#err_non_context_aware_disabled"><code>ERR_NON_CONTEXT_AWARE_DISABLED</code></a></li> 3941cb0ef41Sopenharmony_ci<li><a href="#err_out_of_range"><code>ERR_OUT_OF_RANGE</code></a></li> 3951cb0ef41Sopenharmony_ci<li><a href="#err_package_import_not_defined"><code>ERR_PACKAGE_IMPORT_NOT_DEFINED</code></a></li> 3961cb0ef41Sopenharmony_ci<li><a href="#err_package_path_not_exported"><code>ERR_PACKAGE_PATH_NOT_EXPORTED</code></a></li> 3971cb0ef41Sopenharmony_ci<li><a href="#err_parse_args_invalid_option_value"><code>ERR_PARSE_ARGS_INVALID_OPTION_VALUE</code></a></li> 3981cb0ef41Sopenharmony_ci<li><a href="#err_parse_args_unexpected_positional"><code>ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL</code></a></li> 3991cb0ef41Sopenharmony_ci<li><a href="#err_parse_args_unknown_option"><code>ERR_PARSE_ARGS_UNKNOWN_OPTION</code></a></li> 4001cb0ef41Sopenharmony_ci<li><a href="#err_performance_invalid_timestamp"><code>ERR_PERFORMANCE_INVALID_TIMESTAMP</code></a></li> 4011cb0ef41Sopenharmony_ci<li><a href="#err_performance_measure_invalid_options"><code>ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS</code></a></li> 4021cb0ef41Sopenharmony_ci<li><a href="#err_proto_access"><code>ERR_PROTO_ACCESS</code></a></li> 4031cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_require_esm"><code>ERR_REQUIRE_ESM</code></a></span></li> 4041cb0ef41Sopenharmony_ci<li><a href="#err_script_execution_interrupted"><code>ERR_SCRIPT_EXECUTION_INTERRUPTED</code></a></li> 4051cb0ef41Sopenharmony_ci<li><a href="#err_script_execution_timeout"><code>ERR_SCRIPT_EXECUTION_TIMEOUT</code></a></li> 4061cb0ef41Sopenharmony_ci<li><a href="#err_server_already_listen"><code>ERR_SERVER_ALREADY_LISTEN</code></a></li> 4071cb0ef41Sopenharmony_ci<li><a href="#err_server_not_running"><code>ERR_SERVER_NOT_RUNNING</code></a></li> 4081cb0ef41Sopenharmony_ci<li><a href="#err_socket_already_bound"><code>ERR_SOCKET_ALREADY_BOUND</code></a></li> 4091cb0ef41Sopenharmony_ci<li><a href="#err_socket_bad_buffer_size"><code>ERR_SOCKET_BAD_BUFFER_SIZE</code></a></li> 4101cb0ef41Sopenharmony_ci<li><a href="#err_socket_bad_port"><code>ERR_SOCKET_BAD_PORT</code></a></li> 4111cb0ef41Sopenharmony_ci<li><a href="#err_socket_bad_type"><code>ERR_SOCKET_BAD_TYPE</code></a></li> 4121cb0ef41Sopenharmony_ci<li><a href="#err_socket_buffer_size"><code>ERR_SOCKET_BUFFER_SIZE</code></a></li> 4131cb0ef41Sopenharmony_ci<li><a href="#err_socket_closed"><code>ERR_SOCKET_CLOSED</code></a></li> 4141cb0ef41Sopenharmony_ci<li><a href="#err_socket_closed_before_connection"><code>ERR_SOCKET_CLOSED_BEFORE_CONNECTION</code></a></li> 4151cb0ef41Sopenharmony_ci<li><a href="#err_socket_dgram_is_connected"><code>ERR_SOCKET_DGRAM_IS_CONNECTED</code></a></li> 4161cb0ef41Sopenharmony_ci<li><a href="#err_socket_dgram_not_connected"><code>ERR_SOCKET_DGRAM_NOT_CONNECTED</code></a></li> 4171cb0ef41Sopenharmony_ci<li><a href="#err_socket_dgram_not_running"><code>ERR_SOCKET_DGRAM_NOT_RUNNING</code></a></li> 4181cb0ef41Sopenharmony_ci<li><a href="#err_sri_parse"><code>ERR_SRI_PARSE</code></a></li> 4191cb0ef41Sopenharmony_ci<li><a href="#err_stream_already_finished"><code>ERR_STREAM_ALREADY_FINISHED</code></a></li> 4201cb0ef41Sopenharmony_ci<li><a href="#err_stream_cannot_pipe"><code>ERR_STREAM_CANNOT_PIPE</code></a></li> 4211cb0ef41Sopenharmony_ci<li><a href="#err_stream_destroyed"><code>ERR_STREAM_DESTROYED</code></a></li> 4221cb0ef41Sopenharmony_ci<li><a href="#err_stream_null_values"><code>ERR_STREAM_NULL_VALUES</code></a></li> 4231cb0ef41Sopenharmony_ci<li><a href="#err_stream_premature_close"><code>ERR_STREAM_PREMATURE_CLOSE</code></a></li> 4241cb0ef41Sopenharmony_ci<li><a href="#err_stream_push_after_eof"><code>ERR_STREAM_PUSH_AFTER_EOF</code></a></li> 4251cb0ef41Sopenharmony_ci<li><a href="#err_stream_unshift_after_end_event"><code>ERR_STREAM_UNSHIFT_AFTER_END_EVENT</code></a></li> 4261cb0ef41Sopenharmony_ci<li><a href="#err_stream_wrap"><code>ERR_STREAM_WRAP</code></a></li> 4271cb0ef41Sopenharmony_ci<li><a href="#err_stream_write_after_end"><code>ERR_STREAM_WRITE_AFTER_END</code></a></li> 4281cb0ef41Sopenharmony_ci<li><a href="#err_string_too_long"><code>ERR_STRING_TOO_LONG</code></a></li> 4291cb0ef41Sopenharmony_ci<li><a href="#err_synthetic"><code>ERR_SYNTHETIC</code></a></li> 4301cb0ef41Sopenharmony_ci<li><a href="#err_system_error"><code>ERR_SYSTEM_ERROR</code></a></li> 4311cb0ef41Sopenharmony_ci<li><a href="#err_tap_lexer_error"><code>ERR_TAP_LEXER_ERROR</code></a></li> 4321cb0ef41Sopenharmony_ci<li><a href="#err_tap_parser_error"><code>ERR_TAP_PARSER_ERROR</code></a></li> 4331cb0ef41Sopenharmony_ci<li><a href="#err_tap_validation_error"><code>ERR_TAP_VALIDATION_ERROR</code></a></li> 4341cb0ef41Sopenharmony_ci<li><a href="#err_test_failure"><code>ERR_TEST_FAILURE</code></a></li> 4351cb0ef41Sopenharmony_ci<li><a href="#err_tls_alpn_callback_invalid_result"><code>ERR_TLS_ALPN_CALLBACK_INVALID_RESULT</code></a></li> 4361cb0ef41Sopenharmony_ci<li><a href="#err_tls_alpn_callback_with_protocols"><code>ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS</code></a></li> 4371cb0ef41Sopenharmony_ci<li><a href="#err_tls_cert_altname_format"><code>ERR_TLS_CERT_ALTNAME_FORMAT</code></a></li> 4381cb0ef41Sopenharmony_ci<li><a href="#err_tls_cert_altname_invalid"><code>ERR_TLS_CERT_ALTNAME_INVALID</code></a></li> 4391cb0ef41Sopenharmony_ci<li><a href="#err_tls_dh_param_size"><code>ERR_TLS_DH_PARAM_SIZE</code></a></li> 4401cb0ef41Sopenharmony_ci<li><a href="#err_tls_handshake_timeout"><code>ERR_TLS_HANDSHAKE_TIMEOUT</code></a></li> 4411cb0ef41Sopenharmony_ci<li><a href="#err_tls_invalid_context"><code>ERR_TLS_INVALID_CONTEXT</code></a></li> 4421cb0ef41Sopenharmony_ci<li><a href="#err_tls_invalid_protocol_method"><code>ERR_TLS_INVALID_PROTOCOL_METHOD</code></a></li> 4431cb0ef41Sopenharmony_ci<li><a href="#err_tls_invalid_protocol_version"><code>ERR_TLS_INVALID_PROTOCOL_VERSION</code></a></li> 4441cb0ef41Sopenharmony_ci<li><a href="#err_tls_invalid_state"><code>ERR_TLS_INVALID_STATE</code></a></li> 4451cb0ef41Sopenharmony_ci<li><a href="#err_tls_protocol_version_conflict"><code>ERR_TLS_PROTOCOL_VERSION_CONFLICT</code></a></li> 4461cb0ef41Sopenharmony_ci<li><a href="#err_tls_psk_set_identiy_hint_failed"><code>ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED</code></a></li> 4471cb0ef41Sopenharmony_ci<li><a href="#err_tls_renegotiation_disabled"><code>ERR_TLS_RENEGOTIATION_DISABLED</code></a></li> 4481cb0ef41Sopenharmony_ci<li><a href="#err_tls_required_server_name"><code>ERR_TLS_REQUIRED_SERVER_NAME</code></a></li> 4491cb0ef41Sopenharmony_ci<li><a href="#err_tls_session_attack"><code>ERR_TLS_SESSION_ATTACK</code></a></li> 4501cb0ef41Sopenharmony_ci<li><a href="#err_tls_sni_from_server"><code>ERR_TLS_SNI_FROM_SERVER</code></a></li> 4511cb0ef41Sopenharmony_ci<li><a href="#err_trace_events_category_required"><code>ERR_TRACE_EVENTS_CATEGORY_REQUIRED</code></a></li> 4521cb0ef41Sopenharmony_ci<li><a href="#err_trace_events_unavailable"><code>ERR_TRACE_EVENTS_UNAVAILABLE</code></a></li> 4531cb0ef41Sopenharmony_ci<li><a href="#err_transform_already_transforming"><code>ERR_TRANSFORM_ALREADY_TRANSFORMING</code></a></li> 4541cb0ef41Sopenharmony_ci<li><a href="#err_transform_with_length_0"><code>ERR_TRANSFORM_WITH_LENGTH_0</code></a></li> 4551cb0ef41Sopenharmony_ci<li><a href="#err_tty_init_failed"><code>ERR_TTY_INIT_FAILED</code></a></li> 4561cb0ef41Sopenharmony_ci<li><a href="#err_unavailable_during_exit"><code>ERR_UNAVAILABLE_DURING_EXIT</code></a></li> 4571cb0ef41Sopenharmony_ci<li><a href="#err_uncaught_exception_capture_already_set"><code>ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET</code></a></li> 4581cb0ef41Sopenharmony_ci<li><a href="#err_unescaped_characters"><code>ERR_UNESCAPED_CHARACTERS</code></a></li> 4591cb0ef41Sopenharmony_ci<li><a href="#err_unhandled_error"><code>ERR_UNHANDLED_ERROR</code></a></li> 4601cb0ef41Sopenharmony_ci<li><a href="#err_unknown_builtin_module"><code>ERR_UNKNOWN_BUILTIN_MODULE</code></a></li> 4611cb0ef41Sopenharmony_ci<li><a href="#err_unknown_credential"><code>ERR_UNKNOWN_CREDENTIAL</code></a></li> 4621cb0ef41Sopenharmony_ci<li><a href="#err_unknown_encoding"><code>ERR_UNKNOWN_ENCODING</code></a></li> 4631cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_unknown_file_extension"><code>ERR_UNKNOWN_FILE_EXTENSION</code></a></span></li> 4641cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_unknown_module_format"><code>ERR_UNKNOWN_MODULE_FORMAT</code></a></span></li> 4651cb0ef41Sopenharmony_ci<li><a href="#err_unknown_signal"><code>ERR_UNKNOWN_SIGNAL</code></a></li> 4661cb0ef41Sopenharmony_ci<li><a href="#err_unsupported_dir_import"><code>ERR_UNSUPPORTED_DIR_IMPORT</code></a></li> 4671cb0ef41Sopenharmony_ci<li><a href="#err_unsupported_esm_url_scheme"><code>ERR_UNSUPPORTED_ESM_URL_SCHEME</code></a></li> 4681cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_use_after_close"><code>ERR_USE_AFTER_CLOSE</code></a></span></li> 4691cb0ef41Sopenharmony_ci<li><a href="#err_valid_performance_entry_type"><code>ERR_VALID_PERFORMANCE_ENTRY_TYPE</code></a></li> 4701cb0ef41Sopenharmony_ci<li><a href="#err_vm_dynamic_import_callback_missing_flag"><code>ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG</code></a></li> 4711cb0ef41Sopenharmony_ci<li><a href="#err_vm_dynamic_import_callback_missing"><code>ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING</code></a></li> 4721cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_already_linked"><code>ERR_VM_MODULE_ALREADY_LINKED</code></a></li> 4731cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_cached_data_rejected"><code>ERR_VM_MODULE_CACHED_DATA_REJECTED</code></a></li> 4741cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_cannot_create_cached_data"><code>ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA</code></a></li> 4751cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_different_context"><code>ERR_VM_MODULE_DIFFERENT_CONTEXT</code></a></li> 4761cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_link_failure"><code>ERR_VM_MODULE_LINK_FAILURE</code></a></li> 4771cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_not_module"><code>ERR_VM_MODULE_NOT_MODULE</code></a></li> 4781cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_status"><code>ERR_VM_MODULE_STATUS</code></a></li> 4791cb0ef41Sopenharmony_ci<li><a href="#err_wasi_already_started"><code>ERR_WASI_ALREADY_STARTED</code></a></li> 4801cb0ef41Sopenharmony_ci<li><a href="#err_wasi_not_started"><code>ERR_WASI_NOT_STARTED</code></a></li> 4811cb0ef41Sopenharmony_ci<li><a href="#err_webassembly_response"><code>ERR_WEBASSEMBLY_RESPONSE</code></a></li> 4821cb0ef41Sopenharmony_ci<li><a href="#err_worker_init_failed"><code>ERR_WORKER_INIT_FAILED</code></a></li> 4831cb0ef41Sopenharmony_ci<li><a href="#err_worker_invalid_exec_argv"><code>ERR_WORKER_INVALID_EXEC_ARGV</code></a></li> 4841cb0ef41Sopenharmony_ci<li><a href="#err_worker_not_running"><code>ERR_WORKER_NOT_RUNNING</code></a></li> 4851cb0ef41Sopenharmony_ci<li><a href="#err_worker_out_of_memory"><code>ERR_WORKER_OUT_OF_MEMORY</code></a></li> 4861cb0ef41Sopenharmony_ci<li><a href="#err_worker_path"><code>ERR_WORKER_PATH</code></a></li> 4871cb0ef41Sopenharmony_ci<li><a href="#err_worker_unserializable_error"><code>ERR_WORKER_UNSERIALIZABLE_ERROR</code></a></li> 4881cb0ef41Sopenharmony_ci<li><a href="#err_worker_unsupported_operation"><code>ERR_WORKER_UNSUPPORTED_OPERATION</code></a></li> 4891cb0ef41Sopenharmony_ci<li><a href="#err_zlib_initialization_failed"><code>ERR_ZLIB_INITIALIZATION_FAILED</code></a></li> 4901cb0ef41Sopenharmony_ci<li><a href="#hpe_header_overflow"><code>HPE_HEADER_OVERFLOW</code></a></li> 4911cb0ef41Sopenharmony_ci<li><a href="#hpe_chunk_extensions_overflow"><code>HPE_CHUNK_EXTENSIONS_OVERFLOW</code></a></li> 4921cb0ef41Sopenharmony_ci<li><a href="#hpe_unexpected_content_length"><code>HPE_UNEXPECTED_CONTENT_LENGTH</code></a></li> 4931cb0ef41Sopenharmony_ci<li><a href="#module_not_found"><code>MODULE_NOT_FOUND</code></a></li> 4941cb0ef41Sopenharmony_ci</ul> 4951cb0ef41Sopenharmony_ci</li> 4961cb0ef41Sopenharmony_ci<li><span class="stability_0"><a href="#legacy-nodejs-error-codes">Legacy Node.js error codes</a></span> 4971cb0ef41Sopenharmony_ci<ul> 4981cb0ef41Sopenharmony_ci<li><a href="#err_cannot_transfer_object"><code>ERR_CANNOT_TRANSFER_OBJECT</code></a></li> 4991cb0ef41Sopenharmony_ci<li><a href="#err_crypto_hash_digest_no_utf16"><code>ERR_CRYPTO_HASH_DIGEST_NO_UTF16</code></a></li> 5001cb0ef41Sopenharmony_ci<li><a href="#err_http2_frame_error"><code>ERR_HTTP2_FRAME_ERROR</code></a></li> 5011cb0ef41Sopenharmony_ci<li><a href="#err_http2_headers_object"><code>ERR_HTTP2_HEADERS_OBJECT</code></a></li> 5021cb0ef41Sopenharmony_ci<li><a href="#err_http2_header_required"><code>ERR_HTTP2_HEADER_REQUIRED</code></a></li> 5031cb0ef41Sopenharmony_ci<li><a href="#err_http2_info_headers_after_respond"><code>ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND</code></a></li> 5041cb0ef41Sopenharmony_ci<li><a href="#err_http2_stream_closed"><code>ERR_HTTP2_STREAM_CLOSED</code></a></li> 5051cb0ef41Sopenharmony_ci<li><a href="#err_http_invalid_char"><code>ERR_HTTP_INVALID_CHAR</code></a></li> 5061cb0ef41Sopenharmony_ci<li><a href="#err_index_out_of_range"><code>ERR_INDEX_OUT_OF_RANGE</code></a></li> 5071cb0ef41Sopenharmony_ci<li><a href="#err_invalid_opt_value"><code>ERR_INVALID_OPT_VALUE</code></a></li> 5081cb0ef41Sopenharmony_ci<li><a href="#err_invalid_opt_value_encoding"><code>ERR_INVALID_OPT_VALUE_ENCODING</code></a></li> 5091cb0ef41Sopenharmony_ci<li><a href="#err_missing_message_port_in_transfer_list"><code>ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST</code></a></li> 5101cb0ef41Sopenharmony_ci<li><a href="#err_napi_cons_prototype_object"><code>ERR_NAPI_CONS_PROTOTYPE_OBJECT</code></a></li> 5111cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_network_import_bad_response"><code>ERR_NETWORK_IMPORT_BAD_RESPONSE</code></a></span></li> 5121cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_network_import_disallowed"><code>ERR_NETWORK_IMPORT_DISALLOWED</code></a></span></li> 5131cb0ef41Sopenharmony_ci<li><a href="#err_no_longer_supported"><code>ERR_NO_LONGER_SUPPORTED</code></a></li> 5141cb0ef41Sopenharmony_ci<li><a href="#err_operation_failed"><code>ERR_OPERATION_FAILED</code></a></li> 5151cb0ef41Sopenharmony_ci<li><a href="#err_outofmemory"><code>ERR_OUTOFMEMORY</code></a></li> 5161cb0ef41Sopenharmony_ci<li><a href="#err_parse_history_data"><code>ERR_PARSE_HISTORY_DATA</code></a></li> 5171cb0ef41Sopenharmony_ci<li><a href="#err_socket_cannot_send"><code>ERR_SOCKET_CANNOT_SEND</code></a></li> 5181cb0ef41Sopenharmony_ci<li><a href="#err_stderr_close"><code>ERR_STDERR_CLOSE</code></a></li> 5191cb0ef41Sopenharmony_ci<li><a href="#err_stdout_close"><code>ERR_STDOUT_CLOSE</code></a></li> 5201cb0ef41Sopenharmony_ci<li><a href="#err_stream_read_not_implemented"><code>ERR_STREAM_READ_NOT_IMPLEMENTED</code></a></li> 5211cb0ef41Sopenharmony_ci<li><a href="#err_tls_renegotiation_failed"><code>ERR_TLS_RENEGOTIATION_FAILED</code></a></li> 5221cb0ef41Sopenharmony_ci<li><a href="#err_transferring_externalized_sharedarraybuffer"><code>ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER</code></a></li> 5231cb0ef41Sopenharmony_ci<li><a href="#err_unknown_stdin_type"><code>ERR_UNKNOWN_STDIN_TYPE</code></a></li> 5241cb0ef41Sopenharmony_ci<li><a href="#err_unknown_stream_type"><code>ERR_UNKNOWN_STREAM_TYPE</code></a></li> 5251cb0ef41Sopenharmony_ci<li><a href="#err_v8breakiterator"><code>ERR_V8BREAKITERATOR</code></a></li> 5261cb0ef41Sopenharmony_ci<li><a href="#err_value_out_of_range"><code>ERR_VALUE_OUT_OF_RANGE</code></a></li> 5271cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_not_linked"><code>ERR_VM_MODULE_NOT_LINKED</code></a></li> 5281cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_linking_errored"><code>ERR_VM_MODULE_LINKING_ERRORED</code></a></li> 5291cb0ef41Sopenharmony_ci<li><a href="#err_worker_unsupported_extension"><code>ERR_WORKER_UNSUPPORTED_EXTENSION</code></a></li> 5301cb0ef41Sopenharmony_ci<li><a href="#err_zlib_binding_closed"><code>ERR_ZLIB_BINDING_CLOSED</code></a></li> 5311cb0ef41Sopenharmony_ci<li><a href="#err_cpu_usage"><code>ERR_CPU_USAGE</code></a></li> 5321cb0ef41Sopenharmony_ci</ul> 5331cb0ef41Sopenharmony_ci</li> 5341cb0ef41Sopenharmony_ci</ul> 5351cb0ef41Sopenharmony_ci</li> 5361cb0ef41Sopenharmony_ci</ul></div></div> 5371cb0ef41Sopenharmony_ci </li> 5381cb0ef41Sopenharmony_ci 5391cb0ef41Sopenharmony_ci 5401cb0ef41Sopenharmony_ci <li class="picker-header"> 5411cb0ef41Sopenharmony_ci <a href="#"> 5421cb0ef41Sopenharmony_ci <span class="collapsed-arrow">►</span><span class="expanded-arrow">▼</span> 5431cb0ef41Sopenharmony_ci Index 5441cb0ef41Sopenharmony_ci </a> 5451cb0ef41Sopenharmony_ci 5461cb0ef41Sopenharmony_ci <div class="picker"><ul> 5471cb0ef41Sopenharmony_ci<li><a href="documentation.html" class="nav-documentation">About this documentation</a></li> 5481cb0ef41Sopenharmony_ci<li><a href="synopsis.html" class="nav-synopsis">Usage and example</a></li> 5491cb0ef41Sopenharmony_ci 5501cb0ef41Sopenharmony_ci <li> 5511cb0ef41Sopenharmony_ci <a href="index.html">Index</a> 5521cb0ef41Sopenharmony_ci </li> 5531cb0ef41Sopenharmony_ci </ul> 5541cb0ef41Sopenharmony_ci 5551cb0ef41Sopenharmony_ci<hr class="line"> 5561cb0ef41Sopenharmony_ci<ul> 5571cb0ef41Sopenharmony_ci<li><a href="assert.html" class="nav-assert">Assertion testing</a></li> 5581cb0ef41Sopenharmony_ci<li><a href="async_context.html" class="nav-async_context">Asynchronous context tracking</a></li> 5591cb0ef41Sopenharmony_ci<li><a href="async_hooks.html" class="nav-async_hooks">Async hooks</a></li> 5601cb0ef41Sopenharmony_ci<li><a href="buffer.html" class="nav-buffer">Buffer</a></li> 5611cb0ef41Sopenharmony_ci<li><a href="addons.html" class="nav-addons">C++ addons</a></li> 5621cb0ef41Sopenharmony_ci<li><a href="n-api.html" class="nav-n-api">C/C++ addons with Node-API</a></li> 5631cb0ef41Sopenharmony_ci<li><a href="embedding.html" class="nav-embedding">C++ embedder API</a></li> 5641cb0ef41Sopenharmony_ci<li><a href="child_process.html" class="nav-child_process">Child processes</a></li> 5651cb0ef41Sopenharmony_ci<li><a href="cluster.html" class="nav-cluster">Cluster</a></li> 5661cb0ef41Sopenharmony_ci<li><a href="cli.html" class="nav-cli">Command-line options</a></li> 5671cb0ef41Sopenharmony_ci<li><a href="console.html" class="nav-console">Console</a></li> 5681cb0ef41Sopenharmony_ci<li><a href="corepack.html" class="nav-corepack">Corepack</a></li> 5691cb0ef41Sopenharmony_ci<li><a href="crypto.html" class="nav-crypto">Crypto</a></li> 5701cb0ef41Sopenharmony_ci<li><a href="debugger.html" class="nav-debugger">Debugger</a></li> 5711cb0ef41Sopenharmony_ci<li><a href="deprecations.html" class="nav-deprecations">Deprecated APIs</a></li> 5721cb0ef41Sopenharmony_ci<li><a href="diagnostics_channel.html" class="nav-diagnostics_channel">Diagnostics Channel</a></li> 5731cb0ef41Sopenharmony_ci<li><a href="dns.html" class="nav-dns">DNS</a></li> 5741cb0ef41Sopenharmony_ci<li><a href="domain.html" class="nav-domain">Domain</a></li> 5751cb0ef41Sopenharmony_ci<li><a href="errors.html" class="nav-errors active">Errors</a></li> 5761cb0ef41Sopenharmony_ci<li><a href="events.html" class="nav-events">Events</a></li> 5771cb0ef41Sopenharmony_ci<li><a href="fs.html" class="nav-fs">File system</a></li> 5781cb0ef41Sopenharmony_ci<li><a href="globals.html" class="nav-globals">Globals</a></li> 5791cb0ef41Sopenharmony_ci<li><a href="http.html" class="nav-http">HTTP</a></li> 5801cb0ef41Sopenharmony_ci<li><a href="http2.html" class="nav-http2">HTTP/2</a></li> 5811cb0ef41Sopenharmony_ci<li><a href="https.html" class="nav-https">HTTPS</a></li> 5821cb0ef41Sopenharmony_ci<li><a href="inspector.html" class="nav-inspector">Inspector</a></li> 5831cb0ef41Sopenharmony_ci<li><a href="intl.html" class="nav-intl">Internationalization</a></li> 5841cb0ef41Sopenharmony_ci<li><a href="modules.html" class="nav-modules">Modules: CommonJS modules</a></li> 5851cb0ef41Sopenharmony_ci<li><a href="esm.html" class="nav-esm">Modules: ECMAScript modules</a></li> 5861cb0ef41Sopenharmony_ci<li><a href="module.html" class="nav-module">Modules: <code>node:module</code> API</a></li> 5871cb0ef41Sopenharmony_ci<li><a href="packages.html" class="nav-packages">Modules: Packages</a></li> 5881cb0ef41Sopenharmony_ci<li><a href="net.html" class="nav-net">Net</a></li> 5891cb0ef41Sopenharmony_ci<li><a href="os.html" class="nav-os">OS</a></li> 5901cb0ef41Sopenharmony_ci<li><a href="path.html" class="nav-path">Path</a></li> 5911cb0ef41Sopenharmony_ci<li><a href="perf_hooks.html" class="nav-perf_hooks">Performance hooks</a></li> 5921cb0ef41Sopenharmony_ci<li><a href="permissions.html" class="nav-permissions">Permissions</a></li> 5931cb0ef41Sopenharmony_ci<li><a href="process.html" class="nav-process">Process</a></li> 5941cb0ef41Sopenharmony_ci<li><a href="punycode.html" class="nav-punycode">Punycode</a></li> 5951cb0ef41Sopenharmony_ci<li><a href="querystring.html" class="nav-querystring">Query strings</a></li> 5961cb0ef41Sopenharmony_ci<li><a href="readline.html" class="nav-readline">Readline</a></li> 5971cb0ef41Sopenharmony_ci<li><a href="repl.html" class="nav-repl">REPL</a></li> 5981cb0ef41Sopenharmony_ci<li><a href="report.html" class="nav-report">Report</a></li> 5991cb0ef41Sopenharmony_ci<li><a href="single-executable-applications.html" class="nav-single-executable-applications">Single executable applications</a></li> 6001cb0ef41Sopenharmony_ci<li><a href="stream.html" class="nav-stream">Stream</a></li> 6011cb0ef41Sopenharmony_ci<li><a href="string_decoder.html" class="nav-string_decoder">String decoder</a></li> 6021cb0ef41Sopenharmony_ci<li><a href="test.html" class="nav-test">Test runner</a></li> 6031cb0ef41Sopenharmony_ci<li><a href="timers.html" class="nav-timers">Timers</a></li> 6041cb0ef41Sopenharmony_ci<li><a href="tls.html" class="nav-tls">TLS/SSL</a></li> 6051cb0ef41Sopenharmony_ci<li><a href="tracing.html" class="nav-tracing">Trace events</a></li> 6061cb0ef41Sopenharmony_ci<li><a href="tty.html" class="nav-tty">TTY</a></li> 6071cb0ef41Sopenharmony_ci<li><a href="dgram.html" class="nav-dgram">UDP/datagram</a></li> 6081cb0ef41Sopenharmony_ci<li><a href="url.html" class="nav-url">URL</a></li> 6091cb0ef41Sopenharmony_ci<li><a href="util.html" class="nav-util">Utilities</a></li> 6101cb0ef41Sopenharmony_ci<li><a href="v8.html" class="nav-v8">V8</a></li> 6111cb0ef41Sopenharmony_ci<li><a href="vm.html" class="nav-vm">VM</a></li> 6121cb0ef41Sopenharmony_ci<li><a href="wasi.html" class="nav-wasi">WASI</a></li> 6131cb0ef41Sopenharmony_ci<li><a href="webcrypto.html" class="nav-webcrypto">Web Crypto API</a></li> 6141cb0ef41Sopenharmony_ci<li><a href="webstreams.html" class="nav-webstreams">Web Streams API</a></li> 6151cb0ef41Sopenharmony_ci<li><a href="worker_threads.html" class="nav-worker_threads">Worker threads</a></li> 6161cb0ef41Sopenharmony_ci<li><a href="zlib.html" class="nav-zlib">Zlib</a></li> 6171cb0ef41Sopenharmony_ci</ul> 6181cb0ef41Sopenharmony_ci<hr class="line"> 6191cb0ef41Sopenharmony_ci<ul> 6201cb0ef41Sopenharmony_ci<li><a href="https://github.com/nodejs/node" class="nav-https-github-com-nodejs-node">Code repository and issue tracker</a></li> 6211cb0ef41Sopenharmony_ci</ul></div> 6221cb0ef41Sopenharmony_ci </li> 6231cb0ef41Sopenharmony_ci 6241cb0ef41Sopenharmony_ci 6251cb0ef41Sopenharmony_ci <li class="picker-header"> 6261cb0ef41Sopenharmony_ci <a href="#"> 6271cb0ef41Sopenharmony_ci <span class="collapsed-arrow">►</span><span class="expanded-arrow">▼</span> 6281cb0ef41Sopenharmony_ci Other versions 6291cb0ef41Sopenharmony_ci </a> 6301cb0ef41Sopenharmony_ci <div class="picker"><ol id="alt-docs"><li><a href="https://nodejs.org/docs/latest-v21.x/api/errors.html">21.x</a></li> 6311cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v20.x/api/errors.html">20.x <b>LTS</b></a></li> 6321cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v19.x/api/errors.html">19.x</a></li> 6331cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v18.x/api/errors.html">18.x <b>LTS</b></a></li> 6341cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v17.x/api/errors.html">17.x</a></li> 6351cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v16.x/api/errors.html">16.x</a></li> 6361cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v15.x/api/errors.html">15.x</a></li> 6371cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v14.x/api/errors.html">14.x</a></li> 6381cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v13.x/api/errors.html">13.x</a></li> 6391cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v12.x/api/errors.html">12.x</a></li> 6401cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v11.x/api/errors.html">11.x</a></li> 6411cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v10.x/api/errors.html">10.x</a></li> 6421cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v9.x/api/errors.html">9.x</a></li> 6431cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v8.x/api/errors.html">8.x</a></li> 6441cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v7.x/api/errors.html">7.x</a></li> 6451cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v6.x/api/errors.html">6.x</a></li> 6461cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v5.x/api/errors.html">5.x</a></li> 6471cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v4.x/api/errors.html">4.x</a></li></ol></div> 6481cb0ef41Sopenharmony_ci </li> 6491cb0ef41Sopenharmony_ci 6501cb0ef41Sopenharmony_ci <li class="picker-header"> 6511cb0ef41Sopenharmony_ci <a href="#"> 6521cb0ef41Sopenharmony_ci <span class="collapsed-arrow">►</span><span class="expanded-arrow">▼</span> 6531cb0ef41Sopenharmony_ci Options 6541cb0ef41Sopenharmony_ci </a> 6551cb0ef41Sopenharmony_ci 6561cb0ef41Sopenharmony_ci <div class="picker"> 6571cb0ef41Sopenharmony_ci <ul> 6581cb0ef41Sopenharmony_ci <li> 6591cb0ef41Sopenharmony_ci <a href="all.html">View on single page</a> 6601cb0ef41Sopenharmony_ci </li> 6611cb0ef41Sopenharmony_ci <li> 6621cb0ef41Sopenharmony_ci <a href="errors.json">View as JSON</a> 6631cb0ef41Sopenharmony_ci </li> 6641cb0ef41Sopenharmony_ci <li class="edit_on_github"><a href="https://github.com/nodejs/node/edit/main/doc/api/errors.md">Edit on GitHub</a></li> 6651cb0ef41Sopenharmony_ci </ul> 6661cb0ef41Sopenharmony_ci </div> 6671cb0ef41Sopenharmony_ci </li> 6681cb0ef41Sopenharmony_ci </ul> 6691cb0ef41Sopenharmony_ci </div> 6701cb0ef41Sopenharmony_ci <hr> 6711cb0ef41Sopenharmony_ci </header> 6721cb0ef41Sopenharmony_ci 6731cb0ef41Sopenharmony_ci <details id="toc" open><summary>Table of contents</summary><ul> 6741cb0ef41Sopenharmony_ci<li><a href="#errors">Errors</a> 6751cb0ef41Sopenharmony_ci<ul> 6761cb0ef41Sopenharmony_ci<li><a href="#error-propagation-and-interception">Error propagation and interception</a></li> 6771cb0ef41Sopenharmony_ci<li><a href="#class-error">Class: <code>Error</code></a> 6781cb0ef41Sopenharmony_ci<ul> 6791cb0ef41Sopenharmony_ci<li><a href="#new-errormessage-options"><code>new Error(message[, options])</code></a></li> 6801cb0ef41Sopenharmony_ci<li><a href="#errorcapturestacktracetargetobject-constructoropt"><code>Error.captureStackTrace(targetObject[, constructorOpt])</code></a></li> 6811cb0ef41Sopenharmony_ci<li><a href="#errorstacktracelimit"><code>Error.stackTraceLimit</code></a></li> 6821cb0ef41Sopenharmony_ci<li><a href="#errorcause"><code>error.cause</code></a></li> 6831cb0ef41Sopenharmony_ci<li><a href="#errorcode"><code>error.code</code></a></li> 6841cb0ef41Sopenharmony_ci<li><a href="#errormessage"><code>error.message</code></a></li> 6851cb0ef41Sopenharmony_ci<li><a href="#errorstack"><code>error.stack</code></a></li> 6861cb0ef41Sopenharmony_ci</ul> 6871cb0ef41Sopenharmony_ci</li> 6881cb0ef41Sopenharmony_ci<li><a href="#class-assertionerror">Class: <code>AssertionError</code></a></li> 6891cb0ef41Sopenharmony_ci<li><a href="#class-rangeerror">Class: <code>RangeError</code></a></li> 6901cb0ef41Sopenharmony_ci<li><a href="#class-referenceerror">Class: <code>ReferenceError</code></a></li> 6911cb0ef41Sopenharmony_ci<li><a href="#class-syntaxerror">Class: <code>SyntaxError</code></a></li> 6921cb0ef41Sopenharmony_ci<li><a href="#class-systemerror">Class: <code>SystemError</code></a> 6931cb0ef41Sopenharmony_ci<ul> 6941cb0ef41Sopenharmony_ci<li><a href="#erroraddress"><code>error.address</code></a></li> 6951cb0ef41Sopenharmony_ci<li><a href="#errorcode_1"><code>error.code</code></a></li> 6961cb0ef41Sopenharmony_ci<li><a href="#errordest"><code>error.dest</code></a></li> 6971cb0ef41Sopenharmony_ci<li><a href="#errorerrno"><code>error.errno</code></a></li> 6981cb0ef41Sopenharmony_ci<li><a href="#errorinfo"><code>error.info</code></a></li> 6991cb0ef41Sopenharmony_ci<li><a href="#errormessage_1"><code>error.message</code></a></li> 7001cb0ef41Sopenharmony_ci<li><a href="#errorpath"><code>error.path</code></a></li> 7011cb0ef41Sopenharmony_ci<li><a href="#errorport"><code>error.port</code></a></li> 7021cb0ef41Sopenharmony_ci<li><a href="#errorsyscall"><code>error.syscall</code></a></li> 7031cb0ef41Sopenharmony_ci<li><a href="#common-system-errors">Common system errors</a></li> 7041cb0ef41Sopenharmony_ci</ul> 7051cb0ef41Sopenharmony_ci</li> 7061cb0ef41Sopenharmony_ci<li><a href="#class-typeerror">Class: <code>TypeError</code></a></li> 7071cb0ef41Sopenharmony_ci<li><a href="#exceptions-vs-errors">Exceptions vs. errors</a></li> 7081cb0ef41Sopenharmony_ci<li><a href="#openssl-errors">OpenSSL errors</a> 7091cb0ef41Sopenharmony_ci<ul> 7101cb0ef41Sopenharmony_ci<li><a href="#erroropensslerrorstack"><code>error.opensslErrorStack</code></a></li> 7111cb0ef41Sopenharmony_ci<li><a href="#errorfunction"><code>error.function</code></a></li> 7121cb0ef41Sopenharmony_ci<li><a href="#errorlibrary"><code>error.library</code></a></li> 7131cb0ef41Sopenharmony_ci<li><a href="#errorreason"><code>error.reason</code></a></li> 7141cb0ef41Sopenharmony_ci</ul> 7151cb0ef41Sopenharmony_ci</li> 7161cb0ef41Sopenharmony_ci<li><a href="#nodejs-error-codes">Node.js error codes</a> 7171cb0ef41Sopenharmony_ci<ul> 7181cb0ef41Sopenharmony_ci<li><a href="#abort_err"><code>ABORT_ERR</code></a></li> 7191cb0ef41Sopenharmony_ci<li><a href="#err_access_denied"><code>ERR_ACCESS_DENIED</code></a></li> 7201cb0ef41Sopenharmony_ci<li><a href="#err_ambiguous_argument"><code>ERR_AMBIGUOUS_ARGUMENT</code></a></li> 7211cb0ef41Sopenharmony_ci<li><a href="#err_arg_not_iterable"><code>ERR_ARG_NOT_ITERABLE</code></a></li> 7221cb0ef41Sopenharmony_ci<li><a href="#err_assertion"><code>ERR_ASSERTION</code></a></li> 7231cb0ef41Sopenharmony_ci<li><a href="#err_async_callback"><code>ERR_ASYNC_CALLBACK</code></a></li> 7241cb0ef41Sopenharmony_ci<li><a href="#err_async_type"><code>ERR_ASYNC_TYPE</code></a></li> 7251cb0ef41Sopenharmony_ci<li><a href="#err_brotli_compression_failed"><code>ERR_BROTLI_COMPRESSION_FAILED</code></a></li> 7261cb0ef41Sopenharmony_ci<li><a href="#err_brotli_invalid_param"><code>ERR_BROTLI_INVALID_PARAM</code></a></li> 7271cb0ef41Sopenharmony_ci<li><a href="#err_buffer_context_not_available"><code>ERR_BUFFER_CONTEXT_NOT_AVAILABLE</code></a></li> 7281cb0ef41Sopenharmony_ci<li><a href="#err_buffer_out_of_bounds"><code>ERR_BUFFER_OUT_OF_BOUNDS</code></a></li> 7291cb0ef41Sopenharmony_ci<li><a href="#err_buffer_too_large"><code>ERR_BUFFER_TOO_LARGE</code></a></li> 7301cb0ef41Sopenharmony_ci<li><a href="#err_cannot_watch_sigint"><code>ERR_CANNOT_WATCH_SIGINT</code></a></li> 7311cb0ef41Sopenharmony_ci<li><a href="#err_child_closed_before_reply"><code>ERR_CHILD_CLOSED_BEFORE_REPLY</code></a></li> 7321cb0ef41Sopenharmony_ci<li><a href="#err_child_process_ipc_required"><code>ERR_CHILD_PROCESS_IPC_REQUIRED</code></a></li> 7331cb0ef41Sopenharmony_ci<li><a href="#err_child_process_stdio_maxbuffer"><code>ERR_CHILD_PROCESS_STDIO_MAXBUFFER</code></a></li> 7341cb0ef41Sopenharmony_ci<li><a href="#err_closed_message_port"><code>ERR_CLOSED_MESSAGE_PORT</code></a></li> 7351cb0ef41Sopenharmony_ci<li><a href="#err_console_writable_stream"><code>ERR_CONSOLE_WRITABLE_STREAM</code></a></li> 7361cb0ef41Sopenharmony_ci<li><a href="#err_construct_call_invalid"><code>ERR_CONSTRUCT_CALL_INVALID</code></a></li> 7371cb0ef41Sopenharmony_ci<li><a href="#err_construct_call_required"><code>ERR_CONSTRUCT_CALL_REQUIRED</code></a></li> 7381cb0ef41Sopenharmony_ci<li><a href="#err_context_not_initialized"><code>ERR_CONTEXT_NOT_INITIALIZED</code></a></li> 7391cb0ef41Sopenharmony_ci<li><a href="#err_crypto_custom_engine_not_supported"><code>ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED</code></a></li> 7401cb0ef41Sopenharmony_ci<li><a href="#err_crypto_ecdh_invalid_format"><code>ERR_CRYPTO_ECDH_INVALID_FORMAT</code></a></li> 7411cb0ef41Sopenharmony_ci<li><a href="#err_crypto_ecdh_invalid_public_key"><code>ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY</code></a></li> 7421cb0ef41Sopenharmony_ci<li><a href="#err_crypto_engine_unknown"><code>ERR_CRYPTO_ENGINE_UNKNOWN</code></a></li> 7431cb0ef41Sopenharmony_ci<li><a href="#err_crypto_fips_forced"><code>ERR_CRYPTO_FIPS_FORCED</code></a></li> 7441cb0ef41Sopenharmony_ci<li><a href="#err_crypto_fips_unavailable"><code>ERR_CRYPTO_FIPS_UNAVAILABLE</code></a></li> 7451cb0ef41Sopenharmony_ci<li><a href="#err_crypto_hash_finalized"><code>ERR_CRYPTO_HASH_FINALIZED</code></a></li> 7461cb0ef41Sopenharmony_ci<li><a href="#err_crypto_hash_update_failed"><code>ERR_CRYPTO_HASH_UPDATE_FAILED</code></a></li> 7471cb0ef41Sopenharmony_ci<li><a href="#err_crypto_incompatible_key"><code>ERR_CRYPTO_INCOMPATIBLE_KEY</code></a></li> 7481cb0ef41Sopenharmony_ci<li><a href="#err_crypto_incompatible_key_options"><code>ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS</code></a></li> 7491cb0ef41Sopenharmony_ci<li><a href="#err_crypto_initialization_failed"><code>ERR_CRYPTO_INITIALIZATION_FAILED</code></a></li> 7501cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_auth_tag"><code>ERR_CRYPTO_INVALID_AUTH_TAG</code></a></li> 7511cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_counter"><code>ERR_CRYPTO_INVALID_COUNTER</code></a></li> 7521cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_curve"><code>ERR_CRYPTO_INVALID_CURVE</code></a></li> 7531cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_digest"><code>ERR_CRYPTO_INVALID_DIGEST</code></a></li> 7541cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_iv"><code>ERR_CRYPTO_INVALID_IV</code></a></li> 7551cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_jwk"><code>ERR_CRYPTO_INVALID_JWK</code></a></li> 7561cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_key_object_type"><code>ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE</code></a></li> 7571cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_keylen"><code>ERR_CRYPTO_INVALID_KEYLEN</code></a></li> 7581cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_keypair"><code>ERR_CRYPTO_INVALID_KEYPAIR</code></a></li> 7591cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_keytype"><code>ERR_CRYPTO_INVALID_KEYTYPE</code></a></li> 7601cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_messagelen"><code>ERR_CRYPTO_INVALID_MESSAGELEN</code></a></li> 7611cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_scrypt_params"><code>ERR_CRYPTO_INVALID_SCRYPT_PARAMS</code></a></li> 7621cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_state"><code>ERR_CRYPTO_INVALID_STATE</code></a></li> 7631cb0ef41Sopenharmony_ci<li><a href="#err_crypto_invalid_tag_length"><code>ERR_CRYPTO_INVALID_TAG_LENGTH</code></a></li> 7641cb0ef41Sopenharmony_ci<li><a href="#err_crypto_job_init_failed"><code>ERR_CRYPTO_JOB_INIT_FAILED</code></a></li> 7651cb0ef41Sopenharmony_ci<li><a href="#err_crypto_jwk_unsupported_curve"><code>ERR_CRYPTO_JWK_UNSUPPORTED_CURVE</code></a></li> 7661cb0ef41Sopenharmony_ci<li><a href="#err_crypto_jwk_unsupported_key_type"><code>ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE</code></a></li> 7671cb0ef41Sopenharmony_ci<li><a href="#err_crypto_operation_failed"><code>ERR_CRYPTO_OPERATION_FAILED</code></a></li> 7681cb0ef41Sopenharmony_ci<li><a href="#err_crypto_pbkdf2_error"><code>ERR_CRYPTO_PBKDF2_ERROR</code></a></li> 7691cb0ef41Sopenharmony_ci<li><a href="#err_crypto_scrypt_invalid_parameter"><code>ERR_CRYPTO_SCRYPT_INVALID_PARAMETER</code></a></li> 7701cb0ef41Sopenharmony_ci<li><a href="#err_crypto_scrypt_not_supported"><code>ERR_CRYPTO_SCRYPT_NOT_SUPPORTED</code></a></li> 7711cb0ef41Sopenharmony_ci<li><a href="#err_crypto_sign_key_required"><code>ERR_CRYPTO_SIGN_KEY_REQUIRED</code></a></li> 7721cb0ef41Sopenharmony_ci<li><a href="#err_crypto_timing_safe_equal_length"><code>ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH</code></a></li> 7731cb0ef41Sopenharmony_ci<li><a href="#err_crypto_unknown_cipher"><code>ERR_CRYPTO_UNKNOWN_CIPHER</code></a></li> 7741cb0ef41Sopenharmony_ci<li><a href="#err_crypto_unknown_dh_group"><code>ERR_CRYPTO_UNKNOWN_DH_GROUP</code></a></li> 7751cb0ef41Sopenharmony_ci<li><a href="#err_crypto_unsupported_operation"><code>ERR_CRYPTO_UNSUPPORTED_OPERATION</code></a></li> 7761cb0ef41Sopenharmony_ci<li><a href="#err_debugger_error"><code>ERR_DEBUGGER_ERROR</code></a></li> 7771cb0ef41Sopenharmony_ci<li><a href="#err_debugger_startup_error"><code>ERR_DEBUGGER_STARTUP_ERROR</code></a></li> 7781cb0ef41Sopenharmony_ci<li><a href="#err_dlopen_disabled"><code>ERR_DLOPEN_DISABLED</code></a></li> 7791cb0ef41Sopenharmony_ci<li><a href="#err_dlopen_failed"><code>ERR_DLOPEN_FAILED</code></a></li> 7801cb0ef41Sopenharmony_ci<li><a href="#err_dir_closed"><code>ERR_DIR_CLOSED</code></a></li> 7811cb0ef41Sopenharmony_ci<li><a href="#err_dir_concurrent_operation"><code>ERR_DIR_CONCURRENT_OPERATION</code></a></li> 7821cb0ef41Sopenharmony_ci<li><a href="#err_dns_set_servers_failed"><code>ERR_DNS_SET_SERVERS_FAILED</code></a></li> 7831cb0ef41Sopenharmony_ci<li><a href="#err_domain_callback_not_available"><code>ERR_DOMAIN_CALLBACK_NOT_AVAILABLE</code></a></li> 7841cb0ef41Sopenharmony_ci<li><a href="#err_domain_cannot_set_uncaught_exception_capture"><code>ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE</code></a></li> 7851cb0ef41Sopenharmony_ci<li><a href="#err_duplicate_startup_snapshot_main_function"><code>ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION</code></a></li> 7861cb0ef41Sopenharmony_ci<li><a href="#err_encoding_invalid_encoded_data"><code>ERR_ENCODING_INVALID_ENCODED_DATA</code></a></li> 7871cb0ef41Sopenharmony_ci<li><a href="#err_encoding_not_supported"><code>ERR_ENCODING_NOT_SUPPORTED</code></a></li> 7881cb0ef41Sopenharmony_ci<li><a href="#err_eval_esm_cannot_print"><code>ERR_EVAL_ESM_CANNOT_PRINT</code></a></li> 7891cb0ef41Sopenharmony_ci<li><a href="#err_event_recursion"><code>ERR_EVENT_RECURSION</code></a></li> 7901cb0ef41Sopenharmony_ci<li><a href="#err_execution_environment_not_available"><code>ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE</code></a></li> 7911cb0ef41Sopenharmony_ci<li><a href="#err_falsy_value_rejection"><code>ERR_FALSY_VALUE_REJECTION</code></a></li> 7921cb0ef41Sopenharmony_ci<li><a href="#err_feature_unavailable_on_platform"><code>ERR_FEATURE_UNAVAILABLE_ON_PLATFORM</code></a></li> 7931cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_dir_to_non_dir"><code>ERR_FS_CP_DIR_TO_NON_DIR</code></a></li> 7941cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_eexist"><code>ERR_FS_CP_EEXIST</code></a></li> 7951cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_einval"><code>ERR_FS_CP_EINVAL</code></a></li> 7961cb0ef41Sopenharmony_ci<li><a href="#err_http_body_not_allowed"><code>ERR_HTTP_BODY_NOT_ALLOWED</code></a></li> 7971cb0ef41Sopenharmony_ci<li><a href="#err_http_content_length_mismatch"><code>ERR_HTTP_CONTENT_LENGTH_MISMATCH</code></a></li> 7981cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_fifo_pipe"><code>ERR_FS_CP_FIFO_PIPE</code></a></li> 7991cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_non_dir_to_dir"><code>ERR_FS_CP_NON_DIR_TO_DIR</code></a></li> 8001cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_socket"><code>ERR_FS_CP_SOCKET</code></a></li> 8011cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_symlink_to_subdirectory"><code>ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY</code></a></li> 8021cb0ef41Sopenharmony_ci<li><a href="#err_fs_cp_unknown"><code>ERR_FS_CP_UNKNOWN</code></a></li> 8031cb0ef41Sopenharmony_ci<li><a href="#err_fs_eisdir"><code>ERR_FS_EISDIR</code></a></li> 8041cb0ef41Sopenharmony_ci<li><a href="#err_fs_file_too_large"><code>ERR_FS_FILE_TOO_LARGE</code></a></li> 8051cb0ef41Sopenharmony_ci<li><a href="#err_fs_invalid_symlink_type"><code>ERR_FS_INVALID_SYMLINK_TYPE</code></a></li> 8061cb0ef41Sopenharmony_ci<li><a href="#err_http_headers_sent"><code>ERR_HTTP_HEADERS_SENT</code></a></li> 8071cb0ef41Sopenharmony_ci<li><a href="#err_http_invalid_header_value"><code>ERR_HTTP_INVALID_HEADER_VALUE</code></a></li> 8081cb0ef41Sopenharmony_ci<li><a href="#err_http_invalid_status_code"><code>ERR_HTTP_INVALID_STATUS_CODE</code></a></li> 8091cb0ef41Sopenharmony_ci<li><a href="#err_http_request_timeout"><code>ERR_HTTP_REQUEST_TIMEOUT</code></a></li> 8101cb0ef41Sopenharmony_ci<li><a href="#err_http_socket_assigned"><code>ERR_HTTP_SOCKET_ASSIGNED</code></a></li> 8111cb0ef41Sopenharmony_ci<li><a href="#err_http_socket_encoding"><code>ERR_HTTP_SOCKET_ENCODING</code></a></li> 8121cb0ef41Sopenharmony_ci<li><a href="#err_http_trailer_invalid"><code>ERR_HTTP_TRAILER_INVALID</code></a></li> 8131cb0ef41Sopenharmony_ci<li><a href="#err_http2_altsvc_invalid_origin"><code>ERR_HTTP2_ALTSVC_INVALID_ORIGIN</code></a></li> 8141cb0ef41Sopenharmony_ci<li><a href="#err_http2_altsvc_length"><code>ERR_HTTP2_ALTSVC_LENGTH</code></a></li> 8151cb0ef41Sopenharmony_ci<li><a href="#err_http2_connect_authority"><code>ERR_HTTP2_CONNECT_AUTHORITY</code></a></li> 8161cb0ef41Sopenharmony_ci<li><a href="#err_http2_connect_path"><code>ERR_HTTP2_CONNECT_PATH</code></a></li> 8171cb0ef41Sopenharmony_ci<li><a href="#err_http2_connect_scheme"><code>ERR_HTTP2_CONNECT_SCHEME</code></a></li> 8181cb0ef41Sopenharmony_ci<li><a href="#err_http2_error"><code>ERR_HTTP2_ERROR</code></a></li> 8191cb0ef41Sopenharmony_ci<li><a href="#err_http2_goaway_session"><code>ERR_HTTP2_GOAWAY_SESSION</code></a></li> 8201cb0ef41Sopenharmony_ci<li><a href="#err_http2_header_single_value"><code>ERR_HTTP2_HEADER_SINGLE_VALUE</code></a></li> 8211cb0ef41Sopenharmony_ci<li><a href="#err_http2_headers_after_respond"><code>ERR_HTTP2_HEADERS_AFTER_RESPOND</code></a></li> 8221cb0ef41Sopenharmony_ci<li><a href="#err_http2_headers_sent"><code>ERR_HTTP2_HEADERS_SENT</code></a></li> 8231cb0ef41Sopenharmony_ci<li><a href="#err_http2_info_status_not_allowed"><code>ERR_HTTP2_INFO_STATUS_NOT_ALLOWED</code></a></li> 8241cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_connection_headers"><code>ERR_HTTP2_INVALID_CONNECTION_HEADERS</code></a></li> 8251cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_header_value"><code>ERR_HTTP2_INVALID_HEADER_VALUE</code></a></li> 8261cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_info_status"><code>ERR_HTTP2_INVALID_INFO_STATUS</code></a></li> 8271cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_origin"><code>ERR_HTTP2_INVALID_ORIGIN</code></a></li> 8281cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_packed_settings_length"><code>ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH</code></a></li> 8291cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_pseudoheader"><code>ERR_HTTP2_INVALID_PSEUDOHEADER</code></a></li> 8301cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_session"><code>ERR_HTTP2_INVALID_SESSION</code></a></li> 8311cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_setting_value"><code>ERR_HTTP2_INVALID_SETTING_VALUE</code></a></li> 8321cb0ef41Sopenharmony_ci<li><a href="#err_http2_invalid_stream"><code>ERR_HTTP2_INVALID_STREAM</code></a></li> 8331cb0ef41Sopenharmony_ci<li><a href="#err_http2_max_pending_settings_ack"><code>ERR_HTTP2_MAX_PENDING_SETTINGS_ACK</code></a></li> 8341cb0ef41Sopenharmony_ci<li><a href="#err_http2_nested_push"><code>ERR_HTTP2_NESTED_PUSH</code></a></li> 8351cb0ef41Sopenharmony_ci<li><a href="#err_http2_no_mem"><code>ERR_HTTP2_NO_MEM</code></a></li> 8361cb0ef41Sopenharmony_ci<li><a href="#err_http2_no_socket_manipulation"><code>ERR_HTTP2_NO_SOCKET_MANIPULATION</code></a></li> 8371cb0ef41Sopenharmony_ci<li><a href="#err_http2_origin_length"><code>ERR_HTTP2_ORIGIN_LENGTH</code></a></li> 8381cb0ef41Sopenharmony_ci<li><a href="#err_http2_out_of_streams"><code>ERR_HTTP2_OUT_OF_STREAMS</code></a></li> 8391cb0ef41Sopenharmony_ci<li><a href="#err_http2_payload_forbidden"><code>ERR_HTTP2_PAYLOAD_FORBIDDEN</code></a></li> 8401cb0ef41Sopenharmony_ci<li><a href="#err_http2_ping_cancel"><code>ERR_HTTP2_PING_CANCEL</code></a></li> 8411cb0ef41Sopenharmony_ci<li><a href="#err_http2_ping_length"><code>ERR_HTTP2_PING_LENGTH</code></a></li> 8421cb0ef41Sopenharmony_ci<li><a href="#err_http2_pseudoheader_not_allowed"><code>ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED</code></a></li> 8431cb0ef41Sopenharmony_ci<li><a href="#err_http2_push_disabled"><code>ERR_HTTP2_PUSH_DISABLED</code></a></li> 8441cb0ef41Sopenharmony_ci<li><a href="#err_http2_send_file"><code>ERR_HTTP2_SEND_FILE</code></a></li> 8451cb0ef41Sopenharmony_ci<li><a href="#err_http2_send_file_noseek"><code>ERR_HTTP2_SEND_FILE_NOSEEK</code></a></li> 8461cb0ef41Sopenharmony_ci<li><a href="#err_http2_session_error"><code>ERR_HTTP2_SESSION_ERROR</code></a></li> 8471cb0ef41Sopenharmony_ci<li><a href="#err_http2_settings_cancel"><code>ERR_HTTP2_SETTINGS_CANCEL</code></a></li> 8481cb0ef41Sopenharmony_ci<li><a href="#err_http2_socket_bound"><code>ERR_HTTP2_SOCKET_BOUND</code></a></li> 8491cb0ef41Sopenharmony_ci<li><a href="#err_http2_socket_unbound"><code>ERR_HTTP2_SOCKET_UNBOUND</code></a></li> 8501cb0ef41Sopenharmony_ci<li><a href="#err_http2_status_101"><code>ERR_HTTP2_STATUS_101</code></a></li> 8511cb0ef41Sopenharmony_ci<li><a href="#err_http2_status_invalid"><code>ERR_HTTP2_STATUS_INVALID</code></a></li> 8521cb0ef41Sopenharmony_ci<li><a href="#err_http2_stream_cancel"><code>ERR_HTTP2_STREAM_CANCEL</code></a></li> 8531cb0ef41Sopenharmony_ci<li><a href="#err_http2_stream_error"><code>ERR_HTTP2_STREAM_ERROR</code></a></li> 8541cb0ef41Sopenharmony_ci<li><a href="#err_http2_stream_self_dependency"><code>ERR_HTTP2_STREAM_SELF_DEPENDENCY</code></a></li> 8551cb0ef41Sopenharmony_ci<li><a href="#err_http2_too_many_invalid_frames"><code>ERR_HTTP2_TOO_MANY_INVALID_FRAMES</code></a></li> 8561cb0ef41Sopenharmony_ci<li><a href="#err_http2_trailers_already_sent"><code>ERR_HTTP2_TRAILERS_ALREADY_SENT</code></a></li> 8571cb0ef41Sopenharmony_ci<li><a href="#err_http2_trailers_not_ready"><code>ERR_HTTP2_TRAILERS_NOT_READY</code></a></li> 8581cb0ef41Sopenharmony_ci<li><a href="#err_http2_unsupported_protocol"><code>ERR_HTTP2_UNSUPPORTED_PROTOCOL</code></a></li> 8591cb0ef41Sopenharmony_ci<li><a href="#err_illegal_constructor"><code>ERR_ILLEGAL_CONSTRUCTOR</code></a></li> 8601cb0ef41Sopenharmony_ci<li><a href="#err_import_assertion_type_failed"><code>ERR_IMPORT_ASSERTION_TYPE_FAILED</code></a></li> 8611cb0ef41Sopenharmony_ci<li><a href="#err_import_assertion_type_missing"><code>ERR_IMPORT_ASSERTION_TYPE_MISSING</code></a></li> 8621cb0ef41Sopenharmony_ci<li><a href="#err_import_assertion_type_unsupported"><code>ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED</code></a></li> 8631cb0ef41Sopenharmony_ci<li><a href="#err_import_attribute_unsupported"><code>ERR_IMPORT_ATTRIBUTE_UNSUPPORTED</code></a></li> 8641cb0ef41Sopenharmony_ci<li><a href="#err_incompatible_option_pair"><code>ERR_INCOMPATIBLE_OPTION_PAIR</code></a></li> 8651cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_input_type_not_allowed"><code>ERR_INPUT_TYPE_NOT_ALLOWED</code></a></span></li> 8661cb0ef41Sopenharmony_ci<li><a href="#err_inspector_already_activated"><code>ERR_INSPECTOR_ALREADY_ACTIVATED</code></a></li> 8671cb0ef41Sopenharmony_ci<li><a href="#err_inspector_already_connected"><code>ERR_INSPECTOR_ALREADY_CONNECTED</code></a></li> 8681cb0ef41Sopenharmony_ci<li><a href="#err_inspector_closed"><code>ERR_INSPECTOR_CLOSED</code></a></li> 8691cb0ef41Sopenharmony_ci<li><a href="#err_inspector_command"><code>ERR_INSPECTOR_COMMAND</code></a></li> 8701cb0ef41Sopenharmony_ci<li><a href="#err_inspector_not_active"><code>ERR_INSPECTOR_NOT_ACTIVE</code></a></li> 8711cb0ef41Sopenharmony_ci<li><a href="#err_inspector_not_available"><code>ERR_INSPECTOR_NOT_AVAILABLE</code></a></li> 8721cb0ef41Sopenharmony_ci<li><a href="#err_inspector_not_connected"><code>ERR_INSPECTOR_NOT_CONNECTED</code></a></li> 8731cb0ef41Sopenharmony_ci<li><a href="#err_inspector_not_worker"><code>ERR_INSPECTOR_NOT_WORKER</code></a></li> 8741cb0ef41Sopenharmony_ci<li><a href="#err_internal_assertion"><code>ERR_INTERNAL_ASSERTION</code></a></li> 8751cb0ef41Sopenharmony_ci<li><a href="#err_invalid_address_family"><code>ERR_INVALID_ADDRESS_FAMILY</code></a></li> 8761cb0ef41Sopenharmony_ci<li><a href="#err_invalid_arg_type"><code>ERR_INVALID_ARG_TYPE</code></a></li> 8771cb0ef41Sopenharmony_ci<li><a href="#err_invalid_arg_value"><code>ERR_INVALID_ARG_VALUE</code></a></li> 8781cb0ef41Sopenharmony_ci<li><a href="#err_invalid_async_id"><code>ERR_INVALID_ASYNC_ID</code></a></li> 8791cb0ef41Sopenharmony_ci<li><a href="#err_invalid_buffer_size"><code>ERR_INVALID_BUFFER_SIZE</code></a></li> 8801cb0ef41Sopenharmony_ci<li><a href="#err_invalid_char"><code>ERR_INVALID_CHAR</code></a></li> 8811cb0ef41Sopenharmony_ci<li><a href="#err_invalid_cursor_pos"><code>ERR_INVALID_CURSOR_POS</code></a></li> 8821cb0ef41Sopenharmony_ci<li><a href="#err_invalid_fd"><code>ERR_INVALID_FD</code></a></li> 8831cb0ef41Sopenharmony_ci<li><a href="#err_invalid_fd_type"><code>ERR_INVALID_FD_TYPE</code></a></li> 8841cb0ef41Sopenharmony_ci<li><a href="#err_invalid_file_url_host"><code>ERR_INVALID_FILE_URL_HOST</code></a></li> 8851cb0ef41Sopenharmony_ci<li><a href="#err_invalid_file_url_path"><code>ERR_INVALID_FILE_URL_PATH</code></a></li> 8861cb0ef41Sopenharmony_ci<li><a href="#err_invalid_handle_type"><code>ERR_INVALID_HANDLE_TYPE</code></a></li> 8871cb0ef41Sopenharmony_ci<li><a href="#err_invalid_http_token"><code>ERR_INVALID_HTTP_TOKEN</code></a></li> 8881cb0ef41Sopenharmony_ci<li><a href="#err_invalid_ip_address"><code>ERR_INVALID_IP_ADDRESS</code></a></li> 8891cb0ef41Sopenharmony_ci<li><a href="#err_invalid_mime_syntax"><code>ERR_INVALID_MIME_SYNTAX</code></a></li> 8901cb0ef41Sopenharmony_ci<li><a href="#err_invalid_module"><code>ERR_INVALID_MODULE</code></a></li> 8911cb0ef41Sopenharmony_ci<li><a href="#err_invalid_module_specifier"><code>ERR_INVALID_MODULE_SPECIFIER</code></a></li> 8921cb0ef41Sopenharmony_ci<li><a href="#err_invalid_object_define_property"><code>ERR_INVALID_OBJECT_DEFINE_PROPERTY</code></a></li> 8931cb0ef41Sopenharmony_ci<li><a href="#err_invalid_package_config"><code>ERR_INVALID_PACKAGE_CONFIG</code></a></li> 8941cb0ef41Sopenharmony_ci<li><a href="#err_invalid_package_target"><code>ERR_INVALID_PACKAGE_TARGET</code></a></li> 8951cb0ef41Sopenharmony_ci<li><a href="#err_invalid_performance_mark"><code>ERR_INVALID_PERFORMANCE_MARK</code></a></li> 8961cb0ef41Sopenharmony_ci<li><a href="#err_invalid_protocol"><code>ERR_INVALID_PROTOCOL</code></a></li> 8971cb0ef41Sopenharmony_ci<li><a href="#err_invalid_repl_eval_config"><code>ERR_INVALID_REPL_EVAL_CONFIG</code></a></li> 8981cb0ef41Sopenharmony_ci<li><a href="#err_invalid_repl_input"><code>ERR_INVALID_REPL_INPUT</code></a></li> 8991cb0ef41Sopenharmony_ci<li><a href="#err_invalid_return_property"><code>ERR_INVALID_RETURN_PROPERTY</code></a></li> 9001cb0ef41Sopenharmony_ci<li><a href="#err_invalid_return_property_value"><code>ERR_INVALID_RETURN_PROPERTY_VALUE</code></a></li> 9011cb0ef41Sopenharmony_ci<li><a href="#err_invalid_return_value"><code>ERR_INVALID_RETURN_VALUE</code></a></li> 9021cb0ef41Sopenharmony_ci<li><a href="#err_invalid_state"><code>ERR_INVALID_STATE</code></a></li> 9031cb0ef41Sopenharmony_ci<li><a href="#err_invalid_sync_fork_input"><code>ERR_INVALID_SYNC_FORK_INPUT</code></a></li> 9041cb0ef41Sopenharmony_ci<li><a href="#err_invalid_this"><code>ERR_INVALID_THIS</code></a></li> 9051cb0ef41Sopenharmony_ci<li><a href="#err_invalid_transfer_object"><code>ERR_INVALID_TRANSFER_OBJECT</code></a></li> 9061cb0ef41Sopenharmony_ci<li><a href="#err_invalid_tuple"><code>ERR_INVALID_TUPLE</code></a></li> 9071cb0ef41Sopenharmony_ci<li><a href="#err_invalid_uri"><code>ERR_INVALID_URI</code></a></li> 9081cb0ef41Sopenharmony_ci<li><a href="#err_invalid_url"><code>ERR_INVALID_URL</code></a></li> 9091cb0ef41Sopenharmony_ci<li><a href="#err_invalid_url_scheme"><code>ERR_INVALID_URL_SCHEME</code></a></li> 9101cb0ef41Sopenharmony_ci<li><a href="#err_ipc_channel_closed"><code>ERR_IPC_CHANNEL_CLOSED</code></a></li> 9111cb0ef41Sopenharmony_ci<li><a href="#err_ipc_disconnected"><code>ERR_IPC_DISCONNECTED</code></a></li> 9121cb0ef41Sopenharmony_ci<li><a href="#err_ipc_one_pipe"><code>ERR_IPC_ONE_PIPE</code></a></li> 9131cb0ef41Sopenharmony_ci<li><a href="#err_ipc_sync_fork"><code>ERR_IPC_SYNC_FORK</code></a></li> 9141cb0ef41Sopenharmony_ci<li><a href="#err_loader_chain_incomplete"><code>ERR_LOADER_CHAIN_INCOMPLETE</code></a></li> 9151cb0ef41Sopenharmony_ci<li><a href="#err_manifest_assert_integrity"><code>ERR_MANIFEST_ASSERT_INTEGRITY</code></a></li> 9161cb0ef41Sopenharmony_ci<li><a href="#err_manifest_dependency_missing"><code>ERR_MANIFEST_DEPENDENCY_MISSING</code></a></li> 9171cb0ef41Sopenharmony_ci<li><a href="#err_manifest_integrity_mismatch"><code>ERR_MANIFEST_INTEGRITY_MISMATCH</code></a></li> 9181cb0ef41Sopenharmony_ci<li><a href="#err_manifest_invalid_resource_field"><code>ERR_MANIFEST_INVALID_RESOURCE_FIELD</code></a></li> 9191cb0ef41Sopenharmony_ci<li><a href="#err_manifest_invalid_specifier"><code>ERR_MANIFEST_INVALID_SPECIFIER</code></a></li> 9201cb0ef41Sopenharmony_ci<li><a href="#err_manifest_parse_policy"><code>ERR_MANIFEST_PARSE_POLICY</code></a></li> 9211cb0ef41Sopenharmony_ci<li><a href="#err_manifest_tdz"><code>ERR_MANIFEST_TDZ</code></a></li> 9221cb0ef41Sopenharmony_ci<li><a href="#err_manifest_unknown_onerror"><code>ERR_MANIFEST_UNKNOWN_ONERROR</code></a></li> 9231cb0ef41Sopenharmony_ci<li><a href="#err_memory_allocation_failed"><code>ERR_MEMORY_ALLOCATION_FAILED</code></a></li> 9241cb0ef41Sopenharmony_ci<li><a href="#err_message_target_context_unavailable"><code>ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE</code></a></li> 9251cb0ef41Sopenharmony_ci<li><a href="#err_method_not_implemented"><code>ERR_METHOD_NOT_IMPLEMENTED</code></a></li> 9261cb0ef41Sopenharmony_ci<li><a href="#err_missing_args"><code>ERR_MISSING_ARGS</code></a></li> 9271cb0ef41Sopenharmony_ci<li><a href="#err_missing_option"><code>ERR_MISSING_OPTION</code></a></li> 9281cb0ef41Sopenharmony_ci<li><a href="#err_missing_passphrase"><code>ERR_MISSING_PASSPHRASE</code></a></li> 9291cb0ef41Sopenharmony_ci<li><a href="#err_missing_platform_for_worker"><code>ERR_MISSING_PLATFORM_FOR_WORKER</code></a></li> 9301cb0ef41Sopenharmony_ci<li><a href="#err_missing_transferable_in_transfer_list"><code>ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST</code></a></li> 9311cb0ef41Sopenharmony_ci<li><a href="#err_module_not_found"><code>ERR_MODULE_NOT_FOUND</code></a></li> 9321cb0ef41Sopenharmony_ci<li><a href="#err_multiple_callback"><code>ERR_MULTIPLE_CALLBACK</code></a></li> 9331cb0ef41Sopenharmony_ci<li><a href="#err_napi_cons_function"><code>ERR_NAPI_CONS_FUNCTION</code></a></li> 9341cb0ef41Sopenharmony_ci<li><a href="#err_napi_invalid_dataview_args"><code>ERR_NAPI_INVALID_DATAVIEW_ARGS</code></a></li> 9351cb0ef41Sopenharmony_ci<li><a href="#err_napi_invalid_typedarray_alignment"><code>ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT</code></a></li> 9361cb0ef41Sopenharmony_ci<li><a href="#err_napi_invalid_typedarray_length"><code>ERR_NAPI_INVALID_TYPEDARRAY_LENGTH</code></a></li> 9371cb0ef41Sopenharmony_ci<li><a href="#err_napi_tsfn_call_js"><code>ERR_NAPI_TSFN_CALL_JS</code></a></li> 9381cb0ef41Sopenharmony_ci<li><a href="#err_napi_tsfn_get_undefined"><code>ERR_NAPI_TSFN_GET_UNDEFINED</code></a></li> 9391cb0ef41Sopenharmony_ci<li><a href="#err_napi_tsfn_start_idle_loop"><code>ERR_NAPI_TSFN_START_IDLE_LOOP</code></a></li> 9401cb0ef41Sopenharmony_ci<li><a href="#err_napi_tsfn_stop_idle_loop"><code>ERR_NAPI_TSFN_STOP_IDLE_LOOP</code></a></li> 9411cb0ef41Sopenharmony_ci<li><a href="#err_not_building_snapshot"><code>ERR_NOT_BUILDING_SNAPSHOT</code></a></li> 9421cb0ef41Sopenharmony_ci<li><a href="#err_no_crypto"><code>ERR_NO_CRYPTO</code></a></li> 9431cb0ef41Sopenharmony_ci<li><a href="#err_no_icu"><code>ERR_NO_ICU</code></a></li> 9441cb0ef41Sopenharmony_ci<li><a href="#err_non_context_aware_disabled"><code>ERR_NON_CONTEXT_AWARE_DISABLED</code></a></li> 9451cb0ef41Sopenharmony_ci<li><a href="#err_out_of_range"><code>ERR_OUT_OF_RANGE</code></a></li> 9461cb0ef41Sopenharmony_ci<li><a href="#err_package_import_not_defined"><code>ERR_PACKAGE_IMPORT_NOT_DEFINED</code></a></li> 9471cb0ef41Sopenharmony_ci<li><a href="#err_package_path_not_exported"><code>ERR_PACKAGE_PATH_NOT_EXPORTED</code></a></li> 9481cb0ef41Sopenharmony_ci<li><a href="#err_parse_args_invalid_option_value"><code>ERR_PARSE_ARGS_INVALID_OPTION_VALUE</code></a></li> 9491cb0ef41Sopenharmony_ci<li><a href="#err_parse_args_unexpected_positional"><code>ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL</code></a></li> 9501cb0ef41Sopenharmony_ci<li><a href="#err_parse_args_unknown_option"><code>ERR_PARSE_ARGS_UNKNOWN_OPTION</code></a></li> 9511cb0ef41Sopenharmony_ci<li><a href="#err_performance_invalid_timestamp"><code>ERR_PERFORMANCE_INVALID_TIMESTAMP</code></a></li> 9521cb0ef41Sopenharmony_ci<li><a href="#err_performance_measure_invalid_options"><code>ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS</code></a></li> 9531cb0ef41Sopenharmony_ci<li><a href="#err_proto_access"><code>ERR_PROTO_ACCESS</code></a></li> 9541cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_require_esm"><code>ERR_REQUIRE_ESM</code></a></span></li> 9551cb0ef41Sopenharmony_ci<li><a href="#err_script_execution_interrupted"><code>ERR_SCRIPT_EXECUTION_INTERRUPTED</code></a></li> 9561cb0ef41Sopenharmony_ci<li><a href="#err_script_execution_timeout"><code>ERR_SCRIPT_EXECUTION_TIMEOUT</code></a></li> 9571cb0ef41Sopenharmony_ci<li><a href="#err_server_already_listen"><code>ERR_SERVER_ALREADY_LISTEN</code></a></li> 9581cb0ef41Sopenharmony_ci<li><a href="#err_server_not_running"><code>ERR_SERVER_NOT_RUNNING</code></a></li> 9591cb0ef41Sopenharmony_ci<li><a href="#err_socket_already_bound"><code>ERR_SOCKET_ALREADY_BOUND</code></a></li> 9601cb0ef41Sopenharmony_ci<li><a href="#err_socket_bad_buffer_size"><code>ERR_SOCKET_BAD_BUFFER_SIZE</code></a></li> 9611cb0ef41Sopenharmony_ci<li><a href="#err_socket_bad_port"><code>ERR_SOCKET_BAD_PORT</code></a></li> 9621cb0ef41Sopenharmony_ci<li><a href="#err_socket_bad_type"><code>ERR_SOCKET_BAD_TYPE</code></a></li> 9631cb0ef41Sopenharmony_ci<li><a href="#err_socket_buffer_size"><code>ERR_SOCKET_BUFFER_SIZE</code></a></li> 9641cb0ef41Sopenharmony_ci<li><a href="#err_socket_closed"><code>ERR_SOCKET_CLOSED</code></a></li> 9651cb0ef41Sopenharmony_ci<li><a href="#err_socket_closed_before_connection"><code>ERR_SOCKET_CLOSED_BEFORE_CONNECTION</code></a></li> 9661cb0ef41Sopenharmony_ci<li><a href="#err_socket_dgram_is_connected"><code>ERR_SOCKET_DGRAM_IS_CONNECTED</code></a></li> 9671cb0ef41Sopenharmony_ci<li><a href="#err_socket_dgram_not_connected"><code>ERR_SOCKET_DGRAM_NOT_CONNECTED</code></a></li> 9681cb0ef41Sopenharmony_ci<li><a href="#err_socket_dgram_not_running"><code>ERR_SOCKET_DGRAM_NOT_RUNNING</code></a></li> 9691cb0ef41Sopenharmony_ci<li><a href="#err_sri_parse"><code>ERR_SRI_PARSE</code></a></li> 9701cb0ef41Sopenharmony_ci<li><a href="#err_stream_already_finished"><code>ERR_STREAM_ALREADY_FINISHED</code></a></li> 9711cb0ef41Sopenharmony_ci<li><a href="#err_stream_cannot_pipe"><code>ERR_STREAM_CANNOT_PIPE</code></a></li> 9721cb0ef41Sopenharmony_ci<li><a href="#err_stream_destroyed"><code>ERR_STREAM_DESTROYED</code></a></li> 9731cb0ef41Sopenharmony_ci<li><a href="#err_stream_null_values"><code>ERR_STREAM_NULL_VALUES</code></a></li> 9741cb0ef41Sopenharmony_ci<li><a href="#err_stream_premature_close"><code>ERR_STREAM_PREMATURE_CLOSE</code></a></li> 9751cb0ef41Sopenharmony_ci<li><a href="#err_stream_push_after_eof"><code>ERR_STREAM_PUSH_AFTER_EOF</code></a></li> 9761cb0ef41Sopenharmony_ci<li><a href="#err_stream_unshift_after_end_event"><code>ERR_STREAM_UNSHIFT_AFTER_END_EVENT</code></a></li> 9771cb0ef41Sopenharmony_ci<li><a href="#err_stream_wrap"><code>ERR_STREAM_WRAP</code></a></li> 9781cb0ef41Sopenharmony_ci<li><a href="#err_stream_write_after_end"><code>ERR_STREAM_WRITE_AFTER_END</code></a></li> 9791cb0ef41Sopenharmony_ci<li><a href="#err_string_too_long"><code>ERR_STRING_TOO_LONG</code></a></li> 9801cb0ef41Sopenharmony_ci<li><a href="#err_synthetic"><code>ERR_SYNTHETIC</code></a></li> 9811cb0ef41Sopenharmony_ci<li><a href="#err_system_error"><code>ERR_SYSTEM_ERROR</code></a></li> 9821cb0ef41Sopenharmony_ci<li><a href="#err_tap_lexer_error"><code>ERR_TAP_LEXER_ERROR</code></a></li> 9831cb0ef41Sopenharmony_ci<li><a href="#err_tap_parser_error"><code>ERR_TAP_PARSER_ERROR</code></a></li> 9841cb0ef41Sopenharmony_ci<li><a href="#err_tap_validation_error"><code>ERR_TAP_VALIDATION_ERROR</code></a></li> 9851cb0ef41Sopenharmony_ci<li><a href="#err_test_failure"><code>ERR_TEST_FAILURE</code></a></li> 9861cb0ef41Sopenharmony_ci<li><a href="#err_tls_alpn_callback_invalid_result"><code>ERR_TLS_ALPN_CALLBACK_INVALID_RESULT</code></a></li> 9871cb0ef41Sopenharmony_ci<li><a href="#err_tls_alpn_callback_with_protocols"><code>ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS</code></a></li> 9881cb0ef41Sopenharmony_ci<li><a href="#err_tls_cert_altname_format"><code>ERR_TLS_CERT_ALTNAME_FORMAT</code></a></li> 9891cb0ef41Sopenharmony_ci<li><a href="#err_tls_cert_altname_invalid"><code>ERR_TLS_CERT_ALTNAME_INVALID</code></a></li> 9901cb0ef41Sopenharmony_ci<li><a href="#err_tls_dh_param_size"><code>ERR_TLS_DH_PARAM_SIZE</code></a></li> 9911cb0ef41Sopenharmony_ci<li><a href="#err_tls_handshake_timeout"><code>ERR_TLS_HANDSHAKE_TIMEOUT</code></a></li> 9921cb0ef41Sopenharmony_ci<li><a href="#err_tls_invalid_context"><code>ERR_TLS_INVALID_CONTEXT</code></a></li> 9931cb0ef41Sopenharmony_ci<li><a href="#err_tls_invalid_protocol_method"><code>ERR_TLS_INVALID_PROTOCOL_METHOD</code></a></li> 9941cb0ef41Sopenharmony_ci<li><a href="#err_tls_invalid_protocol_version"><code>ERR_TLS_INVALID_PROTOCOL_VERSION</code></a></li> 9951cb0ef41Sopenharmony_ci<li><a href="#err_tls_invalid_state"><code>ERR_TLS_INVALID_STATE</code></a></li> 9961cb0ef41Sopenharmony_ci<li><a href="#err_tls_protocol_version_conflict"><code>ERR_TLS_PROTOCOL_VERSION_CONFLICT</code></a></li> 9971cb0ef41Sopenharmony_ci<li><a href="#err_tls_psk_set_identiy_hint_failed"><code>ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED</code></a></li> 9981cb0ef41Sopenharmony_ci<li><a href="#err_tls_renegotiation_disabled"><code>ERR_TLS_RENEGOTIATION_DISABLED</code></a></li> 9991cb0ef41Sopenharmony_ci<li><a href="#err_tls_required_server_name"><code>ERR_TLS_REQUIRED_SERVER_NAME</code></a></li> 10001cb0ef41Sopenharmony_ci<li><a href="#err_tls_session_attack"><code>ERR_TLS_SESSION_ATTACK</code></a></li> 10011cb0ef41Sopenharmony_ci<li><a href="#err_tls_sni_from_server"><code>ERR_TLS_SNI_FROM_SERVER</code></a></li> 10021cb0ef41Sopenharmony_ci<li><a href="#err_trace_events_category_required"><code>ERR_TRACE_EVENTS_CATEGORY_REQUIRED</code></a></li> 10031cb0ef41Sopenharmony_ci<li><a href="#err_trace_events_unavailable"><code>ERR_TRACE_EVENTS_UNAVAILABLE</code></a></li> 10041cb0ef41Sopenharmony_ci<li><a href="#err_transform_already_transforming"><code>ERR_TRANSFORM_ALREADY_TRANSFORMING</code></a></li> 10051cb0ef41Sopenharmony_ci<li><a href="#err_transform_with_length_0"><code>ERR_TRANSFORM_WITH_LENGTH_0</code></a></li> 10061cb0ef41Sopenharmony_ci<li><a href="#err_tty_init_failed"><code>ERR_TTY_INIT_FAILED</code></a></li> 10071cb0ef41Sopenharmony_ci<li><a href="#err_unavailable_during_exit"><code>ERR_UNAVAILABLE_DURING_EXIT</code></a></li> 10081cb0ef41Sopenharmony_ci<li><a href="#err_uncaught_exception_capture_already_set"><code>ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET</code></a></li> 10091cb0ef41Sopenharmony_ci<li><a href="#err_unescaped_characters"><code>ERR_UNESCAPED_CHARACTERS</code></a></li> 10101cb0ef41Sopenharmony_ci<li><a href="#err_unhandled_error"><code>ERR_UNHANDLED_ERROR</code></a></li> 10111cb0ef41Sopenharmony_ci<li><a href="#err_unknown_builtin_module"><code>ERR_UNKNOWN_BUILTIN_MODULE</code></a></li> 10121cb0ef41Sopenharmony_ci<li><a href="#err_unknown_credential"><code>ERR_UNKNOWN_CREDENTIAL</code></a></li> 10131cb0ef41Sopenharmony_ci<li><a href="#err_unknown_encoding"><code>ERR_UNKNOWN_ENCODING</code></a></li> 10141cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_unknown_file_extension"><code>ERR_UNKNOWN_FILE_EXTENSION</code></a></span></li> 10151cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_unknown_module_format"><code>ERR_UNKNOWN_MODULE_FORMAT</code></a></span></li> 10161cb0ef41Sopenharmony_ci<li><a href="#err_unknown_signal"><code>ERR_UNKNOWN_SIGNAL</code></a></li> 10171cb0ef41Sopenharmony_ci<li><a href="#err_unsupported_dir_import"><code>ERR_UNSUPPORTED_DIR_IMPORT</code></a></li> 10181cb0ef41Sopenharmony_ci<li><a href="#err_unsupported_esm_url_scheme"><code>ERR_UNSUPPORTED_ESM_URL_SCHEME</code></a></li> 10191cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_use_after_close"><code>ERR_USE_AFTER_CLOSE</code></a></span></li> 10201cb0ef41Sopenharmony_ci<li><a href="#err_valid_performance_entry_type"><code>ERR_VALID_PERFORMANCE_ENTRY_TYPE</code></a></li> 10211cb0ef41Sopenharmony_ci<li><a href="#err_vm_dynamic_import_callback_missing_flag"><code>ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG</code></a></li> 10221cb0ef41Sopenharmony_ci<li><a href="#err_vm_dynamic_import_callback_missing"><code>ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING</code></a></li> 10231cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_already_linked"><code>ERR_VM_MODULE_ALREADY_LINKED</code></a></li> 10241cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_cached_data_rejected"><code>ERR_VM_MODULE_CACHED_DATA_REJECTED</code></a></li> 10251cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_cannot_create_cached_data"><code>ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA</code></a></li> 10261cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_different_context"><code>ERR_VM_MODULE_DIFFERENT_CONTEXT</code></a></li> 10271cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_link_failure"><code>ERR_VM_MODULE_LINK_FAILURE</code></a></li> 10281cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_not_module"><code>ERR_VM_MODULE_NOT_MODULE</code></a></li> 10291cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_status"><code>ERR_VM_MODULE_STATUS</code></a></li> 10301cb0ef41Sopenharmony_ci<li><a href="#err_wasi_already_started"><code>ERR_WASI_ALREADY_STARTED</code></a></li> 10311cb0ef41Sopenharmony_ci<li><a href="#err_wasi_not_started"><code>ERR_WASI_NOT_STARTED</code></a></li> 10321cb0ef41Sopenharmony_ci<li><a href="#err_webassembly_response"><code>ERR_WEBASSEMBLY_RESPONSE</code></a></li> 10331cb0ef41Sopenharmony_ci<li><a href="#err_worker_init_failed"><code>ERR_WORKER_INIT_FAILED</code></a></li> 10341cb0ef41Sopenharmony_ci<li><a href="#err_worker_invalid_exec_argv"><code>ERR_WORKER_INVALID_EXEC_ARGV</code></a></li> 10351cb0ef41Sopenharmony_ci<li><a href="#err_worker_not_running"><code>ERR_WORKER_NOT_RUNNING</code></a></li> 10361cb0ef41Sopenharmony_ci<li><a href="#err_worker_out_of_memory"><code>ERR_WORKER_OUT_OF_MEMORY</code></a></li> 10371cb0ef41Sopenharmony_ci<li><a href="#err_worker_path"><code>ERR_WORKER_PATH</code></a></li> 10381cb0ef41Sopenharmony_ci<li><a href="#err_worker_unserializable_error"><code>ERR_WORKER_UNSERIALIZABLE_ERROR</code></a></li> 10391cb0ef41Sopenharmony_ci<li><a href="#err_worker_unsupported_operation"><code>ERR_WORKER_UNSUPPORTED_OPERATION</code></a></li> 10401cb0ef41Sopenharmony_ci<li><a href="#err_zlib_initialization_failed"><code>ERR_ZLIB_INITIALIZATION_FAILED</code></a></li> 10411cb0ef41Sopenharmony_ci<li><a href="#hpe_header_overflow"><code>HPE_HEADER_OVERFLOW</code></a></li> 10421cb0ef41Sopenharmony_ci<li><a href="#hpe_chunk_extensions_overflow"><code>HPE_CHUNK_EXTENSIONS_OVERFLOW</code></a></li> 10431cb0ef41Sopenharmony_ci<li><a href="#hpe_unexpected_content_length"><code>HPE_UNEXPECTED_CONTENT_LENGTH</code></a></li> 10441cb0ef41Sopenharmony_ci<li><a href="#module_not_found"><code>MODULE_NOT_FOUND</code></a></li> 10451cb0ef41Sopenharmony_ci</ul> 10461cb0ef41Sopenharmony_ci</li> 10471cb0ef41Sopenharmony_ci<li><span class="stability_0"><a href="#legacy-nodejs-error-codes">Legacy Node.js error codes</a></span> 10481cb0ef41Sopenharmony_ci<ul> 10491cb0ef41Sopenharmony_ci<li><a href="#err_cannot_transfer_object"><code>ERR_CANNOT_TRANSFER_OBJECT</code></a></li> 10501cb0ef41Sopenharmony_ci<li><a href="#err_crypto_hash_digest_no_utf16"><code>ERR_CRYPTO_HASH_DIGEST_NO_UTF16</code></a></li> 10511cb0ef41Sopenharmony_ci<li><a href="#err_http2_frame_error"><code>ERR_HTTP2_FRAME_ERROR</code></a></li> 10521cb0ef41Sopenharmony_ci<li><a href="#err_http2_headers_object"><code>ERR_HTTP2_HEADERS_OBJECT</code></a></li> 10531cb0ef41Sopenharmony_ci<li><a href="#err_http2_header_required"><code>ERR_HTTP2_HEADER_REQUIRED</code></a></li> 10541cb0ef41Sopenharmony_ci<li><a href="#err_http2_info_headers_after_respond"><code>ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND</code></a></li> 10551cb0ef41Sopenharmony_ci<li><a href="#err_http2_stream_closed"><code>ERR_HTTP2_STREAM_CLOSED</code></a></li> 10561cb0ef41Sopenharmony_ci<li><a href="#err_http_invalid_char"><code>ERR_HTTP_INVALID_CHAR</code></a></li> 10571cb0ef41Sopenharmony_ci<li><a href="#err_index_out_of_range"><code>ERR_INDEX_OUT_OF_RANGE</code></a></li> 10581cb0ef41Sopenharmony_ci<li><a href="#err_invalid_opt_value"><code>ERR_INVALID_OPT_VALUE</code></a></li> 10591cb0ef41Sopenharmony_ci<li><a href="#err_invalid_opt_value_encoding"><code>ERR_INVALID_OPT_VALUE_ENCODING</code></a></li> 10601cb0ef41Sopenharmony_ci<li><a href="#err_missing_message_port_in_transfer_list"><code>ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST</code></a></li> 10611cb0ef41Sopenharmony_ci<li><a href="#err_napi_cons_prototype_object"><code>ERR_NAPI_CONS_PROTOTYPE_OBJECT</code></a></li> 10621cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_network_import_bad_response"><code>ERR_NETWORK_IMPORT_BAD_RESPONSE</code></a></span></li> 10631cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#err_network_import_disallowed"><code>ERR_NETWORK_IMPORT_DISALLOWED</code></a></span></li> 10641cb0ef41Sopenharmony_ci<li><a href="#err_no_longer_supported"><code>ERR_NO_LONGER_SUPPORTED</code></a></li> 10651cb0ef41Sopenharmony_ci<li><a href="#err_operation_failed"><code>ERR_OPERATION_FAILED</code></a></li> 10661cb0ef41Sopenharmony_ci<li><a href="#err_outofmemory"><code>ERR_OUTOFMEMORY</code></a></li> 10671cb0ef41Sopenharmony_ci<li><a href="#err_parse_history_data"><code>ERR_PARSE_HISTORY_DATA</code></a></li> 10681cb0ef41Sopenharmony_ci<li><a href="#err_socket_cannot_send"><code>ERR_SOCKET_CANNOT_SEND</code></a></li> 10691cb0ef41Sopenharmony_ci<li><a href="#err_stderr_close"><code>ERR_STDERR_CLOSE</code></a></li> 10701cb0ef41Sopenharmony_ci<li><a href="#err_stdout_close"><code>ERR_STDOUT_CLOSE</code></a></li> 10711cb0ef41Sopenharmony_ci<li><a href="#err_stream_read_not_implemented"><code>ERR_STREAM_READ_NOT_IMPLEMENTED</code></a></li> 10721cb0ef41Sopenharmony_ci<li><a href="#err_tls_renegotiation_failed"><code>ERR_TLS_RENEGOTIATION_FAILED</code></a></li> 10731cb0ef41Sopenharmony_ci<li><a href="#err_transferring_externalized_sharedarraybuffer"><code>ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER</code></a></li> 10741cb0ef41Sopenharmony_ci<li><a href="#err_unknown_stdin_type"><code>ERR_UNKNOWN_STDIN_TYPE</code></a></li> 10751cb0ef41Sopenharmony_ci<li><a href="#err_unknown_stream_type"><code>ERR_UNKNOWN_STREAM_TYPE</code></a></li> 10761cb0ef41Sopenharmony_ci<li><a href="#err_v8breakiterator"><code>ERR_V8BREAKITERATOR</code></a></li> 10771cb0ef41Sopenharmony_ci<li><a href="#err_value_out_of_range"><code>ERR_VALUE_OUT_OF_RANGE</code></a></li> 10781cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_not_linked"><code>ERR_VM_MODULE_NOT_LINKED</code></a></li> 10791cb0ef41Sopenharmony_ci<li><a href="#err_vm_module_linking_errored"><code>ERR_VM_MODULE_LINKING_ERRORED</code></a></li> 10801cb0ef41Sopenharmony_ci<li><a href="#err_worker_unsupported_extension"><code>ERR_WORKER_UNSUPPORTED_EXTENSION</code></a></li> 10811cb0ef41Sopenharmony_ci<li><a href="#err_zlib_binding_closed"><code>ERR_ZLIB_BINDING_CLOSED</code></a></li> 10821cb0ef41Sopenharmony_ci<li><a href="#err_cpu_usage"><code>ERR_CPU_USAGE</code></a></li> 10831cb0ef41Sopenharmony_ci</ul> 10841cb0ef41Sopenharmony_ci</li> 10851cb0ef41Sopenharmony_ci</ul> 10861cb0ef41Sopenharmony_ci</li> 10871cb0ef41Sopenharmony_ci</ul></details> 10881cb0ef41Sopenharmony_ci 10891cb0ef41Sopenharmony_ci <div id="apicontent"> 10901cb0ef41Sopenharmony_ci <h2>Errors<span><a class="mark" href="#errors" id="errors">#</a></span><a aria-hidden="true" class="legacy" id="errors_errors"></a></h2> 10911cb0ef41Sopenharmony_ci 10921cb0ef41Sopenharmony_ci 10931cb0ef41Sopenharmony_ci<p>Applications running in Node.js will generally experience four categories of 10941cb0ef41Sopenharmony_cierrors:</p> 10951cb0ef41Sopenharmony_ci<ul> 10961cb0ef41Sopenharmony_ci<li>Standard JavaScript errors such as <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError" class="type"><EvalError></a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError" class="type"><SyntaxError></a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError" class="type"><RangeError></a>, 10971cb0ef41Sopenharmony_ci<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError" class="type"><ReferenceError></a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError" class="type"><TypeError></a>, and <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError" class="type"><URIError></a>.</li> 10981cb0ef41Sopenharmony_ci<li>System errors triggered by underlying operating system constraints such 10991cb0ef41Sopenharmony_cias attempting to open a file that does not exist or attempting to send data 11001cb0ef41Sopenharmony_ciover a closed socket.</li> 11011cb0ef41Sopenharmony_ci<li>User-specified errors triggered by application code.</li> 11021cb0ef41Sopenharmony_ci<li><code>AssertionError</code>s are a special class of error that can be triggered when 11031cb0ef41Sopenharmony_ciNode.js detects an exceptional logic violation that should never occur. These 11041cb0ef41Sopenharmony_ciare raised typically by the <code>node:assert</code> module.</li> 11051cb0ef41Sopenharmony_ci</ul> 11061cb0ef41Sopenharmony_ci<p>All JavaScript and system errors raised by Node.js inherit from, or are 11071cb0ef41Sopenharmony_ciinstances of, the standard JavaScript <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error" class="type"><Error></a> class and are guaranteed 11081cb0ef41Sopenharmony_cito provide <em>at least</em> the properties available on that class.</p> 11091cb0ef41Sopenharmony_ci<section><h3>Error propagation and interception<span><a class="mark" href="#error-propagation-and-interception" id="error-propagation-and-interception">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_propagation_and_interception"></a></h3> 11101cb0ef41Sopenharmony_ci 11111cb0ef41Sopenharmony_ci<p>Node.js supports several mechanisms for propagating and handling errors that 11121cb0ef41Sopenharmony_cioccur while an application is running. How these errors are reported and 11131cb0ef41Sopenharmony_cihandled depends entirely on the type of <code>Error</code> and the style of the API that is 11141cb0ef41Sopenharmony_cicalled.</p> 11151cb0ef41Sopenharmony_ci<p>All JavaScript errors are handled as exceptions that <em>immediately</em> generate 11161cb0ef41Sopenharmony_ciand throw an error using the standard JavaScript <code>throw</code> mechanism. These 11171cb0ef41Sopenharmony_ciare handled using the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch"><code>try…catch</code> construct</a> provided by the 11181cb0ef41Sopenharmony_ciJavaScript language.</p> 11191cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-comment">// Throws with a ReferenceError because z is not defined.</span> 11201cb0ef41Sopenharmony_ci<span class="hljs-keyword">try</span> { 11211cb0ef41Sopenharmony_ci <span class="hljs-keyword">const</span> m = <span class="hljs-number">1</span>; 11221cb0ef41Sopenharmony_ci <span class="hljs-keyword">const</span> n = m + z; 11231cb0ef41Sopenharmony_ci} <span class="hljs-keyword">catch</span> (err) { 11241cb0ef41Sopenharmony_ci <span class="hljs-comment">// Handle the error here.</span> 11251cb0ef41Sopenharmony_ci}</code> <button class="copy-button">copy</button></pre> 11261cb0ef41Sopenharmony_ci<p>Any use of the JavaScript <code>throw</code> mechanism will raise an exception that 11271cb0ef41Sopenharmony_ci<em>must</em> be handled or the Node.js process will exit immediately.</p> 11281cb0ef41Sopenharmony_ci<p>With few exceptions, <em>Synchronous</em> APIs (any blocking method that does not 11291cb0ef41Sopenharmony_cireturn a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="type"><Promise></a> nor accept a <code>callback</code> function, such as 11301cb0ef41Sopenharmony_ci<a href="fs.html#fsreadfilesyncpath-options"><code>fs.readFileSync</code></a>), will use <code>throw</code> to report errors.</p> 11311cb0ef41Sopenharmony_ci<p>Errors that occur within <em>Asynchronous APIs</em> may be reported in multiple ways:</p> 11321cb0ef41Sopenharmony_ci<ul> 11331cb0ef41Sopenharmony_ci<li> 11341cb0ef41Sopenharmony_ci<p>Some asynchronous methods returns a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="type"><Promise></a>, you should always take into 11351cb0ef41Sopenharmony_ciaccount that it might be rejected. See <a href="cli.html#--unhandled-rejectionsmode"><code>--unhandled-rejections</code></a> flag for 11361cb0ef41Sopenharmony_cihow the process will react to an unhandled promise rejection.</p> 11371cb0ef41Sopenharmony_ci<!-- eslint-disable no-useless-return --> 11381cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> fs = <span class="hljs-built_in">require</span>(<span class="hljs-string">'fs/promises'</span>); 11391cb0ef41Sopenharmony_ci 11401cb0ef41Sopenharmony_ci(<span class="hljs-keyword">async</span> () => { 11411cb0ef41Sopenharmony_ci <span class="hljs-keyword">let</span> data; 11421cb0ef41Sopenharmony_ci <span class="hljs-keyword">try</span> { 11431cb0ef41Sopenharmony_ci data = <span class="hljs-keyword">await</span> fs.<span class="hljs-title function_">readFile</span>(<span class="hljs-string">'a file that does not exist'</span>); 11441cb0ef41Sopenharmony_ci } <span class="hljs-keyword">catch</span> (err) { 11451cb0ef41Sopenharmony_ci <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">error</span>(<span class="hljs-string">'There was an error reading the file!'</span>, err); 11461cb0ef41Sopenharmony_ci <span class="hljs-keyword">return</span>; 11471cb0ef41Sopenharmony_ci } 11481cb0ef41Sopenharmony_ci <span class="hljs-comment">// Otherwise handle the data</span> 11491cb0ef41Sopenharmony_ci})();</code> <button class="copy-button">copy</button></pre> 11501cb0ef41Sopenharmony_ci</li> 11511cb0ef41Sopenharmony_ci<li> 11521cb0ef41Sopenharmony_ci<p>Most asynchronous methods that accept a <code>callback</code> function will accept an 11531cb0ef41Sopenharmony_ci<code>Error</code> object passed as the first argument to that function. If that first 11541cb0ef41Sopenharmony_ciargument is not <code>null</code> and is an instance of <code>Error</code>, then an error occurred 11551cb0ef41Sopenharmony_cithat should be handled.</p> 11561cb0ef41Sopenharmony_ci<!-- eslint-disable no-useless-return --> 11571cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> fs = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node:fs'</span>); 11581cb0ef41Sopenharmony_cifs.<span class="hljs-title function_">readFile</span>(<span class="hljs-string">'a file that does not exist'</span>, <span class="hljs-function">(<span class="hljs-params">err, data</span>) =></span> { 11591cb0ef41Sopenharmony_ci <span class="hljs-keyword">if</span> (err) { 11601cb0ef41Sopenharmony_ci <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">error</span>(<span class="hljs-string">'There was an error reading the file!'</span>, err); 11611cb0ef41Sopenharmony_ci <span class="hljs-keyword">return</span>; 11621cb0ef41Sopenharmony_ci } 11631cb0ef41Sopenharmony_ci <span class="hljs-comment">// Otherwise handle the data</span> 11641cb0ef41Sopenharmony_ci});</code> <button class="copy-button">copy</button></pre> 11651cb0ef41Sopenharmony_ci</li> 11661cb0ef41Sopenharmony_ci<li> 11671cb0ef41Sopenharmony_ci<p>When an asynchronous method is called on an object that is an 11681cb0ef41Sopenharmony_ci<a href="events.html#class-eventemitter"><code>EventEmitter</code></a>, errors can be routed to that object's <code>'error'</code> event.</p> 11691cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> net = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node:net'</span>); 11701cb0ef41Sopenharmony_ci<span class="hljs-keyword">const</span> connection = net.<span class="hljs-title function_">connect</span>(<span class="hljs-string">'localhost'</span>); 11711cb0ef41Sopenharmony_ci 11721cb0ef41Sopenharmony_ci<span class="hljs-comment">// Adding an 'error' event handler to a stream:</span> 11731cb0ef41Sopenharmony_ciconnection.<span class="hljs-title function_">on</span>(<span class="hljs-string">'error'</span>, <span class="hljs-function">(<span class="hljs-params">err</span>) =></span> { 11741cb0ef41Sopenharmony_ci <span class="hljs-comment">// If the connection is reset by the server, or if it can't</span> 11751cb0ef41Sopenharmony_ci <span class="hljs-comment">// connect at all, or on any sort of error encountered by</span> 11761cb0ef41Sopenharmony_ci <span class="hljs-comment">// the connection, the error will be sent here.</span> 11771cb0ef41Sopenharmony_ci <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">error</span>(err); 11781cb0ef41Sopenharmony_ci}); 11791cb0ef41Sopenharmony_ci 11801cb0ef41Sopenharmony_ciconnection.<span class="hljs-title function_">pipe</span>(process.<span class="hljs-property">stdout</span>);</code> <button class="copy-button">copy</button></pre> 11811cb0ef41Sopenharmony_ci</li> 11821cb0ef41Sopenharmony_ci<li> 11831cb0ef41Sopenharmony_ci<p>A handful of typically asynchronous methods in the Node.js API may still 11841cb0ef41Sopenharmony_ciuse the <code>throw</code> mechanism to raise exceptions that must be handled using 11851cb0ef41Sopenharmony_ci<code>try…catch</code>. There is no comprehensive list of such methods; please 11861cb0ef41Sopenharmony_cirefer to the documentation of each method to determine the appropriate 11871cb0ef41Sopenharmony_cierror handling mechanism required.</p> 11881cb0ef41Sopenharmony_ci</li> 11891cb0ef41Sopenharmony_ci</ul> 11901cb0ef41Sopenharmony_ci<p>The use of the <code>'error'</code> event mechanism is most common for <a href="stream.html">stream-based</a> 11911cb0ef41Sopenharmony_ciand <a href="events.html#class-eventemitter">event emitter-based</a> APIs, which themselves represent a series of 11921cb0ef41Sopenharmony_ciasynchronous operations over time (as opposed to a single operation that may 11931cb0ef41Sopenharmony_cipass or fail).</p> 11941cb0ef41Sopenharmony_ci<p>For <em>all</em> <a href="events.html#class-eventemitter"><code>EventEmitter</code></a> objects, if an <code>'error'</code> event handler is not 11951cb0ef41Sopenharmony_ciprovided, the error will be thrown, causing the Node.js process to report an 11961cb0ef41Sopenharmony_ciuncaught exception and crash unless either: a handler has been registered for 11971cb0ef41Sopenharmony_cithe <a href="process.html#event-uncaughtexception"><code>'uncaughtException'</code></a> event, or the deprecated <a href="domain.html"><code>node:domain</code></a> 11981cb0ef41Sopenharmony_cimodule is used.</p> 11991cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> <span class="hljs-title class_">EventEmitter</span> = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node:events'</span>); 12001cb0ef41Sopenharmony_ci<span class="hljs-keyword">const</span> ee = <span class="hljs-keyword">new</span> <span class="hljs-title class_">EventEmitter</span>(); 12011cb0ef41Sopenharmony_ci 12021cb0ef41Sopenharmony_ci<span class="hljs-title function_">setImmediate</span>(<span class="hljs-function">() =></span> { 12031cb0ef41Sopenharmony_ci <span class="hljs-comment">// This will crash the process because no 'error' event</span> 12041cb0ef41Sopenharmony_ci <span class="hljs-comment">// handler has been added.</span> 12051cb0ef41Sopenharmony_ci ee.<span class="hljs-title function_">emit</span>(<span class="hljs-string">'error'</span>, <span class="hljs-keyword">new</span> <span class="hljs-title class_">Error</span>(<span class="hljs-string">'This will crash'</span>)); 12061cb0ef41Sopenharmony_ci});</code> <button class="copy-button">copy</button></pre> 12071cb0ef41Sopenharmony_ci<p>Errors generated in this way <em>cannot</em> be intercepted using <code>try…catch</code> as 12081cb0ef41Sopenharmony_cithey are thrown <em>after</em> the calling code has already exited.</p> 12091cb0ef41Sopenharmony_ci<p>Developers must refer to the documentation for each method to determine 12101cb0ef41Sopenharmony_ciexactly how errors raised by those methods are propagated.</p> 12111cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>Error</code><span><a class="mark" href="#class-error" id="class-error">#</a></span><a aria-hidden="true" class="legacy" id="errors_class_error"></a></h3> 12121cb0ef41Sopenharmony_ci 12131cb0ef41Sopenharmony_ci<p>A generic JavaScript <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error" class="type"><Error></a> object that does not denote any specific 12141cb0ef41Sopenharmony_cicircumstance of why the error occurred. <code>Error</code> objects capture a "stack trace" 12151cb0ef41Sopenharmony_cidetailing the point in the code at which the <code>Error</code> was instantiated, and may 12161cb0ef41Sopenharmony_ciprovide a text description of the error.</p> 12171cb0ef41Sopenharmony_ci<p>All errors generated by Node.js, including all system and JavaScript errors, 12181cb0ef41Sopenharmony_ciwill either be instances of, or inherit from, the <code>Error</code> class.</p> 12191cb0ef41Sopenharmony_ci<h4><code>new Error(message[, options])</code><span><a class="mark" href="#new-errormessage-options" id="new-errormessage-options">#</a></span><a aria-hidden="true" class="legacy" id="errors_new_error_message_options"></a></h4> 12201cb0ef41Sopenharmony_ci<ul> 12211cb0ef41Sopenharmony_ci<li><code>message</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 12221cb0ef41Sopenharmony_ci<li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type"><Object></a> 12231cb0ef41Sopenharmony_ci<ul> 12241cb0ef41Sopenharmony_ci<li><code>cause</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types" class="type"><any></a> The error that caused the newly created error.</li> 12251cb0ef41Sopenharmony_ci</ul> 12261cb0ef41Sopenharmony_ci</li> 12271cb0ef41Sopenharmony_ci</ul> 12281cb0ef41Sopenharmony_ci<p>Creates a new <code>Error</code> object and sets the <code>error.message</code> property to the 12291cb0ef41Sopenharmony_ciprovided text message. If an object is passed as <code>message</code>, the text message 12301cb0ef41Sopenharmony_ciis generated by calling <code>String(message)</code>. If the <code>cause</code> option is provided, 12311cb0ef41Sopenharmony_ciit is assigned to the <code>error.cause</code> property. The <code>error.stack</code> property will 12321cb0ef41Sopenharmony_cirepresent the point in the code at which <code>new Error()</code> was called. Stack traces 12331cb0ef41Sopenharmony_ciare dependent on <a href="https://v8.dev/docs/stack-trace-api">V8's stack trace API</a>. Stack traces extend only to either 12341cb0ef41Sopenharmony_ci(a) the beginning of <em>synchronous code execution</em>, or (b) the number of frames 12351cb0ef41Sopenharmony_cigiven by the property <code>Error.stackTraceLimit</code>, whichever is smaller.</p> 12361cb0ef41Sopenharmony_ci<h4><code>Error.captureStackTrace(targetObject[, constructorOpt])</code><span><a class="mark" href="#errorcapturestacktracetargetobject-constructoropt" id="errorcapturestacktracetargetobject-constructoropt">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_capturestacktrace_targetobject_constructoropt"></a></h4> 12371cb0ef41Sopenharmony_ci<ul> 12381cb0ef41Sopenharmony_ci<li><code>targetObject</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type"><Object></a></li> 12391cb0ef41Sopenharmony_ci<li><code>constructorOpt</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type"><Function></a></li> 12401cb0ef41Sopenharmony_ci</ul> 12411cb0ef41Sopenharmony_ci<p>Creates a <code>.stack</code> property on <code>targetObject</code>, which when accessed returns 12421cb0ef41Sopenharmony_cia string representing the location in the code at which 12431cb0ef41Sopenharmony_ci<code>Error.captureStackTrace()</code> was called.</p> 12441cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> myObject = {}; 12451cb0ef41Sopenharmony_ci<span class="hljs-title class_">Error</span>.<span class="hljs-title function_">captureStackTrace</span>(myObject); 12461cb0ef41Sopenharmony_cimyObject.<span class="hljs-property">stack</span>; <span class="hljs-comment">// Similar to `new Error().stack`</span></code> <button class="copy-button">copy</button></pre> 12471cb0ef41Sopenharmony_ci<p>The first line of the trace will be prefixed with 12481cb0ef41Sopenharmony_ci<code>${myObject.name}: ${myObject.message}</code>.</p> 12491cb0ef41Sopenharmony_ci<p>The optional <code>constructorOpt</code> argument accepts a function. If given, all frames 12501cb0ef41Sopenharmony_ciabove <code>constructorOpt</code>, including <code>constructorOpt</code>, will be omitted from the 12511cb0ef41Sopenharmony_cigenerated stack trace.</p> 12521cb0ef41Sopenharmony_ci<p>The <code>constructorOpt</code> argument is useful for hiding implementation 12531cb0ef41Sopenharmony_cidetails of error generation from the user. For instance:</p> 12541cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">function</span> <span class="hljs-title function_">a</span>(<span class="hljs-params"></span>) { 12551cb0ef41Sopenharmony_ci <span class="hljs-title function_">b</span>(); 12561cb0ef41Sopenharmony_ci} 12571cb0ef41Sopenharmony_ci 12581cb0ef41Sopenharmony_ci<span class="hljs-keyword">function</span> <span class="hljs-title function_">b</span>(<span class="hljs-params"></span>) { 12591cb0ef41Sopenharmony_ci <span class="hljs-title function_">c</span>(); 12601cb0ef41Sopenharmony_ci} 12611cb0ef41Sopenharmony_ci 12621cb0ef41Sopenharmony_ci<span class="hljs-keyword">function</span> <span class="hljs-title function_">c</span>(<span class="hljs-params"></span>) { 12631cb0ef41Sopenharmony_ci <span class="hljs-comment">// Create an error without stack trace to avoid calculating the stack trace twice.</span> 12641cb0ef41Sopenharmony_ci <span class="hljs-keyword">const</span> { stackTraceLimit } = <span class="hljs-title class_">Error</span>; 12651cb0ef41Sopenharmony_ci <span class="hljs-title class_">Error</span>.<span class="hljs-property">stackTraceLimit</span> = <span class="hljs-number">0</span>; 12661cb0ef41Sopenharmony_ci <span class="hljs-keyword">const</span> error = <span class="hljs-keyword">new</span> <span class="hljs-title class_">Error</span>(); 12671cb0ef41Sopenharmony_ci <span class="hljs-title class_">Error</span>.<span class="hljs-property">stackTraceLimit</span> = stackTraceLimit; 12681cb0ef41Sopenharmony_ci 12691cb0ef41Sopenharmony_ci <span class="hljs-comment">// Capture the stack trace above function b</span> 12701cb0ef41Sopenharmony_ci <span class="hljs-title class_">Error</span>.<span class="hljs-title function_">captureStackTrace</span>(error, b); <span class="hljs-comment">// Neither function c, nor b is included in the stack trace</span> 12711cb0ef41Sopenharmony_ci <span class="hljs-keyword">throw</span> error; 12721cb0ef41Sopenharmony_ci} 12731cb0ef41Sopenharmony_ci 12741cb0ef41Sopenharmony_ci<span class="hljs-title function_">a</span>();</code> <button class="copy-button">copy</button></pre> 12751cb0ef41Sopenharmony_ci<h4><code>Error.stackTraceLimit</code><span><a class="mark" href="#errorstacktracelimit" id="errorstacktracelimit">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_stacktracelimit"></a></h4> 12761cb0ef41Sopenharmony_ci<ul> 12771cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a></li> 12781cb0ef41Sopenharmony_ci</ul> 12791cb0ef41Sopenharmony_ci<p>The <code>Error.stackTraceLimit</code> property specifies the number of stack frames 12801cb0ef41Sopenharmony_cicollected by a stack trace (whether generated by <code>new Error().stack</code> or 12811cb0ef41Sopenharmony_ci<code>Error.captureStackTrace(obj)</code>).</p> 12821cb0ef41Sopenharmony_ci<p>The default value is <code>10</code> but may be set to any valid JavaScript number. Changes 12831cb0ef41Sopenharmony_ciwill affect any stack trace captured <em>after</em> the value has been changed.</p> 12841cb0ef41Sopenharmony_ci<p>If set to a non-number value, or set to a negative number, stack traces will 12851cb0ef41Sopenharmony_cinot capture any frames.</p> 12861cb0ef41Sopenharmony_ci<h4><code>error.cause</code><span><a class="mark" href="#errorcause" id="errorcause">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_cause"></a></h4> 12871cb0ef41Sopenharmony_ci<div class="api_metadata"> 12881cb0ef41Sopenharmony_ci<span>Added in: v16.9.0</span> 12891cb0ef41Sopenharmony_ci</div> 12901cb0ef41Sopenharmony_ci<ul> 12911cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types" class="type"><any></a></li> 12921cb0ef41Sopenharmony_ci</ul> 12931cb0ef41Sopenharmony_ci<p>If present, the <code>error.cause</code> property is the underlying cause of the <code>Error</code>. 12941cb0ef41Sopenharmony_ciIt is used when catching an error and throwing a new one with a different 12951cb0ef41Sopenharmony_cimessage or code in order to still have access to the original error.</p> 12961cb0ef41Sopenharmony_ci<p>The <code>error.cause</code> property is typically set by calling 12971cb0ef41Sopenharmony_ci<code>new Error(message, { cause })</code>. It is not set by the constructor if the 12981cb0ef41Sopenharmony_ci<code>cause</code> option is not provided.</p> 12991cb0ef41Sopenharmony_ci<p>This property allows errors to be chained. When serializing <code>Error</code> objects, 13001cb0ef41Sopenharmony_ci<a href="util.html#utilinspectobject-options"><code>util.inspect()</code></a> recursively serializes <code>error.cause</code> if it is set.</p> 13011cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> cause = <span class="hljs-keyword">new</span> <span class="hljs-title class_">Error</span>(<span class="hljs-string">'The remote HTTP server responded with a 500 status'</span>); 13021cb0ef41Sopenharmony_ci<span class="hljs-keyword">const</span> symptom = <span class="hljs-keyword">new</span> <span class="hljs-title class_">Error</span>(<span class="hljs-string">'The message failed to send'</span>, { cause }); 13031cb0ef41Sopenharmony_ci 13041cb0ef41Sopenharmony_ci<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(symptom); 13051cb0ef41Sopenharmony_ci<span class="hljs-comment">// Prints:</span> 13061cb0ef41Sopenharmony_ci<span class="hljs-comment">// Error: The message failed to send</span> 13071cb0ef41Sopenharmony_ci<span class="hljs-comment">// at REPL2:1:17</span> 13081cb0ef41Sopenharmony_ci<span class="hljs-comment">// at Script.runInThisContext (node:vm:130:12)</span> 13091cb0ef41Sopenharmony_ci<span class="hljs-comment">// ... 7 lines matching cause stack trace ...</span> 13101cb0ef41Sopenharmony_ci<span class="hljs-comment">// at [_line] [as _line] (node:internal/readline/interface:886:18) {</span> 13111cb0ef41Sopenharmony_ci<span class="hljs-comment">// [cause]: Error: The remote HTTP server responded with a 500 status</span> 13121cb0ef41Sopenharmony_ci<span class="hljs-comment">// at REPL1:1:15</span> 13131cb0ef41Sopenharmony_ci<span class="hljs-comment">// at Script.runInThisContext (node:vm:130:12)</span> 13141cb0ef41Sopenharmony_ci<span class="hljs-comment">// at REPLServer.defaultEval (node:repl:574:29)</span> 13151cb0ef41Sopenharmony_ci<span class="hljs-comment">// at bound (node:domain:426:15)</span> 13161cb0ef41Sopenharmony_ci<span class="hljs-comment">// at REPLServer.runBound [as eval] (node:domain:437:12)</span> 13171cb0ef41Sopenharmony_ci<span class="hljs-comment">// at REPLServer.onLine (node:repl:902:10)</span> 13181cb0ef41Sopenharmony_ci<span class="hljs-comment">// at REPLServer.emit (node:events:549:35)</span> 13191cb0ef41Sopenharmony_ci<span class="hljs-comment">// at REPLServer.emit (node:domain:482:12)</span> 13201cb0ef41Sopenharmony_ci<span class="hljs-comment">// at [_onLine] [as _onLine] (node:internal/readline/interface:425:12)</span> 13211cb0ef41Sopenharmony_ci<span class="hljs-comment">// at [_line] [as _line] (node:internal/readline/interface:886:18)</span></code> <button class="copy-button">copy</button></pre> 13221cb0ef41Sopenharmony_ci<h4><code>error.code</code><span><a class="mark" href="#errorcode" id="errorcode">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_code"></a></h4> 13231cb0ef41Sopenharmony_ci<ul> 13241cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 13251cb0ef41Sopenharmony_ci</ul> 13261cb0ef41Sopenharmony_ci<p>The <code>error.code</code> property is a string label that identifies the kind of error. 13271cb0ef41Sopenharmony_ci<code>error.code</code> is the most stable way to identify an error. It will only change 13281cb0ef41Sopenharmony_cibetween major versions of Node.js. In contrast, <code>error.message</code> strings may 13291cb0ef41Sopenharmony_cichange between any versions of Node.js. See <a href="#nodejs-error-codes">Node.js error codes</a> for details 13301cb0ef41Sopenharmony_ciabout specific codes.</p> 13311cb0ef41Sopenharmony_ci<h4><code>error.message</code><span><a class="mark" href="#errormessage" id="errormessage">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_message"></a></h4> 13321cb0ef41Sopenharmony_ci<ul> 13331cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 13341cb0ef41Sopenharmony_ci</ul> 13351cb0ef41Sopenharmony_ci<p>The <code>error.message</code> property is the string description of the error as set by 13361cb0ef41Sopenharmony_cicalling <code>new Error(message)</code>. The <code>message</code> passed to the constructor will also 13371cb0ef41Sopenharmony_ciappear in the first line of the stack trace of the <code>Error</code>, however changing 13381cb0ef41Sopenharmony_cithis property after the <code>Error</code> object is created <em>may not</em> change the first 13391cb0ef41Sopenharmony_ciline of the stack trace (for example, when <code>error.stack</code> is read before this 13401cb0ef41Sopenharmony_ciproperty is changed).</p> 13411cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> err = <span class="hljs-keyword">new</span> <span class="hljs-title class_">Error</span>(<span class="hljs-string">'The message'</span>); 13421cb0ef41Sopenharmony_ci<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">error</span>(err.<span class="hljs-property">message</span>); 13431cb0ef41Sopenharmony_ci<span class="hljs-comment">// Prints: The message</span></code> <button class="copy-button">copy</button></pre> 13441cb0ef41Sopenharmony_ci<h4><code>error.stack</code><span><a class="mark" href="#errorstack" id="errorstack">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_stack"></a></h4> 13451cb0ef41Sopenharmony_ci<ul> 13461cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 13471cb0ef41Sopenharmony_ci</ul> 13481cb0ef41Sopenharmony_ci<p>The <code>error.stack</code> property is a string describing the point in the code at which 13491cb0ef41Sopenharmony_cithe <code>Error</code> was instantiated.</p> 13501cb0ef41Sopenharmony_ci<pre><code class="language-console">Error: Things keep happening! 13511cb0ef41Sopenharmony_ci at /home/gbusey/file.js:525:2 13521cb0ef41Sopenharmony_ci at Frobnicator.refrobulate (/home/gbusey/business-logic.js:424:21) 13531cb0ef41Sopenharmony_ci at Actor.<anonymous> (/home/gbusey/actors.js:400:8) 13541cb0ef41Sopenharmony_ci at increaseSynergy (/home/gbusey/actors.js:701:6)</code> <button class="copy-button">copy</button></pre> 13551cb0ef41Sopenharmony_ci<p>The first line is formatted as <code><error class name>: <error message></code>, and 13561cb0ef41Sopenharmony_ciis followed by a series of stack frames (each line beginning with "at "). 13571cb0ef41Sopenharmony_ciEach frame describes a call site within the code that lead to the error being 13581cb0ef41Sopenharmony_cigenerated. V8 attempts to display a name for each function (by variable name, 13591cb0ef41Sopenharmony_cifunction name, or object method name), but occasionally it will not be able to 13601cb0ef41Sopenharmony_cifind a suitable name. If V8 cannot determine a name for the function, only 13611cb0ef41Sopenharmony_cilocation information will be displayed for that frame. Otherwise, the 13621cb0ef41Sopenharmony_cidetermined function name will be displayed with location information appended 13631cb0ef41Sopenharmony_ciin parentheses.</p> 13641cb0ef41Sopenharmony_ci<p>Frames are only generated for JavaScript functions. If, for example, execution 13651cb0ef41Sopenharmony_cisynchronously passes through a C++ addon function called <code>cheetahify</code> which 13661cb0ef41Sopenharmony_ciitself calls a JavaScript function, the frame representing the <code>cheetahify</code> call 13671cb0ef41Sopenharmony_ciwill not be present in the stack traces:</p> 13681cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> cheetahify = <span class="hljs-built_in">require</span>(<span class="hljs-string">'./native-binding.node'</span>); 13691cb0ef41Sopenharmony_ci 13701cb0ef41Sopenharmony_ci<span class="hljs-keyword">function</span> <span class="hljs-title function_">makeFaster</span>(<span class="hljs-params"></span>) { 13711cb0ef41Sopenharmony_ci <span class="hljs-comment">// `cheetahify()` *synchronously* calls speedy.</span> 13721cb0ef41Sopenharmony_ci <span class="hljs-title function_">cheetahify</span>(<span class="hljs-keyword">function</span> <span class="hljs-title function_">speedy</span>(<span class="hljs-params"></span>) { 13731cb0ef41Sopenharmony_ci <span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> <span class="hljs-title class_">Error</span>(<span class="hljs-string">'oh no!'</span>); 13741cb0ef41Sopenharmony_ci }); 13751cb0ef41Sopenharmony_ci} 13761cb0ef41Sopenharmony_ci 13771cb0ef41Sopenharmony_ci<span class="hljs-title function_">makeFaster</span>(); 13781cb0ef41Sopenharmony_ci<span class="hljs-comment">// will throw:</span> 13791cb0ef41Sopenharmony_ci<span class="hljs-comment">// /home/gbusey/file.js:6</span> 13801cb0ef41Sopenharmony_ci<span class="hljs-comment">// throw new Error('oh no!');</span> 13811cb0ef41Sopenharmony_ci<span class="hljs-comment">// ^</span> 13821cb0ef41Sopenharmony_ci<span class="hljs-comment">// Error: oh no!</span> 13831cb0ef41Sopenharmony_ci<span class="hljs-comment">// at speedy (/home/gbusey/file.js:6:11)</span> 13841cb0ef41Sopenharmony_ci<span class="hljs-comment">// at makeFaster (/home/gbusey/file.js:5:3)</span> 13851cb0ef41Sopenharmony_ci<span class="hljs-comment">// at Object.<anonymous> (/home/gbusey/file.js:10:1)</span> 13861cb0ef41Sopenharmony_ci<span class="hljs-comment">// at Module._compile (module.js:456:26)</span> 13871cb0ef41Sopenharmony_ci<span class="hljs-comment">// at Object.Module._extensions..js (module.js:474:10)</span> 13881cb0ef41Sopenharmony_ci<span class="hljs-comment">// at Module.load (module.js:356:32)</span> 13891cb0ef41Sopenharmony_ci<span class="hljs-comment">// at Function.Module._load (module.js:312:12)</span> 13901cb0ef41Sopenharmony_ci<span class="hljs-comment">// at Function.Module.runMain (module.js:497:10)</span> 13911cb0ef41Sopenharmony_ci<span class="hljs-comment">// at startup (node.js:119:16)</span> 13921cb0ef41Sopenharmony_ci<span class="hljs-comment">// at node.js:906:3</span></code> <button class="copy-button">copy</button></pre> 13931cb0ef41Sopenharmony_ci<p>The location information will be one of:</p> 13941cb0ef41Sopenharmony_ci<ul> 13951cb0ef41Sopenharmony_ci<li><code>native</code>, if the frame represents a call internal to V8 (as in <code>[].forEach</code>).</li> 13961cb0ef41Sopenharmony_ci<li><code>plain-filename.js:line:column</code>, if the frame represents a call internal 13971cb0ef41Sopenharmony_cito Node.js.</li> 13981cb0ef41Sopenharmony_ci<li><code>/absolute/path/to/file.js:line:column</code>, if the frame represents a call in 13991cb0ef41Sopenharmony_cia user program (using CommonJS module system), or its dependencies.</li> 14001cb0ef41Sopenharmony_ci<li><code><transport-protocol>:///url/to/module/file.mjs:line:column</code>, if the frame 14011cb0ef41Sopenharmony_cirepresents a call in a user program (using ES module system), or 14021cb0ef41Sopenharmony_ciits dependencies.</li> 14031cb0ef41Sopenharmony_ci</ul> 14041cb0ef41Sopenharmony_ci<p>The string representing the stack trace is lazily generated when the 14051cb0ef41Sopenharmony_ci<code>error.stack</code> property is <strong>accessed</strong>.</p> 14061cb0ef41Sopenharmony_ci<p>The number of frames captured by the stack trace is bounded by the smaller of 14071cb0ef41Sopenharmony_ci<code>Error.stackTraceLimit</code> or the number of available frames on the current event 14081cb0ef41Sopenharmony_ciloop tick.</p> 14091cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>AssertionError</code><span><a class="mark" href="#class-assertionerror" id="class-assertionerror">#</a></span><a aria-hidden="true" class="legacy" id="errors_class_assertionerror"></a></h3> 14101cb0ef41Sopenharmony_ci<ul> 14111cb0ef41Sopenharmony_ci<li>Extends: <a href="errors.html#class-error" class="type"><errors.Error></a></li> 14121cb0ef41Sopenharmony_ci</ul> 14131cb0ef41Sopenharmony_ci<p>Indicates the failure of an assertion. For details, see 14141cb0ef41Sopenharmony_ci<a href="assert.html#class-assertassertionerror"><code>Class: assert.AssertionError</code></a>.</p> 14151cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>RangeError</code><span><a class="mark" href="#class-rangeerror" id="class-rangeerror">#</a></span><a aria-hidden="true" class="legacy" id="errors_class_rangeerror"></a></h3> 14161cb0ef41Sopenharmony_ci<ul> 14171cb0ef41Sopenharmony_ci<li>Extends: <a href="errors.html#class-error" class="type"><errors.Error></a></li> 14181cb0ef41Sopenharmony_ci</ul> 14191cb0ef41Sopenharmony_ci<p>Indicates that a provided argument was not within the set or range of 14201cb0ef41Sopenharmony_ciacceptable values for a function; whether that is a numeric range, or 14211cb0ef41Sopenharmony_cioutside the set of options for a given function parameter.</p> 14221cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-built_in">require</span>(<span class="hljs-string">'node:net'</span>).<span class="hljs-title function_">connect</span>(-<span class="hljs-number">1</span>); 14231cb0ef41Sopenharmony_ci<span class="hljs-comment">// Throws "RangeError: "port" option should be >= 0 and < 65536: -1"</span></code> <button class="copy-button">copy</button></pre> 14241cb0ef41Sopenharmony_ci<p>Node.js will generate and throw <code>RangeError</code> instances <em>immediately</em> as a form 14251cb0ef41Sopenharmony_ciof argument validation.</p> 14261cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>ReferenceError</code><span><a class="mark" href="#class-referenceerror" id="class-referenceerror">#</a></span><a aria-hidden="true" class="legacy" id="errors_class_referenceerror"></a></h3> 14271cb0ef41Sopenharmony_ci<ul> 14281cb0ef41Sopenharmony_ci<li>Extends: <a href="errors.html#class-error" class="type"><errors.Error></a></li> 14291cb0ef41Sopenharmony_ci</ul> 14301cb0ef41Sopenharmony_ci<p>Indicates that an attempt is being made to access a variable that is not 14311cb0ef41Sopenharmony_cidefined. Such errors commonly indicate typos in code, or an otherwise broken 14321cb0ef41Sopenharmony_ciprogram.</p> 14331cb0ef41Sopenharmony_ci<p>While client code may generate and propagate these errors, in practice, only V8 14341cb0ef41Sopenharmony_ciwill do so.</p> 14351cb0ef41Sopenharmony_ci<pre><code class="language-js">doesNotExist; 14361cb0ef41Sopenharmony_ci<span class="hljs-comment">// Throws ReferenceError, doesNotExist is not a variable in this program.</span></code> <button class="copy-button">copy</button></pre> 14371cb0ef41Sopenharmony_ci<p>Unless an application is dynamically generating and running code, 14381cb0ef41Sopenharmony_ci<code>ReferenceError</code> instances indicate a bug in the code or its dependencies.</p> 14391cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>SyntaxError</code><span><a class="mark" href="#class-syntaxerror" id="class-syntaxerror">#</a></span><a aria-hidden="true" class="legacy" id="errors_class_syntaxerror"></a></h3> 14401cb0ef41Sopenharmony_ci<ul> 14411cb0ef41Sopenharmony_ci<li>Extends: <a href="errors.html#class-error" class="type"><errors.Error></a></li> 14421cb0ef41Sopenharmony_ci</ul> 14431cb0ef41Sopenharmony_ci<p>Indicates that a program is not valid JavaScript. These errors may only be 14441cb0ef41Sopenharmony_cigenerated and propagated as a result of code evaluation. Code evaluation may 14451cb0ef41Sopenharmony_cihappen as a result of <code>eval</code>, <code>Function</code>, <code>require</code>, or <a href="vm.html">vm</a>. These errors 14461cb0ef41Sopenharmony_ciare almost always indicative of a broken program.</p> 14471cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">try</span> { 14481cb0ef41Sopenharmony_ci <span class="hljs-built_in">require</span>(<span class="hljs-string">'node:vm'</span>).<span class="hljs-title function_">runInThisContext</span>(<span class="hljs-string">'binary ! isNotOk'</span>); 14491cb0ef41Sopenharmony_ci} <span class="hljs-keyword">catch</span> (err) { 14501cb0ef41Sopenharmony_ci <span class="hljs-comment">// 'err' will be a SyntaxError.</span> 14511cb0ef41Sopenharmony_ci}</code> <button class="copy-button">copy</button></pre> 14521cb0ef41Sopenharmony_ci<p><code>SyntaxError</code> instances are unrecoverable in the context that created them – 14531cb0ef41Sopenharmony_cithey may only be caught by other contexts.</p> 14541cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>SystemError</code><span><a class="mark" href="#class-systemerror" id="class-systemerror">#</a></span><a aria-hidden="true" class="legacy" id="errors_class_systemerror"></a></h3> 14551cb0ef41Sopenharmony_ci<ul> 14561cb0ef41Sopenharmony_ci<li>Extends: <a href="errors.html#class-error" class="type"><errors.Error></a></li> 14571cb0ef41Sopenharmony_ci</ul> 14581cb0ef41Sopenharmony_ci<p>Node.js generates system errors when exceptions occur within its runtime 14591cb0ef41Sopenharmony_cienvironment. These usually occur when an application violates an operating 14601cb0ef41Sopenharmony_cisystem constraint. For example, a system error will occur if an application 14611cb0ef41Sopenharmony_ciattempts to read a file that does not exist.</p> 14621cb0ef41Sopenharmony_ci<ul> 14631cb0ef41Sopenharmony_ci<li><code>address</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> If present, the address to which a network connection 14641cb0ef41Sopenharmony_cifailed</li> 14651cb0ef41Sopenharmony_ci<li><code>code</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> The string error code</li> 14661cb0ef41Sopenharmony_ci<li><code>dest</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> If present, the file path destination when reporting a file 14671cb0ef41Sopenharmony_cisystem error</li> 14681cb0ef41Sopenharmony_ci<li><code>errno</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a> The system-provided error number</li> 14691cb0ef41Sopenharmony_ci<li><code>info</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type"><Object></a> If present, extra details about the error condition</li> 14701cb0ef41Sopenharmony_ci<li><code>message</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> A system-provided human-readable description of the error</li> 14711cb0ef41Sopenharmony_ci<li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> If present, the file path when reporting a file system error</li> 14721cb0ef41Sopenharmony_ci<li><code>port</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a> If present, the network connection port that is not available</li> 14731cb0ef41Sopenharmony_ci<li><code>syscall</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> The name of the system call that triggered the error</li> 14741cb0ef41Sopenharmony_ci</ul> 14751cb0ef41Sopenharmony_ci<h4><code>error.address</code><span><a class="mark" href="#erroraddress" id="erroraddress">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_address"></a></h4> 14761cb0ef41Sopenharmony_ci<ul> 14771cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 14781cb0ef41Sopenharmony_ci</ul> 14791cb0ef41Sopenharmony_ci<p>If present, <code>error.address</code> is a string describing the address to which a 14801cb0ef41Sopenharmony_cinetwork connection failed.</p> 14811cb0ef41Sopenharmony_ci<h4><code>error.code</code><span><a class="mark" href="#errorcode_1" id="errorcode_1">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_code_1"></a></h4> 14821cb0ef41Sopenharmony_ci<ul> 14831cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 14841cb0ef41Sopenharmony_ci</ul> 14851cb0ef41Sopenharmony_ci<p>The <code>error.code</code> property is a string representing the error code.</p> 14861cb0ef41Sopenharmony_ci<h4><code>error.dest</code><span><a class="mark" href="#errordest" id="errordest">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_dest"></a></h4> 14871cb0ef41Sopenharmony_ci<ul> 14881cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 14891cb0ef41Sopenharmony_ci</ul> 14901cb0ef41Sopenharmony_ci<p>If present, <code>error.dest</code> is the file path destination when reporting a file 14911cb0ef41Sopenharmony_cisystem error.</p> 14921cb0ef41Sopenharmony_ci<h4><code>error.errno</code><span><a class="mark" href="#errorerrno" id="errorerrno">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_errno"></a></h4> 14931cb0ef41Sopenharmony_ci<ul> 14941cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a></li> 14951cb0ef41Sopenharmony_ci</ul> 14961cb0ef41Sopenharmony_ci<p>The <code>error.errno</code> property is a negative number which corresponds 14971cb0ef41Sopenharmony_cito the error code defined in <a href="https://docs.libuv.org/en/v1.x/errors.html"><code>libuv Error handling</code></a>.</p> 14981cb0ef41Sopenharmony_ci<p>On Windows the error number provided by the system will be normalized by libuv.</p> 14991cb0ef41Sopenharmony_ci<p>To get the string representation of the error code, use 15001cb0ef41Sopenharmony_ci<a href="util.html#utilgetsystemerrornameerr"><code>util.getSystemErrorName(error.errno)</code></a>.</p> 15011cb0ef41Sopenharmony_ci<h4><code>error.info</code><span><a class="mark" href="#errorinfo" id="errorinfo">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_info"></a></h4> 15021cb0ef41Sopenharmony_ci<ul> 15031cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type"><Object></a></li> 15041cb0ef41Sopenharmony_ci</ul> 15051cb0ef41Sopenharmony_ci<p>If present, <code>error.info</code> is an object with details about the error condition.</p> 15061cb0ef41Sopenharmony_ci<h4><code>error.message</code><span><a class="mark" href="#errormessage_1" id="errormessage_1">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_message_1"></a></h4> 15071cb0ef41Sopenharmony_ci<ul> 15081cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 15091cb0ef41Sopenharmony_ci</ul> 15101cb0ef41Sopenharmony_ci<p><code>error.message</code> is a system-provided human-readable description of the error.</p> 15111cb0ef41Sopenharmony_ci<h4><code>error.path</code><span><a class="mark" href="#errorpath" id="errorpath">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_path"></a></h4> 15121cb0ef41Sopenharmony_ci<ul> 15131cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 15141cb0ef41Sopenharmony_ci</ul> 15151cb0ef41Sopenharmony_ci<p>If present, <code>error.path</code> is a string containing a relevant invalid pathname.</p> 15161cb0ef41Sopenharmony_ci<h4><code>error.port</code><span><a class="mark" href="#errorport" id="errorport">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_port"></a></h4> 15171cb0ef41Sopenharmony_ci<ul> 15181cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a></li> 15191cb0ef41Sopenharmony_ci</ul> 15201cb0ef41Sopenharmony_ci<p>If present, <code>error.port</code> is the network connection port that is not available.</p> 15211cb0ef41Sopenharmony_ci<h4><code>error.syscall</code><span><a class="mark" href="#errorsyscall" id="errorsyscall">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_syscall"></a></h4> 15221cb0ef41Sopenharmony_ci<ul> 15231cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 15241cb0ef41Sopenharmony_ci</ul> 15251cb0ef41Sopenharmony_ci<p>The <code>error.syscall</code> property is a string describing the <a href="https://man7.org/linux/man-pages/man2/syscalls.2.html">syscall</a> that failed.</p> 15261cb0ef41Sopenharmony_ci<h4>Common system errors<span><a class="mark" href="#common-system-errors" id="common-system-errors">#</a></span><a aria-hidden="true" class="legacy" id="errors_common_system_errors"></a></h4> 15271cb0ef41Sopenharmony_ci<p>This is a list of system errors commonly-encountered when writing a Node.js 15281cb0ef41Sopenharmony_ciprogram. For a comprehensive list, see the <a href="https://man7.org/linux/man-pages/man3/errno.3.html"><code>errno</code>(3) man page</a>.</p> 15291cb0ef41Sopenharmony_ci<ul> 15301cb0ef41Sopenharmony_ci<li> 15311cb0ef41Sopenharmony_ci<p><code>EACCES</code> (Permission denied): An attempt was made to access a file in a way 15321cb0ef41Sopenharmony_ciforbidden by its file access permissions.</p> 15331cb0ef41Sopenharmony_ci</li> 15341cb0ef41Sopenharmony_ci<li> 15351cb0ef41Sopenharmony_ci<p><code>EADDRINUSE</code> (Address already in use): An attempt to bind a server 15361cb0ef41Sopenharmony_ci(<a href="net.html"><code>net</code></a>, <a href="http.html"><code>http</code></a>, or <a href="https.html"><code>https</code></a>) to a local address failed due to 15371cb0ef41Sopenharmony_cianother server on the local system already occupying that address.</p> 15381cb0ef41Sopenharmony_ci</li> 15391cb0ef41Sopenharmony_ci<li> 15401cb0ef41Sopenharmony_ci<p><code>ECONNREFUSED</code> (Connection refused): No connection could be made because the 15411cb0ef41Sopenharmony_citarget machine actively refused it. This usually results from trying to 15421cb0ef41Sopenharmony_ciconnect to a service that is inactive on the foreign host.</p> 15431cb0ef41Sopenharmony_ci</li> 15441cb0ef41Sopenharmony_ci<li> 15451cb0ef41Sopenharmony_ci<p><code>ECONNRESET</code> (Connection reset by peer): A connection was forcibly closed by 15461cb0ef41Sopenharmony_cia peer. This normally results from a loss of the connection on the remote 15471cb0ef41Sopenharmony_cisocket due to a timeout or reboot. Commonly encountered via the <a href="http.html"><code>http</code></a> 15481cb0ef41Sopenharmony_ciand <a href="net.html"><code>net</code></a> modules.</p> 15491cb0ef41Sopenharmony_ci</li> 15501cb0ef41Sopenharmony_ci<li> 15511cb0ef41Sopenharmony_ci<p><code>EEXIST</code> (File exists): An existing file was the target of an operation that 15521cb0ef41Sopenharmony_cirequired that the target not exist.</p> 15531cb0ef41Sopenharmony_ci</li> 15541cb0ef41Sopenharmony_ci<li> 15551cb0ef41Sopenharmony_ci<p><code>EISDIR</code> (Is a directory): An operation expected a file, but the given 15561cb0ef41Sopenharmony_cipathname was a directory.</p> 15571cb0ef41Sopenharmony_ci</li> 15581cb0ef41Sopenharmony_ci<li> 15591cb0ef41Sopenharmony_ci<p><code>EMFILE</code> (Too many open files in system): Maximum number of 15601cb0ef41Sopenharmony_ci<a href="https://en.wikipedia.org/wiki/File_descriptor">file descriptors</a> allowable on the system has been reached, and 15611cb0ef41Sopenharmony_cirequests for another descriptor cannot be fulfilled until at least one 15621cb0ef41Sopenharmony_cihas been closed. This is encountered when opening many files at once in 15631cb0ef41Sopenharmony_ciparallel, especially on systems (in particular, macOS) where there is a low 15641cb0ef41Sopenharmony_cifile descriptor limit for processes. To remedy a low limit, run 15651cb0ef41Sopenharmony_ci<code>ulimit -n 2048</code> in the same shell that will run the Node.js process.</p> 15661cb0ef41Sopenharmony_ci</li> 15671cb0ef41Sopenharmony_ci<li> 15681cb0ef41Sopenharmony_ci<p><code>ENOENT</code> (No such file or directory): Commonly raised by <a href="fs.html"><code>fs</code></a> operations 15691cb0ef41Sopenharmony_cito indicate that a component of the specified pathname does not exist. No 15701cb0ef41Sopenharmony_cientity (file or directory) could be found by the given path.</p> 15711cb0ef41Sopenharmony_ci</li> 15721cb0ef41Sopenharmony_ci<li> 15731cb0ef41Sopenharmony_ci<p><code>ENOTDIR</code> (Not a directory): A component of the given pathname existed, but 15741cb0ef41Sopenharmony_ciwas not a directory as expected. Commonly raised by <a href="fs.html#fsreaddirpath-options-callback"><code>fs.readdir</code></a>.</p> 15751cb0ef41Sopenharmony_ci</li> 15761cb0ef41Sopenharmony_ci<li> 15771cb0ef41Sopenharmony_ci<p><code>ENOTEMPTY</code> (Directory not empty): A directory with entries was the target 15781cb0ef41Sopenharmony_ciof an operation that requires an empty directory, usually <a href="fs.html#fsunlinkpath-callback"><code>fs.unlink</code></a>.</p> 15791cb0ef41Sopenharmony_ci</li> 15801cb0ef41Sopenharmony_ci<li> 15811cb0ef41Sopenharmony_ci<p><code>ENOTFOUND</code> (DNS lookup failed): Indicates a DNS failure of either 15821cb0ef41Sopenharmony_ci<code>EAI_NODATA</code> or <code>EAI_NONAME</code>. This is not a standard POSIX error.</p> 15831cb0ef41Sopenharmony_ci</li> 15841cb0ef41Sopenharmony_ci<li> 15851cb0ef41Sopenharmony_ci<p><code>EPERM</code> (Operation not permitted): An attempt was made to perform an 15861cb0ef41Sopenharmony_cioperation that requires elevated privileges.</p> 15871cb0ef41Sopenharmony_ci</li> 15881cb0ef41Sopenharmony_ci<li> 15891cb0ef41Sopenharmony_ci<p><code>EPIPE</code> (Broken pipe): A write on a pipe, socket, or FIFO for which there is 15901cb0ef41Sopenharmony_cino process to read the data. Commonly encountered at the <a href="net.html"><code>net</code></a> and 15911cb0ef41Sopenharmony_ci<a href="http.html"><code>http</code></a> layers, indicative that the remote side of the stream being 15921cb0ef41Sopenharmony_ciwritten to has been closed.</p> 15931cb0ef41Sopenharmony_ci</li> 15941cb0ef41Sopenharmony_ci<li> 15951cb0ef41Sopenharmony_ci<p><code>ETIMEDOUT</code> (Operation timed out): A connect or send request failed because 15961cb0ef41Sopenharmony_cithe connected party did not properly respond after a period of time. Usually 15971cb0ef41Sopenharmony_ciencountered by <a href="http.html"><code>http</code></a> or <a href="net.html"><code>net</code></a>. Often a sign that a <code>socket.end()</code> 15981cb0ef41Sopenharmony_ciwas not properly called.</p> 15991cb0ef41Sopenharmony_ci</li> 16001cb0ef41Sopenharmony_ci</ul> 16011cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>TypeError</code><span><a class="mark" href="#class-typeerror" id="class-typeerror">#</a></span><a aria-hidden="true" class="legacy" id="errors_class_typeerror"></a></h3> 16021cb0ef41Sopenharmony_ci<ul> 16031cb0ef41Sopenharmony_ci<li>Extends <a href="errors.html#class-error" class="type"><errors.Error></a></li> 16041cb0ef41Sopenharmony_ci</ul> 16051cb0ef41Sopenharmony_ci<p>Indicates that a provided argument is not an allowable type. For example, 16061cb0ef41Sopenharmony_cipassing a function to a parameter which expects a string would be a <code>TypeError</code>.</p> 16071cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-built_in">require</span>(<span class="hljs-string">'node:url'</span>).<span class="hljs-title function_">parse</span>(<span class="hljs-function">() =></span> { }); 16081cb0ef41Sopenharmony_ci<span class="hljs-comment">// Throws TypeError, since it expected a string.</span></code> <button class="copy-button">copy</button></pre> 16091cb0ef41Sopenharmony_ci<p>Node.js will generate and throw <code>TypeError</code> instances <em>immediately</em> as a form 16101cb0ef41Sopenharmony_ciof argument validation.</p> 16111cb0ef41Sopenharmony_ci</section><section><h3>Exceptions vs. errors<span><a class="mark" href="#exceptions-vs-errors" id="exceptions-vs-errors">#</a></span><a aria-hidden="true" class="legacy" id="errors_exceptions_vs_errors"></a></h3> 16121cb0ef41Sopenharmony_ci 16131cb0ef41Sopenharmony_ci<p>A JavaScript exception is a value that is thrown as a result of an invalid 16141cb0ef41Sopenharmony_cioperation or as the target of a <code>throw</code> statement. While it is not required 16151cb0ef41Sopenharmony_cithat these values are instances of <code>Error</code> or classes which inherit from 16161cb0ef41Sopenharmony_ci<code>Error</code>, all exceptions thrown by Node.js or the JavaScript runtime <em>will</em> be 16171cb0ef41Sopenharmony_ciinstances of <code>Error</code>.</p> 16181cb0ef41Sopenharmony_ci<p>Some exceptions are <em>unrecoverable</em> at the JavaScript layer. Such exceptions 16191cb0ef41Sopenharmony_ciwill <em>always</em> cause the Node.js process to crash. Examples include <code>assert()</code> 16201cb0ef41Sopenharmony_cichecks or <code>abort()</code> calls in the C++ layer.</p> 16211cb0ef41Sopenharmony_ci</section><section><h3>OpenSSL errors<span><a class="mark" href="#openssl-errors" id="openssl-errors">#</a></span><a aria-hidden="true" class="legacy" id="errors_openssl_errors"></a></h3> 16221cb0ef41Sopenharmony_ci<p>Errors originating in <code>crypto</code> or <code>tls</code> are of class <code>Error</code>, and in addition to 16231cb0ef41Sopenharmony_cithe standard <code>.code</code> and <code>.message</code> properties, may have some additional 16241cb0ef41Sopenharmony_ciOpenSSL-specific properties.</p> 16251cb0ef41Sopenharmony_ci<h4><code>error.opensslErrorStack</code><span><a class="mark" href="#erroropensslerrorstack" id="erroropensslerrorstack">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_opensslerrorstack"></a></h4> 16261cb0ef41Sopenharmony_ci<p>An array of errors that can give context to where in the OpenSSL library an 16271cb0ef41Sopenharmony_cierror originates from.</p> 16281cb0ef41Sopenharmony_ci<h4><code>error.function</code><span><a class="mark" href="#errorfunction" id="errorfunction">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_function"></a></h4> 16291cb0ef41Sopenharmony_ci<p>The OpenSSL function the error originates in.</p> 16301cb0ef41Sopenharmony_ci<h4><code>error.library</code><span><a class="mark" href="#errorlibrary" id="errorlibrary">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_library"></a></h4> 16311cb0ef41Sopenharmony_ci<p>The OpenSSL library the error originates in.</p> 16321cb0ef41Sopenharmony_ci<h4><code>error.reason</code><span><a class="mark" href="#errorreason" id="errorreason">#</a></span><a aria-hidden="true" class="legacy" id="errors_error_reason"></a></h4> 16331cb0ef41Sopenharmony_ci<p>A human-readable string describing the reason for the error.</p> 16341cb0ef41Sopenharmony_ci<p><a id="nodejs-error-codes"></a></p> 16351cb0ef41Sopenharmony_ci</section><section><h3>Node.js error codes<span><a class="mark" href="#nodejs-error-codes" id="nodejs-error-codes">#</a></span><a aria-hidden="true" class="legacy" id="errors_node_js_error_codes"></a></h3> 16361cb0ef41Sopenharmony_ci<p><a id="ABORT_ERR"></a></p> 16371cb0ef41Sopenharmony_ci<h4><code>ABORT_ERR</code><span><a class="mark" href="#abort_err" id="abort_err">#</a></span><a aria-hidden="true" class="legacy" id="errors_abort_err"></a></h4> 16381cb0ef41Sopenharmony_ci<div class="api_metadata"> 16391cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 16401cb0ef41Sopenharmony_ci</div> 16411cb0ef41Sopenharmony_ci<p>Used when an operation has been aborted (typically using an <code>AbortController</code>).</p> 16421cb0ef41Sopenharmony_ci<p>APIs <em>not</em> using <code>AbortSignal</code>s typically do not raise an error with this code.</p> 16431cb0ef41Sopenharmony_ci<p>This code does not use the regular <code>ERR_*</code> convention Node.js errors use in 16441cb0ef41Sopenharmony_ciorder to be compatible with the web platform's <code>AbortError</code>.</p> 16451cb0ef41Sopenharmony_ci<p><a id="ERR_ACCESS_DENIED"></a></p> 16461cb0ef41Sopenharmony_ci<h4><code>ERR_ACCESS_DENIED</code><span><a class="mark" href="#err_access_denied" id="err_access_denied">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_access_denied"></a></h4> 16471cb0ef41Sopenharmony_ci<p>A special type of error that is triggered whenever Node.js tries to get access 16481cb0ef41Sopenharmony_cito a resource restricted by the <a href="permissions.html#policies">policy</a> manifest. 16491cb0ef41Sopenharmony_ciFor example, <code>process.binding</code>.</p> 16501cb0ef41Sopenharmony_ci<p><a id="ERR_AMBIGUOUS_ARGUMENT"></a></p> 16511cb0ef41Sopenharmony_ci<h4><code>ERR_AMBIGUOUS_ARGUMENT</code><span><a class="mark" href="#err_ambiguous_argument" id="err_ambiguous_argument">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_ambiguous_argument"></a></h4> 16521cb0ef41Sopenharmony_ci<p>A function argument is being used in a way that suggests that the function 16531cb0ef41Sopenharmony_cisignature may be misunderstood. This is thrown by the <code>node:assert</code> module when 16541cb0ef41Sopenharmony_cithe <code>message</code> parameter in <code>assert.throws(block, message)</code> matches the error 16551cb0ef41Sopenharmony_cimessage thrown by <code>block</code> because that usage suggests that the user believes 16561cb0ef41Sopenharmony_ci<code>message</code> is the expected message rather than the message the <code>AssertionError</code> 16571cb0ef41Sopenharmony_ciwill display if <code>block</code> does not throw.</p> 16581cb0ef41Sopenharmony_ci<p><a id="ERR_ARG_NOT_ITERABLE"></a></p> 16591cb0ef41Sopenharmony_ci<h4><code>ERR_ARG_NOT_ITERABLE</code><span><a class="mark" href="#err_arg_not_iterable" id="err_arg_not_iterable">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_arg_not_iterable"></a></h4> 16601cb0ef41Sopenharmony_ci<p>An iterable argument (i.e. a value that works with <code>for...of</code> loops) was 16611cb0ef41Sopenharmony_cirequired, but not provided to a Node.js API.</p> 16621cb0ef41Sopenharmony_ci<p><a id="ERR_ASSERTION"></a></p> 16631cb0ef41Sopenharmony_ci<h4><code>ERR_ASSERTION</code><span><a class="mark" href="#err_assertion" id="err_assertion">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_assertion"></a></h4> 16641cb0ef41Sopenharmony_ci<p>A special type of error that can be triggered whenever Node.js detects an 16651cb0ef41Sopenharmony_ciexceptional logic violation that should never occur. These are raised typically 16661cb0ef41Sopenharmony_ciby the <code>node:assert</code> module.</p> 16671cb0ef41Sopenharmony_ci<p><a id="ERR_ASYNC_CALLBACK"></a></p> 16681cb0ef41Sopenharmony_ci<h4><code>ERR_ASYNC_CALLBACK</code><span><a class="mark" href="#err_async_callback" id="err_async_callback">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_async_callback"></a></h4> 16691cb0ef41Sopenharmony_ci<p>An attempt was made to register something that is not a function as an 16701cb0ef41Sopenharmony_ci<code>AsyncHooks</code> callback.</p> 16711cb0ef41Sopenharmony_ci<p><a id="ERR_ASYNC_TYPE"></a></p> 16721cb0ef41Sopenharmony_ci<h4><code>ERR_ASYNC_TYPE</code><span><a class="mark" href="#err_async_type" id="err_async_type">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_async_type"></a></h4> 16731cb0ef41Sopenharmony_ci<p>The type of an asynchronous resource was invalid. Users are also able 16741cb0ef41Sopenharmony_cito define their own types if using the public embedder API.</p> 16751cb0ef41Sopenharmony_ci<p><a id="ERR_BROTLI_COMPRESSION_FAILED"></a></p> 16761cb0ef41Sopenharmony_ci<h4><code>ERR_BROTLI_COMPRESSION_FAILED</code><span><a class="mark" href="#err_brotli_compression_failed" id="err_brotli_compression_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_brotli_compression_failed"></a></h4> 16771cb0ef41Sopenharmony_ci<p>Data passed to a Brotli stream was not successfully compressed.</p> 16781cb0ef41Sopenharmony_ci<p><a id="ERR_BROTLI_INVALID_PARAM"></a></p> 16791cb0ef41Sopenharmony_ci<h4><code>ERR_BROTLI_INVALID_PARAM</code><span><a class="mark" href="#err_brotli_invalid_param" id="err_brotli_invalid_param">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_brotli_invalid_param"></a></h4> 16801cb0ef41Sopenharmony_ci<p>An invalid parameter key was passed during construction of a Brotli stream.</p> 16811cb0ef41Sopenharmony_ci<p><a id="ERR_BUFFER_CONTEXT_NOT_AVAILABLE"></a></p> 16821cb0ef41Sopenharmony_ci<h4><code>ERR_BUFFER_CONTEXT_NOT_AVAILABLE</code><span><a class="mark" href="#err_buffer_context_not_available" id="err_buffer_context_not_available">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_buffer_context_not_available"></a></h4> 16831cb0ef41Sopenharmony_ci<p>An attempt was made to create a Node.js <code>Buffer</code> instance from addon or embedder 16841cb0ef41Sopenharmony_cicode, while in a JS engine Context that is not associated with a Node.js 16851cb0ef41Sopenharmony_ciinstance. The data passed to the <code>Buffer</code> method will have been released 16861cb0ef41Sopenharmony_ciby the time the method returns.</p> 16871cb0ef41Sopenharmony_ci<p>When encountering this error, a possible alternative to creating a <code>Buffer</code> 16881cb0ef41Sopenharmony_ciinstance is to create a normal <code>Uint8Array</code>, which only differs in the 16891cb0ef41Sopenharmony_ciprototype of the resulting object. <code>Uint8Array</code>s are generally accepted in all 16901cb0ef41Sopenharmony_ciNode.js core APIs where <code>Buffer</code>s are; they are available in all Contexts.</p> 16911cb0ef41Sopenharmony_ci<p><a id="ERR_BUFFER_OUT_OF_BOUNDS"></a></p> 16921cb0ef41Sopenharmony_ci<h4><code>ERR_BUFFER_OUT_OF_BOUNDS</code><span><a class="mark" href="#err_buffer_out_of_bounds" id="err_buffer_out_of_bounds">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_buffer_out_of_bounds"></a></h4> 16931cb0ef41Sopenharmony_ci<p>An operation outside the bounds of a <code>Buffer</code> was attempted.</p> 16941cb0ef41Sopenharmony_ci<p><a id="ERR_BUFFER_TOO_LARGE"></a></p> 16951cb0ef41Sopenharmony_ci<h4><code>ERR_BUFFER_TOO_LARGE</code><span><a class="mark" href="#err_buffer_too_large" id="err_buffer_too_large">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_buffer_too_large"></a></h4> 16961cb0ef41Sopenharmony_ci<p>An attempt has been made to create a <code>Buffer</code> larger than the maximum allowed 16971cb0ef41Sopenharmony_cisize.</p> 16981cb0ef41Sopenharmony_ci<p><a id="ERR_CANNOT_WATCH_SIGINT"></a></p> 16991cb0ef41Sopenharmony_ci<h4><code>ERR_CANNOT_WATCH_SIGINT</code><span><a class="mark" href="#err_cannot_watch_sigint" id="err_cannot_watch_sigint">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_cannot_watch_sigint"></a></h4> 17001cb0ef41Sopenharmony_ci<p>Node.js was unable to watch for the <code>SIGINT</code> signal.</p> 17011cb0ef41Sopenharmony_ci<p><a id="ERR_CHILD_CLOSED_BEFORE_REPLY"></a></p> 17021cb0ef41Sopenharmony_ci<h4><code>ERR_CHILD_CLOSED_BEFORE_REPLY</code><span><a class="mark" href="#err_child_closed_before_reply" id="err_child_closed_before_reply">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_child_closed_before_reply"></a></h4> 17031cb0ef41Sopenharmony_ci<p>A child process was closed before the parent received a reply.</p> 17041cb0ef41Sopenharmony_ci<p><a id="ERR_CHILD_PROCESS_IPC_REQUIRED"></a></p> 17051cb0ef41Sopenharmony_ci<h4><code>ERR_CHILD_PROCESS_IPC_REQUIRED</code><span><a class="mark" href="#err_child_process_ipc_required" id="err_child_process_ipc_required">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_child_process_ipc_required"></a></h4> 17061cb0ef41Sopenharmony_ci<p>Used when a child process is being forked without specifying an IPC channel.</p> 17071cb0ef41Sopenharmony_ci<p><a id="ERR_CHILD_PROCESS_STDIO_MAXBUFFER"></a></p> 17081cb0ef41Sopenharmony_ci<h4><code>ERR_CHILD_PROCESS_STDIO_MAXBUFFER</code><span><a class="mark" href="#err_child_process_stdio_maxbuffer" id="err_child_process_stdio_maxbuffer">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_child_process_stdio_maxbuffer"></a></h4> 17091cb0ef41Sopenharmony_ci<p>Used when the main process is trying to read data from the child process's 17101cb0ef41Sopenharmony_ciSTDERR/STDOUT, and the data's length is longer than the <code>maxBuffer</code> option.</p> 17111cb0ef41Sopenharmony_ci<p><a id="ERR_CLOSED_MESSAGE_PORT"></a></p> 17121cb0ef41Sopenharmony_ci<h4><code>ERR_CLOSED_MESSAGE_PORT</code><span><a class="mark" href="#err_closed_message_port" id="err_closed_message_port">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_closed_message_port"></a></h4> 17131cb0ef41Sopenharmony_ci<!-- 17141cb0ef41Sopenharmony_ciadded: 17151cb0ef41Sopenharmony_ci - v16.2.0 17161cb0ef41Sopenharmony_ci - v14.17.1 17171cb0ef41Sopenharmony_cichanges: 17181cb0ef41Sopenharmony_ci - version: 11.12.0 17191cb0ef41Sopenharmony_ci pr-url: https://github.com/nodejs/node/pull/26487 17201cb0ef41Sopenharmony_ci description: The error message was removed. 17211cb0ef41Sopenharmony_ci - version: 17221cb0ef41Sopenharmony_ci - v16.2.0 17231cb0ef41Sopenharmony_ci - v14.17.1 17241cb0ef41Sopenharmony_ci pr-url: https://github.com/nodejs/node/pull/38510 17251cb0ef41Sopenharmony_ci description: The error message was reintroduced. 17261cb0ef41Sopenharmony_ci--> 17271cb0ef41Sopenharmony_ci<p>There was an attempt to use a <code>MessagePort</code> instance in a closed 17281cb0ef41Sopenharmony_cistate, usually after <code>.close()</code> has been called.</p> 17291cb0ef41Sopenharmony_ci<p><a id="ERR_CONSOLE_WRITABLE_STREAM"></a></p> 17301cb0ef41Sopenharmony_ci<h4><code>ERR_CONSOLE_WRITABLE_STREAM</code><span><a class="mark" href="#err_console_writable_stream" id="err_console_writable_stream">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_console_writable_stream"></a></h4> 17311cb0ef41Sopenharmony_ci<p><code>Console</code> was instantiated without <code>stdout</code> stream, or <code>Console</code> has a 17321cb0ef41Sopenharmony_cinon-writable <code>stdout</code> or <code>stderr</code> stream.</p> 17331cb0ef41Sopenharmony_ci<p><a id="ERR_CONSTRUCT_CALL_INVALID"></a></p> 17341cb0ef41Sopenharmony_ci<h4><code>ERR_CONSTRUCT_CALL_INVALID</code><span><a class="mark" href="#err_construct_call_invalid" id="err_construct_call_invalid">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_construct_call_invalid"></a></h4> 17351cb0ef41Sopenharmony_ci<!-- 17361cb0ef41Sopenharmony_ciadded: v12.5.0 17371cb0ef41Sopenharmony_ci--> 17381cb0ef41Sopenharmony_ci<p>A class constructor was called that is not callable.</p> 17391cb0ef41Sopenharmony_ci<p><a id="ERR_CONSTRUCT_CALL_REQUIRED"></a></p> 17401cb0ef41Sopenharmony_ci<h4><code>ERR_CONSTRUCT_CALL_REQUIRED</code><span><a class="mark" href="#err_construct_call_required" id="err_construct_call_required">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_construct_call_required"></a></h4> 17411cb0ef41Sopenharmony_ci<p>A constructor for a class was called without <code>new</code>.</p> 17421cb0ef41Sopenharmony_ci<p><a id="ERR_CONTEXT_NOT_INITIALIZED"></a></p> 17431cb0ef41Sopenharmony_ci<h4><code>ERR_CONTEXT_NOT_INITIALIZED</code><span><a class="mark" href="#err_context_not_initialized" id="err_context_not_initialized">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_context_not_initialized"></a></h4> 17441cb0ef41Sopenharmony_ci<p>The vm context passed into the API is not yet initialized. This could happen 17451cb0ef41Sopenharmony_ciwhen an error occurs (and is caught) during the creation of the 17461cb0ef41Sopenharmony_cicontext, for example, when the allocation fails or the maximum call stack 17471cb0ef41Sopenharmony_cisize is reached when the context is created.</p> 17481cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED"></a></p> 17491cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED</code><span><a class="mark" href="#err_crypto_custom_engine_not_supported" id="err_crypto_custom_engine_not_supported">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_custom_engine_not_supported"></a></h4> 17501cb0ef41Sopenharmony_ci<p>An OpenSSL engine was requested (for example, through the <code>clientCertEngine</code> or 17511cb0ef41Sopenharmony_ci<code>privateKeyEngine</code> TLS options) that is not supported by the version of OpenSSL 17521cb0ef41Sopenharmony_cibeing used, likely due to the compile-time flag <code>OPENSSL_NO_ENGINE</code>.</p> 17531cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_ECDH_INVALID_FORMAT"></a></p> 17541cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_ECDH_INVALID_FORMAT</code><span><a class="mark" href="#err_crypto_ecdh_invalid_format" id="err_crypto_ecdh_invalid_format">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_ecdh_invalid_format"></a></h4> 17551cb0ef41Sopenharmony_ci<p>An invalid value for the <code>format</code> argument was passed to the <code>crypto.ECDH()</code> 17561cb0ef41Sopenharmony_ciclass <code>getPublicKey()</code> method.</p> 17571cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY"></a></p> 17581cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY</code><span><a class="mark" href="#err_crypto_ecdh_invalid_public_key" id="err_crypto_ecdh_invalid_public_key">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_ecdh_invalid_public_key"></a></h4> 17591cb0ef41Sopenharmony_ci<p>An invalid value for the <code>key</code> argument has been passed to the 17601cb0ef41Sopenharmony_ci<code>crypto.ECDH()</code> class <code>computeSecret()</code> method. It means that the public 17611cb0ef41Sopenharmony_cikey lies outside of the elliptic curve.</p> 17621cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_ENGINE_UNKNOWN"></a></p> 17631cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_ENGINE_UNKNOWN</code><span><a class="mark" href="#err_crypto_engine_unknown" id="err_crypto_engine_unknown">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_engine_unknown"></a></h4> 17641cb0ef41Sopenharmony_ci<p>An invalid crypto engine identifier was passed to 17651cb0ef41Sopenharmony_ci<a href="crypto.html#cryptosetengineengine-flags"><code>require('node:crypto').setEngine()</code></a>.</p> 17661cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_FIPS_FORCED"></a></p> 17671cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_FIPS_FORCED</code><span><a class="mark" href="#err_crypto_fips_forced" id="err_crypto_fips_forced">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_fips_forced"></a></h4> 17681cb0ef41Sopenharmony_ci<p>The <a href="cli.html#--force-fips"><code>--force-fips</code></a> command-line argument was used but there was an attempt 17691cb0ef41Sopenharmony_cito enable or disable FIPS mode in the <code>node:crypto</code> module.</p> 17701cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_FIPS_UNAVAILABLE"></a></p> 17711cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_FIPS_UNAVAILABLE</code><span><a class="mark" href="#err_crypto_fips_unavailable" id="err_crypto_fips_unavailable">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_fips_unavailable"></a></h4> 17721cb0ef41Sopenharmony_ci<p>An attempt was made to enable or disable FIPS mode, but FIPS mode was not 17731cb0ef41Sopenharmony_ciavailable.</p> 17741cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_HASH_FINALIZED"></a></p> 17751cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_HASH_FINALIZED</code><span><a class="mark" href="#err_crypto_hash_finalized" id="err_crypto_hash_finalized">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_hash_finalized"></a></h4> 17761cb0ef41Sopenharmony_ci<p><a href="crypto.html#hashdigestencoding"><code>hash.digest()</code></a> was called multiple times. The <code>hash.digest()</code> method must 17771cb0ef41Sopenharmony_cibe called no more than one time per instance of a <code>Hash</code> object.</p> 17781cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_HASH_UPDATE_FAILED"></a></p> 17791cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_HASH_UPDATE_FAILED</code><span><a class="mark" href="#err_crypto_hash_update_failed" id="err_crypto_hash_update_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_hash_update_failed"></a></h4> 17801cb0ef41Sopenharmony_ci<p><a href="crypto.html#hashupdatedata-inputencoding"><code>hash.update()</code></a> failed for any reason. This should rarely, if ever, happen.</p> 17811cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INCOMPATIBLE_KEY"></a></p> 17821cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INCOMPATIBLE_KEY</code><span><a class="mark" href="#err_crypto_incompatible_key" id="err_crypto_incompatible_key">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_incompatible_key"></a></h4> 17831cb0ef41Sopenharmony_ci<p>The given crypto keys are incompatible with the attempted operation.</p> 17841cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS"></a></p> 17851cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS</code><span><a class="mark" href="#err_crypto_incompatible_key_options" id="err_crypto_incompatible_key_options">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_incompatible_key_options"></a></h4> 17861cb0ef41Sopenharmony_ci<p>The selected public or private key encoding is incompatible with other options.</p> 17871cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INITIALIZATION_FAILED"></a></p> 17881cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INITIALIZATION_FAILED</code><span><a class="mark" href="#err_crypto_initialization_failed" id="err_crypto_initialization_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_initialization_failed"></a></h4> 17891cb0ef41Sopenharmony_ci<div class="api_metadata"> 17901cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 17911cb0ef41Sopenharmony_ci</div> 17921cb0ef41Sopenharmony_ci<p>Initialization of the crypto subsystem failed.</p> 17931cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_AUTH_TAG"></a></p> 17941cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_AUTH_TAG</code><span><a class="mark" href="#err_crypto_invalid_auth_tag" id="err_crypto_invalid_auth_tag">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_auth_tag"></a></h4> 17951cb0ef41Sopenharmony_ci<div class="api_metadata"> 17961cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 17971cb0ef41Sopenharmony_ci</div> 17981cb0ef41Sopenharmony_ci<p>An invalid authentication tag was provided.</p> 17991cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_COUNTER"></a></p> 18001cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_COUNTER</code><span><a class="mark" href="#err_crypto_invalid_counter" id="err_crypto_invalid_counter">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_counter"></a></h4> 18011cb0ef41Sopenharmony_ci<div class="api_metadata"> 18021cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18031cb0ef41Sopenharmony_ci</div> 18041cb0ef41Sopenharmony_ci<p>An invalid counter was provided for a counter-mode cipher.</p> 18051cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_CURVE"></a></p> 18061cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_CURVE</code><span><a class="mark" href="#err_crypto_invalid_curve" id="err_crypto_invalid_curve">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_curve"></a></h4> 18071cb0ef41Sopenharmony_ci<div class="api_metadata"> 18081cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18091cb0ef41Sopenharmony_ci</div> 18101cb0ef41Sopenharmony_ci<p>An invalid elliptic-curve was provided.</p> 18111cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_DIGEST"></a></p> 18121cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_DIGEST</code><span><a class="mark" href="#err_crypto_invalid_digest" id="err_crypto_invalid_digest">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_digest"></a></h4> 18131cb0ef41Sopenharmony_ci<p>An invalid <a href="crypto.html#cryptogethashes">crypto digest algorithm</a> was specified.</p> 18141cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_IV"></a></p> 18151cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_IV</code><span><a class="mark" href="#err_crypto_invalid_iv" id="err_crypto_invalid_iv">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_iv"></a></h4> 18161cb0ef41Sopenharmony_ci<div class="api_metadata"> 18171cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18181cb0ef41Sopenharmony_ci</div> 18191cb0ef41Sopenharmony_ci<p>An invalid initialization vector was provided.</p> 18201cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_JWK"></a></p> 18211cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_JWK</code><span><a class="mark" href="#err_crypto_invalid_jwk" id="err_crypto_invalid_jwk">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_jwk"></a></h4> 18221cb0ef41Sopenharmony_ci<div class="api_metadata"> 18231cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18241cb0ef41Sopenharmony_ci</div> 18251cb0ef41Sopenharmony_ci<p>An invalid JSON Web Key was provided.</p> 18261cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE"></a></p> 18271cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE</code><span><a class="mark" href="#err_crypto_invalid_key_object_type" id="err_crypto_invalid_key_object_type">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_key_object_type"></a></h4> 18281cb0ef41Sopenharmony_ci<p>The given crypto key object's type is invalid for the attempted operation.</p> 18291cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_KEYLEN"></a></p> 18301cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_KEYLEN</code><span><a class="mark" href="#err_crypto_invalid_keylen" id="err_crypto_invalid_keylen">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_keylen"></a></h4> 18311cb0ef41Sopenharmony_ci<div class="api_metadata"> 18321cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18331cb0ef41Sopenharmony_ci</div> 18341cb0ef41Sopenharmony_ci<p>An invalid key length was provided.</p> 18351cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_KEYPAIR"></a></p> 18361cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_KEYPAIR</code><span><a class="mark" href="#err_crypto_invalid_keypair" id="err_crypto_invalid_keypair">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_keypair"></a></h4> 18371cb0ef41Sopenharmony_ci<div class="api_metadata"> 18381cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18391cb0ef41Sopenharmony_ci</div> 18401cb0ef41Sopenharmony_ci<p>An invalid key pair was provided.</p> 18411cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_KEYTYPE"></a></p> 18421cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_KEYTYPE</code><span><a class="mark" href="#err_crypto_invalid_keytype" id="err_crypto_invalid_keytype">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_keytype"></a></h4> 18431cb0ef41Sopenharmony_ci<div class="api_metadata"> 18441cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18451cb0ef41Sopenharmony_ci</div> 18461cb0ef41Sopenharmony_ci<p>An invalid key type was provided.</p> 18471cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_MESSAGELEN"></a></p> 18481cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_MESSAGELEN</code><span><a class="mark" href="#err_crypto_invalid_messagelen" id="err_crypto_invalid_messagelen">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_messagelen"></a></h4> 18491cb0ef41Sopenharmony_ci<div class="api_metadata"> 18501cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18511cb0ef41Sopenharmony_ci</div> 18521cb0ef41Sopenharmony_ci<p>An invalid message length was provided.</p> 18531cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_SCRYPT_PARAMS"></a></p> 18541cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_SCRYPT_PARAMS</code><span><a class="mark" href="#err_crypto_invalid_scrypt_params" id="err_crypto_invalid_scrypt_params">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_scrypt_params"></a></h4> 18551cb0ef41Sopenharmony_ci<div class="api_metadata"> 18561cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18571cb0ef41Sopenharmony_ci</div> 18581cb0ef41Sopenharmony_ci<p>Invalid scrypt algorithm parameters were provided.</p> 18591cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_STATE"></a></p> 18601cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_STATE</code><span><a class="mark" href="#err_crypto_invalid_state" id="err_crypto_invalid_state">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_state"></a></h4> 18611cb0ef41Sopenharmony_ci<p>A crypto method was used on an object that was in an invalid state. For 18621cb0ef41Sopenharmony_ciinstance, calling <a href="crypto.html#ciphergetauthtag"><code>cipher.getAuthTag()</code></a> before calling <code>cipher.final()</code>.</p> 18631cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_INVALID_TAG_LENGTH"></a></p> 18641cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_INVALID_TAG_LENGTH</code><span><a class="mark" href="#err_crypto_invalid_tag_length" id="err_crypto_invalid_tag_length">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_invalid_tag_length"></a></h4> 18651cb0ef41Sopenharmony_ci<div class="api_metadata"> 18661cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18671cb0ef41Sopenharmony_ci</div> 18681cb0ef41Sopenharmony_ci<p>An invalid authentication tag length was provided.</p> 18691cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_JOB_INIT_FAILED"></a></p> 18701cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_JOB_INIT_FAILED</code><span><a class="mark" href="#err_crypto_job_init_failed" id="err_crypto_job_init_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_job_init_failed"></a></h4> 18711cb0ef41Sopenharmony_ci<div class="api_metadata"> 18721cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18731cb0ef41Sopenharmony_ci</div> 18741cb0ef41Sopenharmony_ci<p>Initialization of an asynchronous crypto operation failed.</p> 18751cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_JWK_UNSUPPORTED_CURVE"></a></p> 18761cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_JWK_UNSUPPORTED_CURVE</code><span><a class="mark" href="#err_crypto_jwk_unsupported_curve" id="err_crypto_jwk_unsupported_curve">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_jwk_unsupported_curve"></a></h4> 18771cb0ef41Sopenharmony_ci<p>Key's Elliptic Curve is not registered for use in the 18781cb0ef41Sopenharmony_ci<a href="https://www.iana.org/assignments/jose/jose.xhtml#web-key-elliptic-curve">JSON Web Key Elliptic Curve Registry</a>.</p> 18791cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE"></a></p> 18801cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE</code><span><a class="mark" href="#err_crypto_jwk_unsupported_key_type" id="err_crypto_jwk_unsupported_key_type">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_jwk_unsupported_key_type"></a></h4> 18811cb0ef41Sopenharmony_ci<p>Key's Asymmetric Key Type is not registered for use in the 18821cb0ef41Sopenharmony_ci<a href="https://www.iana.org/assignments/jose/jose.xhtml#web-key-types">JSON Web Key Types Registry</a>.</p> 18831cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_OPERATION_FAILED"></a></p> 18841cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_OPERATION_FAILED</code><span><a class="mark" href="#err_crypto_operation_failed" id="err_crypto_operation_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_operation_failed"></a></h4> 18851cb0ef41Sopenharmony_ci<div class="api_metadata"> 18861cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 18871cb0ef41Sopenharmony_ci</div> 18881cb0ef41Sopenharmony_ci<p>A crypto operation failed for an otherwise unspecified reason.</p> 18891cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_PBKDF2_ERROR"></a></p> 18901cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_PBKDF2_ERROR</code><span><a class="mark" href="#err_crypto_pbkdf2_error" id="err_crypto_pbkdf2_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_pbkdf2_error"></a></h4> 18911cb0ef41Sopenharmony_ci<p>The PBKDF2 algorithm failed for unspecified reasons. OpenSSL does not provide 18921cb0ef41Sopenharmony_cimore details and therefore neither does Node.js.</p> 18931cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_SCRYPT_INVALID_PARAMETER"></a></p> 18941cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_SCRYPT_INVALID_PARAMETER</code><span><a class="mark" href="#err_crypto_scrypt_invalid_parameter" id="err_crypto_scrypt_invalid_parameter">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_scrypt_invalid_parameter"></a></h4> 18951cb0ef41Sopenharmony_ci<p>One or more <a href="crypto.html#cryptoscryptpassword-salt-keylen-options-callback"><code>crypto.scrypt()</code></a> or <a href="crypto.html#cryptoscryptsyncpassword-salt-keylen-options"><code>crypto.scryptSync()</code></a> parameters are 18961cb0ef41Sopenharmony_cioutside their legal range.</p> 18971cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_SCRYPT_NOT_SUPPORTED"></a></p> 18981cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_SCRYPT_NOT_SUPPORTED</code><span><a class="mark" href="#err_crypto_scrypt_not_supported" id="err_crypto_scrypt_not_supported">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_scrypt_not_supported"></a></h4> 18991cb0ef41Sopenharmony_ci<p>Node.js was compiled without <code>scrypt</code> support. Not possible with the official 19001cb0ef41Sopenharmony_cirelease binaries but can happen with custom builds, including distro builds.</p> 19011cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_SIGN_KEY_REQUIRED"></a></p> 19021cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_SIGN_KEY_REQUIRED</code><span><a class="mark" href="#err_crypto_sign_key_required" id="err_crypto_sign_key_required">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_sign_key_required"></a></h4> 19031cb0ef41Sopenharmony_ci<p>A signing <code>key</code> was not provided to the <a href="crypto.html#signsignprivatekey-outputencoding"><code>sign.sign()</code></a> method.</p> 19041cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH"></a></p> 19051cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH</code><span><a class="mark" href="#err_crypto_timing_safe_equal_length" id="err_crypto_timing_safe_equal_length">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_timing_safe_equal_length"></a></h4> 19061cb0ef41Sopenharmony_ci<p><a href="crypto.html#cryptotimingsafeequala-b"><code>crypto.timingSafeEqual()</code></a> was called with <code>Buffer</code>, <code>TypedArray</code>, or 19071cb0ef41Sopenharmony_ci<code>DataView</code> arguments of different lengths.</p> 19081cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_UNKNOWN_CIPHER"></a></p> 19091cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_UNKNOWN_CIPHER</code><span><a class="mark" href="#err_crypto_unknown_cipher" id="err_crypto_unknown_cipher">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_unknown_cipher"></a></h4> 19101cb0ef41Sopenharmony_ci<p>An unknown cipher was specified.</p> 19111cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_UNKNOWN_DH_GROUP"></a></p> 19121cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_UNKNOWN_DH_GROUP</code><span><a class="mark" href="#err_crypto_unknown_dh_group" id="err_crypto_unknown_dh_group">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_unknown_dh_group"></a></h4> 19131cb0ef41Sopenharmony_ci<p>An unknown Diffie-Hellman group name was given. See 19141cb0ef41Sopenharmony_ci<a href="crypto.html#cryptogetdiffiehellmangroupname"><code>crypto.getDiffieHellman()</code></a> for a list of valid group names.</p> 19151cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_UNSUPPORTED_OPERATION"></a></p> 19161cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_UNSUPPORTED_OPERATION</code><span><a class="mark" href="#err_crypto_unsupported_operation" id="err_crypto_unsupported_operation">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_unsupported_operation"></a></h4> 19171cb0ef41Sopenharmony_ci<div class="api_metadata"> 19181cb0ef41Sopenharmony_ci<span>Added in: v15.0.0, v14.18.0</span> 19191cb0ef41Sopenharmony_ci</div> 19201cb0ef41Sopenharmony_ci<p>An attempt to invoke an unsupported crypto operation was made.</p> 19211cb0ef41Sopenharmony_ci<p><a id="ERR_DEBUGGER_ERROR"></a></p> 19221cb0ef41Sopenharmony_ci<h4><code>ERR_DEBUGGER_ERROR</code><span><a class="mark" href="#err_debugger_error" id="err_debugger_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_debugger_error"></a></h4> 19231cb0ef41Sopenharmony_ci<div class="api_metadata"> 19241cb0ef41Sopenharmony_ci<span>Added in: v16.4.0, v14.17.4</span> 19251cb0ef41Sopenharmony_ci</div> 19261cb0ef41Sopenharmony_ci<p>An error occurred with the <a href="debugger.html">debugger</a>.</p> 19271cb0ef41Sopenharmony_ci<p><a id="ERR_DEBUGGER_STARTUP_ERROR"></a></p> 19281cb0ef41Sopenharmony_ci<h4><code>ERR_DEBUGGER_STARTUP_ERROR</code><span><a class="mark" href="#err_debugger_startup_error" id="err_debugger_startup_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_debugger_startup_error"></a></h4> 19291cb0ef41Sopenharmony_ci<div class="api_metadata"> 19301cb0ef41Sopenharmony_ci<span>Added in: v16.4.0, v14.17.4</span> 19311cb0ef41Sopenharmony_ci</div> 19321cb0ef41Sopenharmony_ci<p>The <a href="debugger.html">debugger</a> timed out waiting for the required host/port to be free.</p> 19331cb0ef41Sopenharmony_ci<p><a id="ERR_DLOPEN_DISABLED"></a></p> 19341cb0ef41Sopenharmony_ci<h4><code>ERR_DLOPEN_DISABLED</code><span><a class="mark" href="#err_dlopen_disabled" id="err_dlopen_disabled">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_dlopen_disabled"></a></h4> 19351cb0ef41Sopenharmony_ci<div class="api_metadata"> 19361cb0ef41Sopenharmony_ci<span>Added in: v16.10.0, v14.19.0</span> 19371cb0ef41Sopenharmony_ci</div> 19381cb0ef41Sopenharmony_ci<p>Loading native addons has been disabled using <a href="cli.html#--no-addons"><code>--no-addons</code></a>.</p> 19391cb0ef41Sopenharmony_ci<p><a id="ERR_DLOPEN_FAILED"></a></p> 19401cb0ef41Sopenharmony_ci<h4><code>ERR_DLOPEN_FAILED</code><span><a class="mark" href="#err_dlopen_failed" id="err_dlopen_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_dlopen_failed"></a></h4> 19411cb0ef41Sopenharmony_ci<div class="api_metadata"> 19421cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 19431cb0ef41Sopenharmony_ci</div> 19441cb0ef41Sopenharmony_ci<p>A call to <code>process.dlopen()</code> failed.</p> 19451cb0ef41Sopenharmony_ci<p><a id="ERR_DIR_CLOSED"></a></p> 19461cb0ef41Sopenharmony_ci<h4><code>ERR_DIR_CLOSED</code><span><a class="mark" href="#err_dir_closed" id="err_dir_closed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_dir_closed"></a></h4> 19471cb0ef41Sopenharmony_ci<p>The <a href="fs.html#class-fsdir"><code>fs.Dir</code></a> was previously closed.</p> 19481cb0ef41Sopenharmony_ci<p><a id="ERR_DIR_CONCURRENT_OPERATION"></a></p> 19491cb0ef41Sopenharmony_ci<h4><code>ERR_DIR_CONCURRENT_OPERATION</code><span><a class="mark" href="#err_dir_concurrent_operation" id="err_dir_concurrent_operation">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_dir_concurrent_operation"></a></h4> 19501cb0ef41Sopenharmony_ci<div class="api_metadata"> 19511cb0ef41Sopenharmony_ci<span>Added in: v14.3.0</span> 19521cb0ef41Sopenharmony_ci</div> 19531cb0ef41Sopenharmony_ci<p>A synchronous read or close call was attempted on an <a href="fs.html#class-fsdir"><code>fs.Dir</code></a> which has 19541cb0ef41Sopenharmony_ciongoing asynchronous operations.</p> 19551cb0ef41Sopenharmony_ci<p><a id="ERR_DNS_SET_SERVERS_FAILED"></a></p> 19561cb0ef41Sopenharmony_ci<h4><code>ERR_DNS_SET_SERVERS_FAILED</code><span><a class="mark" href="#err_dns_set_servers_failed" id="err_dns_set_servers_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_dns_set_servers_failed"></a></h4> 19571cb0ef41Sopenharmony_ci<p><code>c-ares</code> failed to set the DNS server.</p> 19581cb0ef41Sopenharmony_ci<p><a id="ERR_DOMAIN_CALLBACK_NOT_AVAILABLE"></a></p> 19591cb0ef41Sopenharmony_ci<h4><code>ERR_DOMAIN_CALLBACK_NOT_AVAILABLE</code><span><a class="mark" href="#err_domain_callback_not_available" id="err_domain_callback_not_available">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_domain_callback_not_available"></a></h4> 19601cb0ef41Sopenharmony_ci<p>The <code>node:domain</code> module was not usable since it could not establish the 19611cb0ef41Sopenharmony_cirequired error handling hooks, because 19621cb0ef41Sopenharmony_ci<a href="process.html#processsetuncaughtexceptioncapturecallbackfn"><code>process.setUncaughtExceptionCaptureCallback()</code></a> had been called at an 19631cb0ef41Sopenharmony_ciearlier point in time.</p> 19641cb0ef41Sopenharmony_ci<p><a id="ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE"></a></p> 19651cb0ef41Sopenharmony_ci<h4><code>ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE</code><span><a class="mark" href="#err_domain_cannot_set_uncaught_exception_capture" id="err_domain_cannot_set_uncaught_exception_capture">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_domain_cannot_set_uncaught_exception_capture"></a></h4> 19661cb0ef41Sopenharmony_ci<p><a href="process.html#processsetuncaughtexceptioncapturecallbackfn"><code>process.setUncaughtExceptionCaptureCallback()</code></a> could not be called 19671cb0ef41Sopenharmony_cibecause the <code>node:domain</code> module has been loaded at an earlier point in time.</p> 19681cb0ef41Sopenharmony_ci<p>The stack trace is extended to include the point in time at which the 19691cb0ef41Sopenharmony_ci<code>node:domain</code> module had been loaded.</p> 19701cb0ef41Sopenharmony_ci<p><a id="ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION"></a></p> 19711cb0ef41Sopenharmony_ci<h4><code>ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION</code><span><a class="mark" href="#err_duplicate_startup_snapshot_main_function" id="err_duplicate_startup_snapshot_main_function">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_duplicate_startup_snapshot_main_function"></a></h4> 19721cb0ef41Sopenharmony_ci<p><a href="v8.html#v8startupsnapshotsetdeserializemainfunctioncallback-data"><code>v8.startupSnapshot.setDeserializeMainFunction()</code></a> could not be called 19731cb0ef41Sopenharmony_cibecause it had already been called before.</p> 19741cb0ef41Sopenharmony_ci<p><a id="ERR_ENCODING_INVALID_ENCODED_DATA"></a></p> 19751cb0ef41Sopenharmony_ci<h4><code>ERR_ENCODING_INVALID_ENCODED_DATA</code><span><a class="mark" href="#err_encoding_invalid_encoded_data" id="err_encoding_invalid_encoded_data">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_encoding_invalid_encoded_data"></a></h4> 19761cb0ef41Sopenharmony_ci<p>Data provided to <code>TextDecoder()</code> API was invalid according to the encoding 19771cb0ef41Sopenharmony_ciprovided.</p> 19781cb0ef41Sopenharmony_ci<p><a id="ERR_ENCODING_NOT_SUPPORTED"></a></p> 19791cb0ef41Sopenharmony_ci<h4><code>ERR_ENCODING_NOT_SUPPORTED</code><span><a class="mark" href="#err_encoding_not_supported" id="err_encoding_not_supported">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_encoding_not_supported"></a></h4> 19801cb0ef41Sopenharmony_ci<p>Encoding provided to <code>TextDecoder()</code> API was not one of the 19811cb0ef41Sopenharmony_ci<a href="util.html#whatwg-supported-encodings">WHATWG Supported Encodings</a>.</p> 19821cb0ef41Sopenharmony_ci<p><a id="ERR_EVAL_ESM_CANNOT_PRINT"></a></p> 19831cb0ef41Sopenharmony_ci<h4><code>ERR_EVAL_ESM_CANNOT_PRINT</code><span><a class="mark" href="#err_eval_esm_cannot_print" id="err_eval_esm_cannot_print">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_eval_esm_cannot_print"></a></h4> 19841cb0ef41Sopenharmony_ci<p><code>--print</code> cannot be used with ESM input.</p> 19851cb0ef41Sopenharmony_ci<p><a id="ERR_EVENT_RECURSION"></a></p> 19861cb0ef41Sopenharmony_ci<h4><code>ERR_EVENT_RECURSION</code><span><a class="mark" href="#err_event_recursion" id="err_event_recursion">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_event_recursion"></a></h4> 19871cb0ef41Sopenharmony_ci<p>Thrown when an attempt is made to recursively dispatch an event on <code>EventTarget</code>.</p> 19881cb0ef41Sopenharmony_ci<p><a id="ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE"></a></p> 19891cb0ef41Sopenharmony_ci<h4><code>ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE</code><span><a class="mark" href="#err_execution_environment_not_available" id="err_execution_environment_not_available">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_execution_environment_not_available"></a></h4> 19901cb0ef41Sopenharmony_ci<p>The JS execution context is not associated with a Node.js environment. 19911cb0ef41Sopenharmony_ciThis may occur when Node.js is used as an embedded library and some hooks 19921cb0ef41Sopenharmony_cifor the JS engine are not set up properly.</p> 19931cb0ef41Sopenharmony_ci<p><a id="ERR_FALSY_VALUE_REJECTION"></a></p> 19941cb0ef41Sopenharmony_ci<h4><code>ERR_FALSY_VALUE_REJECTION</code><span><a class="mark" href="#err_falsy_value_rejection" id="err_falsy_value_rejection">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_falsy_value_rejection"></a></h4> 19951cb0ef41Sopenharmony_ci<p>A <code>Promise</code> that was callbackified via <code>util.callbackify()</code> was rejected with a 19961cb0ef41Sopenharmony_cifalsy value.</p> 19971cb0ef41Sopenharmony_ci<p><a id="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM"></a></p> 19981cb0ef41Sopenharmony_ci<h4><code>ERR_FEATURE_UNAVAILABLE_ON_PLATFORM</code><span><a class="mark" href="#err_feature_unavailable_on_platform" id="err_feature_unavailable_on_platform">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_feature_unavailable_on_platform"></a></h4> 19991cb0ef41Sopenharmony_ci<div class="api_metadata"> 20001cb0ef41Sopenharmony_ci<span>Added in: v14.0.0</span> 20011cb0ef41Sopenharmony_ci</div> 20021cb0ef41Sopenharmony_ci<p>Used when a feature that is not available 20031cb0ef41Sopenharmony_cito the current platform which is running Node.js is used.</p> 20041cb0ef41Sopenharmony_ci<p><a id="ERR_FS_CP_DIR_TO_NON_DIR"></a></p> 20051cb0ef41Sopenharmony_ci<h4><code>ERR_FS_CP_DIR_TO_NON_DIR</code><span><a class="mark" href="#err_fs_cp_dir_to_non_dir" id="err_fs_cp_dir_to_non_dir">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_fs_cp_dir_to_non_dir"></a></h4> 20061cb0ef41Sopenharmony_ci<!-- 20071cb0ef41Sopenharmony_ciadded: v16.7.0 20081cb0ef41Sopenharmony_ci--> 20091cb0ef41Sopenharmony_ci<p>An attempt was made to copy a directory to a non-directory (file, symlink, 20101cb0ef41Sopenharmony_cietc.) using <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p> 20111cb0ef41Sopenharmony_ci<p><a id="ERR_FS_CP_EEXIST"></a></p> 20121cb0ef41Sopenharmony_ci<h4><code>ERR_FS_CP_EEXIST</code><span><a class="mark" href="#err_fs_cp_eexist" id="err_fs_cp_eexist">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_fs_cp_eexist"></a></h4> 20131cb0ef41Sopenharmony_ci<!-- 20141cb0ef41Sopenharmony_ciadded: v16.7.0 20151cb0ef41Sopenharmony_ci--> 20161cb0ef41Sopenharmony_ci<p>An attempt was made to copy over a file that already existed with 20171cb0ef41Sopenharmony_ci<a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>, with the <code>force</code> and <code>errorOnExist</code> set to <code>true</code>.</p> 20181cb0ef41Sopenharmony_ci<p><a id="ERR_FS_CP_EINVAL"></a></p> 20191cb0ef41Sopenharmony_ci<h4><code>ERR_FS_CP_EINVAL</code><span><a class="mark" href="#err_fs_cp_einval" id="err_fs_cp_einval">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_fs_cp_einval"></a></h4> 20201cb0ef41Sopenharmony_ci<!-- 20211cb0ef41Sopenharmony_ciadded: v16.7.0 20221cb0ef41Sopenharmony_ci--> 20231cb0ef41Sopenharmony_ci<p>When using <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>, <code>src</code> or <code>dest</code> pointed to an invalid path.</p> 20241cb0ef41Sopenharmony_ci<p><a id="ERR_FS_CP_FIFO_PIPE"></a></p> 20251cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP_BODY_NOT_ALLOWED</code><span><a class="mark" href="#err_http_body_not_allowed" id="err_http_body_not_allowed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http_body_not_allowed"></a></h4> 20261cb0ef41Sopenharmony_ci<p>An error is thrown when writing to an HTTP response which does not allow 20271cb0ef41Sopenharmony_cicontents. <a id="ERR_HTTP_BODY_NOT_ALLOWED"></a></p> 20281cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP_CONTENT_LENGTH_MISMATCH</code><span><a class="mark" href="#err_http_content_length_mismatch" id="err_http_content_length_mismatch">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http_content_length_mismatch"></a></h4> 20291cb0ef41Sopenharmony_ci<p>Response body size doesn't match with the specified content-length header value.</p> 20301cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP_CONTENT_LENGTH_MISMATCH"></a></p> 20311cb0ef41Sopenharmony_ci<h4><code>ERR_FS_CP_FIFO_PIPE</code><span><a class="mark" href="#err_fs_cp_fifo_pipe" id="err_fs_cp_fifo_pipe">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_fs_cp_fifo_pipe"></a></h4> 20321cb0ef41Sopenharmony_ci<!-- 20331cb0ef41Sopenharmony_ciadded: v16.7.0 20341cb0ef41Sopenharmony_ci--> 20351cb0ef41Sopenharmony_ci<p>An attempt was made to copy a named pipe with <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p> 20361cb0ef41Sopenharmony_ci<p><a id="ERR_FS_CP_NON_DIR_TO_DIR"></a></p> 20371cb0ef41Sopenharmony_ci<h4><code>ERR_FS_CP_NON_DIR_TO_DIR</code><span><a class="mark" href="#err_fs_cp_non_dir_to_dir" id="err_fs_cp_non_dir_to_dir">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_fs_cp_non_dir_to_dir"></a></h4> 20381cb0ef41Sopenharmony_ci<!-- 20391cb0ef41Sopenharmony_ciadded: v16.7.0 20401cb0ef41Sopenharmony_ci--> 20411cb0ef41Sopenharmony_ci<p>An attempt was made to copy a non-directory (file, symlink, etc.) to a directory 20421cb0ef41Sopenharmony_ciusing <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p> 20431cb0ef41Sopenharmony_ci<p><a id="ERR_FS_CP_SOCKET"></a></p> 20441cb0ef41Sopenharmony_ci<h4><code>ERR_FS_CP_SOCKET</code><span><a class="mark" href="#err_fs_cp_socket" id="err_fs_cp_socket">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_fs_cp_socket"></a></h4> 20451cb0ef41Sopenharmony_ci<!-- 20461cb0ef41Sopenharmony_ciadded: v16.7.0 20471cb0ef41Sopenharmony_ci--> 20481cb0ef41Sopenharmony_ci<p>An attempt was made to copy to a socket with <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p> 20491cb0ef41Sopenharmony_ci<p><a id="ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY"></a></p> 20501cb0ef41Sopenharmony_ci<h4><code>ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY</code><span><a class="mark" href="#err_fs_cp_symlink_to_subdirectory" id="err_fs_cp_symlink_to_subdirectory">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_fs_cp_symlink_to_subdirectory"></a></h4> 20511cb0ef41Sopenharmony_ci<!-- 20521cb0ef41Sopenharmony_ciadded: v16.7.0 20531cb0ef41Sopenharmony_ci--> 20541cb0ef41Sopenharmony_ci<p>When using <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>, a symlink in <code>dest</code> pointed to a subdirectory 20551cb0ef41Sopenharmony_ciof <code>src</code>.</p> 20561cb0ef41Sopenharmony_ci<p><a id="ERR_FS_CP_UNKNOWN"></a></p> 20571cb0ef41Sopenharmony_ci<h4><code>ERR_FS_CP_UNKNOWN</code><span><a class="mark" href="#err_fs_cp_unknown" id="err_fs_cp_unknown">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_fs_cp_unknown"></a></h4> 20581cb0ef41Sopenharmony_ci<!-- 20591cb0ef41Sopenharmony_ciadded: v16.7.0 20601cb0ef41Sopenharmony_ci--> 20611cb0ef41Sopenharmony_ci<p>An attempt was made to copy to an unknown file type with <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p> 20621cb0ef41Sopenharmony_ci<p><a id="ERR_FS_EISDIR"></a></p> 20631cb0ef41Sopenharmony_ci<h4><code>ERR_FS_EISDIR</code><span><a class="mark" href="#err_fs_eisdir" id="err_fs_eisdir">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_fs_eisdir"></a></h4> 20641cb0ef41Sopenharmony_ci<p>Path is a directory.</p> 20651cb0ef41Sopenharmony_ci<p><a id="ERR_FS_FILE_TOO_LARGE"></a></p> 20661cb0ef41Sopenharmony_ci<h4><code>ERR_FS_FILE_TOO_LARGE</code><span><a class="mark" href="#err_fs_file_too_large" id="err_fs_file_too_large">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_fs_file_too_large"></a></h4> 20671cb0ef41Sopenharmony_ci<p>An attempt has been made to read a file whose size is larger than the maximum 20681cb0ef41Sopenharmony_ciallowed size for a <code>Buffer</code>.</p> 20691cb0ef41Sopenharmony_ci<p><a id="ERR_FS_INVALID_SYMLINK_TYPE"></a></p> 20701cb0ef41Sopenharmony_ci<h4><code>ERR_FS_INVALID_SYMLINK_TYPE</code><span><a class="mark" href="#err_fs_invalid_symlink_type" id="err_fs_invalid_symlink_type">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_fs_invalid_symlink_type"></a></h4> 20711cb0ef41Sopenharmony_ci<p>An invalid symlink type was passed to the <a href="fs.html#fssymlinktarget-path-type-callback"><code>fs.symlink()</code></a> or 20721cb0ef41Sopenharmony_ci<a href="fs.html#fssymlinksynctarget-path-type"><code>fs.symlinkSync()</code></a> methods.</p> 20731cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP_HEADERS_SENT"></a></p> 20741cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP_HEADERS_SENT</code><span><a class="mark" href="#err_http_headers_sent" id="err_http_headers_sent">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http_headers_sent"></a></h4> 20751cb0ef41Sopenharmony_ci<p>An attempt was made to add more headers after the headers had already been sent.</p> 20761cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP_INVALID_HEADER_VALUE"></a></p> 20771cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP_INVALID_HEADER_VALUE</code><span><a class="mark" href="#err_http_invalid_header_value" id="err_http_invalid_header_value">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http_invalid_header_value"></a></h4> 20781cb0ef41Sopenharmony_ci<p>An invalid HTTP header value was specified.</p> 20791cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP_INVALID_STATUS_CODE"></a></p> 20801cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP_INVALID_STATUS_CODE</code><span><a class="mark" href="#err_http_invalid_status_code" id="err_http_invalid_status_code">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http_invalid_status_code"></a></h4> 20811cb0ef41Sopenharmony_ci<p>Status code was outside the regular status code range (100-999).</p> 20821cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP_REQUEST_TIMEOUT"></a></p> 20831cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP_REQUEST_TIMEOUT</code><span><a class="mark" href="#err_http_request_timeout" id="err_http_request_timeout">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http_request_timeout"></a></h4> 20841cb0ef41Sopenharmony_ci<p>The client has not sent the entire request within the allowed time.</p> 20851cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP_SOCKET_ASSIGNED"></a></p> 20861cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP_SOCKET_ASSIGNED</code><span><a class="mark" href="#err_http_socket_assigned" id="err_http_socket_assigned">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http_socket_assigned"></a></h4> 20871cb0ef41Sopenharmony_ci<p>The given <a href="http.html#class-httpserverresponse"><code>ServerResponse</code></a> was already assigned a socket.</p> 20881cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP_SOCKET_ENCODING"></a></p> 20891cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP_SOCKET_ENCODING</code><span><a class="mark" href="#err_http_socket_encoding" id="err_http_socket_encoding">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http_socket_encoding"></a></h4> 20901cb0ef41Sopenharmony_ci<p>Changing the socket encoding is not allowed per <a href="https://tools.ietf.org/html/rfc7230#section-3">RFC 7230 Section 3</a>.</p> 20911cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP_TRAILER_INVALID"></a></p> 20921cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP_TRAILER_INVALID</code><span><a class="mark" href="#err_http_trailer_invalid" id="err_http_trailer_invalid">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http_trailer_invalid"></a></h4> 20931cb0ef41Sopenharmony_ci<p>The <code>Trailer</code> header was set even though the transfer encoding does not support 20941cb0ef41Sopenharmony_cithat.</p> 20951cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_ALTSVC_INVALID_ORIGIN"></a></p> 20961cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_ALTSVC_INVALID_ORIGIN</code><span><a class="mark" href="#err_http2_altsvc_invalid_origin" id="err_http2_altsvc_invalid_origin">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_altsvc_invalid_origin"></a></h4> 20971cb0ef41Sopenharmony_ci<p>HTTP/2 ALTSVC frames require a valid origin.</p> 20981cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_ALTSVC_LENGTH"></a></p> 20991cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_ALTSVC_LENGTH</code><span><a class="mark" href="#err_http2_altsvc_length" id="err_http2_altsvc_length">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_altsvc_length"></a></h4> 21001cb0ef41Sopenharmony_ci<p>HTTP/2 ALTSVC frames are limited to a maximum of 16,382 payload bytes.</p> 21011cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_CONNECT_AUTHORITY"></a></p> 21021cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_CONNECT_AUTHORITY</code><span><a class="mark" href="#err_http2_connect_authority" id="err_http2_connect_authority">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_connect_authority"></a></h4> 21031cb0ef41Sopenharmony_ci<p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:authority</code> pseudo-header 21041cb0ef41Sopenharmony_ciis required.</p> 21051cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_CONNECT_PATH"></a></p> 21061cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_CONNECT_PATH</code><span><a class="mark" href="#err_http2_connect_path" id="err_http2_connect_path">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_connect_path"></a></h4> 21071cb0ef41Sopenharmony_ci<p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:path</code> pseudo-header is 21081cb0ef41Sopenharmony_ciforbidden.</p> 21091cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_CONNECT_SCHEME"></a></p> 21101cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_CONNECT_SCHEME</code><span><a class="mark" href="#err_http2_connect_scheme" id="err_http2_connect_scheme">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_connect_scheme"></a></h4> 21111cb0ef41Sopenharmony_ci<p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:scheme</code> pseudo-header is 21121cb0ef41Sopenharmony_ciforbidden.</p> 21131cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_ERROR"></a></p> 21141cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_ERROR</code><span><a class="mark" href="#err_http2_error" id="err_http2_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_error"></a></h4> 21151cb0ef41Sopenharmony_ci<p>A non-specific HTTP/2 error has occurred.</p> 21161cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_GOAWAY_SESSION"></a></p> 21171cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_GOAWAY_SESSION</code><span><a class="mark" href="#err_http2_goaway_session" id="err_http2_goaway_session">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_goaway_session"></a></h4> 21181cb0ef41Sopenharmony_ci<p>New HTTP/2 Streams may not be opened after the <code>Http2Session</code> has received a 21191cb0ef41Sopenharmony_ci<code>GOAWAY</code> frame from the connected peer.</p> 21201cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_HEADER_SINGLE_VALUE"></a></p> 21211cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_HEADER_SINGLE_VALUE</code><span><a class="mark" href="#err_http2_header_single_value" id="err_http2_header_single_value">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_header_single_value"></a></h4> 21221cb0ef41Sopenharmony_ci<p>Multiple values were provided for an HTTP/2 header field that was required to 21231cb0ef41Sopenharmony_cihave only a single value.</p> 21241cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_HEADERS_AFTER_RESPOND"></a></p> 21251cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_HEADERS_AFTER_RESPOND</code><span><a class="mark" href="#err_http2_headers_after_respond" id="err_http2_headers_after_respond">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_headers_after_respond"></a></h4> 21261cb0ef41Sopenharmony_ci<p>An additional headers was specified after an HTTP/2 response was initiated.</p> 21271cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_HEADERS_SENT"></a></p> 21281cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_HEADERS_SENT</code><span><a class="mark" href="#err_http2_headers_sent" id="err_http2_headers_sent">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_headers_sent"></a></h4> 21291cb0ef41Sopenharmony_ci<p>An attempt was made to send multiple response headers.</p> 21301cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_INFO_STATUS_NOT_ALLOWED"></a></p> 21311cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_INFO_STATUS_NOT_ALLOWED</code><span><a class="mark" href="#err_http2_info_status_not_allowed" id="err_http2_info_status_not_allowed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_info_status_not_allowed"></a></h4> 21321cb0ef41Sopenharmony_ci<p>Informational HTTP status codes (<code>1xx</code>) may not be set as the response status 21331cb0ef41Sopenharmony_cicode on HTTP/2 responses.</p> 21341cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_INVALID_CONNECTION_HEADERS"></a></p> 21351cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_INVALID_CONNECTION_HEADERS</code><span><a class="mark" href="#err_http2_invalid_connection_headers" id="err_http2_invalid_connection_headers">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_invalid_connection_headers"></a></h4> 21361cb0ef41Sopenharmony_ci<p>HTTP/1 connection specific headers are forbidden to be used in HTTP/2 21371cb0ef41Sopenharmony_cirequests and responses.</p> 21381cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_INVALID_HEADER_VALUE"></a></p> 21391cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_INVALID_HEADER_VALUE</code><span><a class="mark" href="#err_http2_invalid_header_value" id="err_http2_invalid_header_value">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_invalid_header_value"></a></h4> 21401cb0ef41Sopenharmony_ci<p>An invalid HTTP/2 header value was specified.</p> 21411cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_INVALID_INFO_STATUS"></a></p> 21421cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_INVALID_INFO_STATUS</code><span><a class="mark" href="#err_http2_invalid_info_status" id="err_http2_invalid_info_status">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_invalid_info_status"></a></h4> 21431cb0ef41Sopenharmony_ci<p>An invalid HTTP informational status code has been specified. Informational 21441cb0ef41Sopenharmony_cistatus codes must be an integer between <code>100</code> and <code>199</code> (inclusive).</p> 21451cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_INVALID_ORIGIN"></a></p> 21461cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_INVALID_ORIGIN</code><span><a class="mark" href="#err_http2_invalid_origin" id="err_http2_invalid_origin">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_invalid_origin"></a></h4> 21471cb0ef41Sopenharmony_ci<p>HTTP/2 <code>ORIGIN</code> frames require a valid origin.</p> 21481cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH"></a></p> 21491cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH</code><span><a class="mark" href="#err_http2_invalid_packed_settings_length" id="err_http2_invalid_packed_settings_length">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_invalid_packed_settings_length"></a></h4> 21501cb0ef41Sopenharmony_ci<p>Input <code>Buffer</code> and <code>Uint8Array</code> instances passed to the 21511cb0ef41Sopenharmony_ci<code>http2.getUnpackedSettings()</code> API must have a length that is a multiple of 21521cb0ef41Sopenharmony_cisix.</p> 21531cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_INVALID_PSEUDOHEADER"></a></p> 21541cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_INVALID_PSEUDOHEADER</code><span><a class="mark" href="#err_http2_invalid_pseudoheader" id="err_http2_invalid_pseudoheader">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_invalid_pseudoheader"></a></h4> 21551cb0ef41Sopenharmony_ci<p>Only valid HTTP/2 pseudoheaders (<code>:status</code>, <code>:path</code>, <code>:authority</code>, <code>:scheme</code>, 21561cb0ef41Sopenharmony_ciand <code>:method</code>) may be used.</p> 21571cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_INVALID_SESSION"></a></p> 21581cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_INVALID_SESSION</code><span><a class="mark" href="#err_http2_invalid_session" id="err_http2_invalid_session">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_invalid_session"></a></h4> 21591cb0ef41Sopenharmony_ci<p>An action was performed on an <code>Http2Session</code> object that had already been 21601cb0ef41Sopenharmony_cidestroyed.</p> 21611cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_INVALID_SETTING_VALUE"></a></p> 21621cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_INVALID_SETTING_VALUE</code><span><a class="mark" href="#err_http2_invalid_setting_value" id="err_http2_invalid_setting_value">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_invalid_setting_value"></a></h4> 21631cb0ef41Sopenharmony_ci<p>An invalid value has been specified for an HTTP/2 setting.</p> 21641cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_INVALID_STREAM"></a></p> 21651cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_INVALID_STREAM</code><span><a class="mark" href="#err_http2_invalid_stream" id="err_http2_invalid_stream">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_invalid_stream"></a></h4> 21661cb0ef41Sopenharmony_ci<p>An operation was performed on a stream that had already been destroyed.</p> 21671cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_MAX_PENDING_SETTINGS_ACK"></a></p> 21681cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_MAX_PENDING_SETTINGS_ACK</code><span><a class="mark" href="#err_http2_max_pending_settings_ack" id="err_http2_max_pending_settings_ack">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_max_pending_settings_ack"></a></h4> 21691cb0ef41Sopenharmony_ci<p>Whenever an HTTP/2 <code>SETTINGS</code> frame is sent to a connected peer, the peer is 21701cb0ef41Sopenharmony_cirequired to send an acknowledgment that it has received and applied the new 21711cb0ef41Sopenharmony_ci<code>SETTINGS</code>. By default, a maximum number of unacknowledged <code>SETTINGS</code> frames may 21721cb0ef41Sopenharmony_cibe sent at any given time. This error code is used when that limit has been 21731cb0ef41Sopenharmony_cireached.</p> 21741cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_NESTED_PUSH"></a></p> 21751cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_NESTED_PUSH</code><span><a class="mark" href="#err_http2_nested_push" id="err_http2_nested_push">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_nested_push"></a></h4> 21761cb0ef41Sopenharmony_ci<p>An attempt was made to initiate a new push stream from within a push stream. 21771cb0ef41Sopenharmony_ciNested push streams are not permitted.</p> 21781cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_NO_MEM"></a></p> 21791cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_NO_MEM</code><span><a class="mark" href="#err_http2_no_mem" id="err_http2_no_mem">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_no_mem"></a></h4> 21801cb0ef41Sopenharmony_ci<p>Out of memory when using the <code>http2session.setLocalWindowSize(windowSize)</code> API.</p> 21811cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_NO_SOCKET_MANIPULATION"></a></p> 21821cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_NO_SOCKET_MANIPULATION</code><span><a class="mark" href="#err_http2_no_socket_manipulation" id="err_http2_no_socket_manipulation">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_no_socket_manipulation"></a></h4> 21831cb0ef41Sopenharmony_ci<p>An attempt was made to directly manipulate (read, write, pause, resume, etc.) a 21841cb0ef41Sopenharmony_cisocket attached to an <code>Http2Session</code>.</p> 21851cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_ORIGIN_LENGTH"></a></p> 21861cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_ORIGIN_LENGTH</code><span><a class="mark" href="#err_http2_origin_length" id="err_http2_origin_length">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_origin_length"></a></h4> 21871cb0ef41Sopenharmony_ci<p>HTTP/2 <code>ORIGIN</code> frames are limited to a length of 16382 bytes.</p> 21881cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_OUT_OF_STREAMS"></a></p> 21891cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_OUT_OF_STREAMS</code><span><a class="mark" href="#err_http2_out_of_streams" id="err_http2_out_of_streams">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_out_of_streams"></a></h4> 21901cb0ef41Sopenharmony_ci<p>The number of streams created on a single HTTP/2 session reached the maximum 21911cb0ef41Sopenharmony_cilimit.</p> 21921cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_PAYLOAD_FORBIDDEN"></a></p> 21931cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_PAYLOAD_FORBIDDEN</code><span><a class="mark" href="#err_http2_payload_forbidden" id="err_http2_payload_forbidden">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_payload_forbidden"></a></h4> 21941cb0ef41Sopenharmony_ci<p>A message payload was specified for an HTTP response code for which a payload is 21951cb0ef41Sopenharmony_ciforbidden.</p> 21961cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_PING_CANCEL"></a></p> 21971cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_PING_CANCEL</code><span><a class="mark" href="#err_http2_ping_cancel" id="err_http2_ping_cancel">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_ping_cancel"></a></h4> 21981cb0ef41Sopenharmony_ci<p>An HTTP/2 ping was canceled.</p> 21991cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_PING_LENGTH"></a></p> 22001cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_PING_LENGTH</code><span><a class="mark" href="#err_http2_ping_length" id="err_http2_ping_length">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_ping_length"></a></h4> 22011cb0ef41Sopenharmony_ci<p>HTTP/2 ping payloads must be exactly 8 bytes in length.</p> 22021cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED"></a></p> 22031cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED</code><span><a class="mark" href="#err_http2_pseudoheader_not_allowed" id="err_http2_pseudoheader_not_allowed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_pseudoheader_not_allowed"></a></h4> 22041cb0ef41Sopenharmony_ci<p>An HTTP/2 pseudo-header has been used inappropriately. Pseudo-headers are header 22051cb0ef41Sopenharmony_cikey names that begin with the <code>:</code> prefix.</p> 22061cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_PUSH_DISABLED"></a></p> 22071cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_PUSH_DISABLED</code><span><a class="mark" href="#err_http2_push_disabled" id="err_http2_push_disabled">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_push_disabled"></a></h4> 22081cb0ef41Sopenharmony_ci<p>An attempt was made to create a push stream, which had been disabled by the 22091cb0ef41Sopenharmony_ciclient.</p> 22101cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_SEND_FILE"></a></p> 22111cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_SEND_FILE</code><span><a class="mark" href="#err_http2_send_file" id="err_http2_send_file">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_send_file"></a></h4> 22121cb0ef41Sopenharmony_ci<p>An attempt was made to use the <code>Http2Stream.prototype.responseWithFile()</code> API to 22131cb0ef41Sopenharmony_cisend a directory.</p> 22141cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_SEND_FILE_NOSEEK"></a></p> 22151cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_SEND_FILE_NOSEEK</code><span><a class="mark" href="#err_http2_send_file_noseek" id="err_http2_send_file_noseek">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_send_file_noseek"></a></h4> 22161cb0ef41Sopenharmony_ci<p>An attempt was made to use the <code>Http2Stream.prototype.responseWithFile()</code> API to 22171cb0ef41Sopenharmony_cisend something other than a regular file, but <code>offset</code> or <code>length</code> options were 22181cb0ef41Sopenharmony_ciprovided.</p> 22191cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_SESSION_ERROR"></a></p> 22201cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_SESSION_ERROR</code><span><a class="mark" href="#err_http2_session_error" id="err_http2_session_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_session_error"></a></h4> 22211cb0ef41Sopenharmony_ci<p>The <code>Http2Session</code> closed with a non-zero error code.</p> 22221cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_SETTINGS_CANCEL"></a></p> 22231cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_SETTINGS_CANCEL</code><span><a class="mark" href="#err_http2_settings_cancel" id="err_http2_settings_cancel">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_settings_cancel"></a></h4> 22241cb0ef41Sopenharmony_ci<p>The <code>Http2Session</code> settings canceled.</p> 22251cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_SOCKET_BOUND"></a></p> 22261cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_SOCKET_BOUND</code><span><a class="mark" href="#err_http2_socket_bound" id="err_http2_socket_bound">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_socket_bound"></a></h4> 22271cb0ef41Sopenharmony_ci<p>An attempt was made to connect a <code>Http2Session</code> object to a <code>net.Socket</code> or 22281cb0ef41Sopenharmony_ci<code>tls.TLSSocket</code> that had already been bound to another <code>Http2Session</code> object.</p> 22291cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_SOCKET_UNBOUND"></a></p> 22301cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_SOCKET_UNBOUND</code><span><a class="mark" href="#err_http2_socket_unbound" id="err_http2_socket_unbound">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_socket_unbound"></a></h4> 22311cb0ef41Sopenharmony_ci<p>An attempt was made to use the <code>socket</code> property of an <code>Http2Session</code> that 22321cb0ef41Sopenharmony_cihas already been closed.</p> 22331cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_STATUS_101"></a></p> 22341cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_STATUS_101</code><span><a class="mark" href="#err_http2_status_101" id="err_http2_status_101">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_status_101"></a></h4> 22351cb0ef41Sopenharmony_ci<p>Use of the <code>101</code> Informational status code is forbidden in HTTP/2.</p> 22361cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_STATUS_INVALID"></a></p> 22371cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_STATUS_INVALID</code><span><a class="mark" href="#err_http2_status_invalid" id="err_http2_status_invalid">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_status_invalid"></a></h4> 22381cb0ef41Sopenharmony_ci<p>An invalid HTTP status code has been specified. Status codes must be an integer 22391cb0ef41Sopenharmony_cibetween <code>100</code> and <code>599</code> (inclusive).</p> 22401cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_STREAM_CANCEL"></a></p> 22411cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_STREAM_CANCEL</code><span><a class="mark" href="#err_http2_stream_cancel" id="err_http2_stream_cancel">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_stream_cancel"></a></h4> 22421cb0ef41Sopenharmony_ci<p>An <code>Http2Stream</code> was destroyed before any data was transmitted to the connected 22431cb0ef41Sopenharmony_cipeer.</p> 22441cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_STREAM_ERROR"></a></p> 22451cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_STREAM_ERROR</code><span><a class="mark" href="#err_http2_stream_error" id="err_http2_stream_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_stream_error"></a></h4> 22461cb0ef41Sopenharmony_ci<p>A non-zero error code was been specified in an <code>RST_STREAM</code> frame.</p> 22471cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_STREAM_SELF_DEPENDENCY"></a></p> 22481cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_STREAM_SELF_DEPENDENCY</code><span><a class="mark" href="#err_http2_stream_self_dependency" id="err_http2_stream_self_dependency">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_stream_self_dependency"></a></h4> 22491cb0ef41Sopenharmony_ci<p>When setting the priority for an HTTP/2 stream, the stream may be marked as 22501cb0ef41Sopenharmony_cia dependency for a parent stream. This error code is used when an attempt is 22511cb0ef41Sopenharmony_cimade to mark a stream and dependent of itself.</p> 22521cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_TOO_MANY_INVALID_FRAMES"></a></p> 22531cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_TOO_MANY_INVALID_FRAMES</code><span><a class="mark" href="#err_http2_too_many_invalid_frames" id="err_http2_too_many_invalid_frames">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_too_many_invalid_frames"></a></h4> 22541cb0ef41Sopenharmony_ci<!-- 22551cb0ef41Sopenharmony_ciadded: v15.14.0 22561cb0ef41Sopenharmony_ci--> 22571cb0ef41Sopenharmony_ci<p>The limit of acceptable invalid HTTP/2 protocol frames sent by the peer, 22581cb0ef41Sopenharmony_cias specified through the <code>maxSessionInvalidFrames</code> option, has been exceeded.</p> 22591cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_TRAILERS_ALREADY_SENT"></a></p> 22601cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_TRAILERS_ALREADY_SENT</code><span><a class="mark" href="#err_http2_trailers_already_sent" id="err_http2_trailers_already_sent">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_trailers_already_sent"></a></h4> 22611cb0ef41Sopenharmony_ci<p>Trailing headers have already been sent on the <code>Http2Stream</code>.</p> 22621cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_TRAILERS_NOT_READY"></a></p> 22631cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_TRAILERS_NOT_READY</code><span><a class="mark" href="#err_http2_trailers_not_ready" id="err_http2_trailers_not_ready">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_trailers_not_ready"></a></h4> 22641cb0ef41Sopenharmony_ci<p>The <code>http2stream.sendTrailers()</code> method cannot be called until after the 22651cb0ef41Sopenharmony_ci<code>'wantTrailers'</code> event is emitted on an <code>Http2Stream</code> object. The 22661cb0ef41Sopenharmony_ci<code>'wantTrailers'</code> event will only be emitted if the <code>waitForTrailers</code> option 22671cb0ef41Sopenharmony_ciis set for the <code>Http2Stream</code>.</p> 22681cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_UNSUPPORTED_PROTOCOL"></a></p> 22691cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_UNSUPPORTED_PROTOCOL</code><span><a class="mark" href="#err_http2_unsupported_protocol" id="err_http2_unsupported_protocol">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_unsupported_protocol"></a></h4> 22701cb0ef41Sopenharmony_ci<p><code>http2.connect()</code> was passed a URL that uses any protocol other than <code>http:</code> or 22711cb0ef41Sopenharmony_ci<code>https:</code>.</p> 22721cb0ef41Sopenharmony_ci<p><a id="ERR_ILLEGAL_CONSTRUCTOR"></a></p> 22731cb0ef41Sopenharmony_ci<h4><code>ERR_ILLEGAL_CONSTRUCTOR</code><span><a class="mark" href="#err_illegal_constructor" id="err_illegal_constructor">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_illegal_constructor"></a></h4> 22741cb0ef41Sopenharmony_ci<p>An attempt was made to construct an object using a non-public constructor.</p> 22751cb0ef41Sopenharmony_ci<p><a id="ERR_IMPORT_ASSERTION_TYPE_FAILED"></a></p> 22761cb0ef41Sopenharmony_ci<h4><code>ERR_IMPORT_ASSERTION_TYPE_FAILED</code><span><a class="mark" href="#err_import_assertion_type_failed" id="err_import_assertion_type_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_import_assertion_type_failed"></a></h4> 22771cb0ef41Sopenharmony_ci<div class="api_metadata"> 22781cb0ef41Sopenharmony_ci<span>Added in: v17.1.0, v16.14.0</span> 22791cb0ef41Sopenharmony_ci</div> 22801cb0ef41Sopenharmony_ci<p>An import <code>type</code> attribute was provided, but the specified module is of a 22811cb0ef41Sopenharmony_cidifferent type.</p> 22821cb0ef41Sopenharmony_ci<p><a id="ERR_IMPORT_ASSERTION_TYPE_MISSING"></a></p> 22831cb0ef41Sopenharmony_ci<h4><code>ERR_IMPORT_ASSERTION_TYPE_MISSING</code><span><a class="mark" href="#err_import_assertion_type_missing" id="err_import_assertion_type_missing">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_import_assertion_type_missing"></a></h4> 22841cb0ef41Sopenharmony_ci<div class="api_metadata"> 22851cb0ef41Sopenharmony_ci<span>Added in: v17.1.0, v16.14.0</span> 22861cb0ef41Sopenharmony_ci</div> 22871cb0ef41Sopenharmony_ci<p>An import attribute is missing, preventing the specified module to be imported.</p> 22881cb0ef41Sopenharmony_ci<p><a id="ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED"></a></p> 22891cb0ef41Sopenharmony_ci<h4><code>ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED</code><span><a class="mark" href="#err_import_assertion_type_unsupported" id="err_import_assertion_type_unsupported">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_import_assertion_type_unsupported"></a></h4> 22901cb0ef41Sopenharmony_ci<div class="api_metadata"> 22911cb0ef41Sopenharmony_ci<span>Added in: v17.1.0, v16.14.0</span> 22921cb0ef41Sopenharmony_ci</div> 22931cb0ef41Sopenharmony_ci<p>An import attribute is not supported by this version of Node.js.</p> 22941cb0ef41Sopenharmony_ci<p><a id="ERR_IMPORT_ATTRIBUTE_UNSUPPORTED"></a></p> 22951cb0ef41Sopenharmony_ci<h4><code>ERR_IMPORT_ATTRIBUTE_UNSUPPORTED</code><span><a class="mark" href="#err_import_attribute_unsupported" id="err_import_attribute_unsupported">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_import_attribute_unsupported"></a></h4> 22961cb0ef41Sopenharmony_ci<div class="api_metadata"> 22971cb0ef41Sopenharmony_ci<span>Added in: v18.19.0</span> 22981cb0ef41Sopenharmony_ci</div> 22991cb0ef41Sopenharmony_ci<p>An import attribute is not supported by this version of Node.js.</p> 23001cb0ef41Sopenharmony_ci<p><a id="ERR_INCOMPATIBLE_OPTION_PAIR"></a></p> 23011cb0ef41Sopenharmony_ci<h4><code>ERR_INCOMPATIBLE_OPTION_PAIR</code><span><a class="mark" href="#err_incompatible_option_pair" id="err_incompatible_option_pair">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_incompatible_option_pair"></a></h4> 23021cb0ef41Sopenharmony_ci<p>An option pair is incompatible with each other and cannot be used at the same 23031cb0ef41Sopenharmony_citime.</p> 23041cb0ef41Sopenharmony_ci<p><a id="ERR_INPUT_TYPE_NOT_ALLOWED"></a></p> 23051cb0ef41Sopenharmony_ci<h4><code>ERR_INPUT_TYPE_NOT_ALLOWED</code><span><a class="mark" href="#err_input_type_not_allowed" id="err_input_type_not_allowed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_input_type_not_allowed"></a></h4> 23061cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental</div><p></p> 23071cb0ef41Sopenharmony_ci<p>The <code>--input-type</code> flag was used to attempt to execute a file. This flag can 23081cb0ef41Sopenharmony_cionly be used with input via <code>--eval</code>, <code>--print</code>, or <code>STDIN</code>.</p> 23091cb0ef41Sopenharmony_ci<p><a id="ERR_INSPECTOR_ALREADY_ACTIVATED"></a></p> 23101cb0ef41Sopenharmony_ci<h4><code>ERR_INSPECTOR_ALREADY_ACTIVATED</code><span><a class="mark" href="#err_inspector_already_activated" id="err_inspector_already_activated">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_inspector_already_activated"></a></h4> 23111cb0ef41Sopenharmony_ci<p>While using the <code>node:inspector</code> module, an attempt was made to activate the 23121cb0ef41Sopenharmony_ciinspector when it already started to listen on a port. Use <code>inspector.close()</code> 23131cb0ef41Sopenharmony_cibefore activating it on a different address.</p> 23141cb0ef41Sopenharmony_ci<p><a id="ERR_INSPECTOR_ALREADY_CONNECTED"></a></p> 23151cb0ef41Sopenharmony_ci<h4><code>ERR_INSPECTOR_ALREADY_CONNECTED</code><span><a class="mark" href="#err_inspector_already_connected" id="err_inspector_already_connected">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_inspector_already_connected"></a></h4> 23161cb0ef41Sopenharmony_ci<p>While using the <code>node:inspector</code> module, an attempt was made to connect when the 23171cb0ef41Sopenharmony_ciinspector was already connected.</p> 23181cb0ef41Sopenharmony_ci<p><a id="ERR_INSPECTOR_CLOSED"></a></p> 23191cb0ef41Sopenharmony_ci<h4><code>ERR_INSPECTOR_CLOSED</code><span><a class="mark" href="#err_inspector_closed" id="err_inspector_closed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_inspector_closed"></a></h4> 23201cb0ef41Sopenharmony_ci<p>While using the <code>node:inspector</code> module, an attempt was made to use the 23211cb0ef41Sopenharmony_ciinspector after the session had already closed.</p> 23221cb0ef41Sopenharmony_ci<p><a id="ERR_INSPECTOR_COMMAND"></a></p> 23231cb0ef41Sopenharmony_ci<h4><code>ERR_INSPECTOR_COMMAND</code><span><a class="mark" href="#err_inspector_command" id="err_inspector_command">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_inspector_command"></a></h4> 23241cb0ef41Sopenharmony_ci<p>An error occurred while issuing a command via the <code>node:inspector</code> module.</p> 23251cb0ef41Sopenharmony_ci<p><a id="ERR_INSPECTOR_NOT_ACTIVE"></a></p> 23261cb0ef41Sopenharmony_ci<h4><code>ERR_INSPECTOR_NOT_ACTIVE</code><span><a class="mark" href="#err_inspector_not_active" id="err_inspector_not_active">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_inspector_not_active"></a></h4> 23271cb0ef41Sopenharmony_ci<p>The <code>inspector</code> is not active when <code>inspector.waitForDebugger()</code> is called.</p> 23281cb0ef41Sopenharmony_ci<p><a id="ERR_INSPECTOR_NOT_AVAILABLE"></a></p> 23291cb0ef41Sopenharmony_ci<h4><code>ERR_INSPECTOR_NOT_AVAILABLE</code><span><a class="mark" href="#err_inspector_not_available" id="err_inspector_not_available">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_inspector_not_available"></a></h4> 23301cb0ef41Sopenharmony_ci<p>The <code>node:inspector</code> module is not available for use.</p> 23311cb0ef41Sopenharmony_ci<p><a id="ERR_INSPECTOR_NOT_CONNECTED"></a></p> 23321cb0ef41Sopenharmony_ci<h4><code>ERR_INSPECTOR_NOT_CONNECTED</code><span><a class="mark" href="#err_inspector_not_connected" id="err_inspector_not_connected">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_inspector_not_connected"></a></h4> 23331cb0ef41Sopenharmony_ci<p>While using the <code>node:inspector</code> module, an attempt was made to use the 23341cb0ef41Sopenharmony_ciinspector before it was connected.</p> 23351cb0ef41Sopenharmony_ci<p><a id="ERR_INSPECTOR_NOT_WORKER"></a></p> 23361cb0ef41Sopenharmony_ci<h4><code>ERR_INSPECTOR_NOT_WORKER</code><span><a class="mark" href="#err_inspector_not_worker" id="err_inspector_not_worker">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_inspector_not_worker"></a></h4> 23371cb0ef41Sopenharmony_ci<p>An API was called on the main thread that can only be used from 23381cb0ef41Sopenharmony_cithe worker thread.</p> 23391cb0ef41Sopenharmony_ci<p><a id="ERR_INTERNAL_ASSERTION"></a></p> 23401cb0ef41Sopenharmony_ci<h4><code>ERR_INTERNAL_ASSERTION</code><span><a class="mark" href="#err_internal_assertion" id="err_internal_assertion">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_internal_assertion"></a></h4> 23411cb0ef41Sopenharmony_ci<p>There was a bug in Node.js or incorrect usage of Node.js internals. 23421cb0ef41Sopenharmony_ciTo fix the error, open an issue at <a href="https://github.com/nodejs/node/issues">https://github.com/nodejs/node/issues</a>.</p> 23431cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_ADDRESS_FAMILY"></a></p> 23441cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_ADDRESS_FAMILY</code><span><a class="mark" href="#err_invalid_address_family" id="err_invalid_address_family">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_address_family"></a></h4> 23451cb0ef41Sopenharmony_ci<p>The provided address family is not understood by the Node.js API.</p> 23461cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_ARG_TYPE"></a></p> 23471cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_ARG_TYPE</code><span><a class="mark" href="#err_invalid_arg_type" id="err_invalid_arg_type">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_arg_type"></a></h4> 23481cb0ef41Sopenharmony_ci<p>An argument of the wrong type was passed to a Node.js API.</p> 23491cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_ARG_VALUE"></a></p> 23501cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_ARG_VALUE</code><span><a class="mark" href="#err_invalid_arg_value" id="err_invalid_arg_value">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_arg_value"></a></h4> 23511cb0ef41Sopenharmony_ci<p>An invalid or unsupported value was passed for a given argument.</p> 23521cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_ASYNC_ID"></a></p> 23531cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_ASYNC_ID</code><span><a class="mark" href="#err_invalid_async_id" id="err_invalid_async_id">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_async_id"></a></h4> 23541cb0ef41Sopenharmony_ci<p>An invalid <code>asyncId</code> or <code>triggerAsyncId</code> was passed using <code>AsyncHooks</code>. An id 23551cb0ef41Sopenharmony_ciless than -1 should never happen.</p> 23561cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_BUFFER_SIZE"></a></p> 23571cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_BUFFER_SIZE</code><span><a class="mark" href="#err_invalid_buffer_size" id="err_invalid_buffer_size">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_buffer_size"></a></h4> 23581cb0ef41Sopenharmony_ci<p>A swap was performed on a <code>Buffer</code> but its size was not compatible with the 23591cb0ef41Sopenharmony_cioperation.</p> 23601cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_CHAR"></a></p> 23611cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_CHAR</code><span><a class="mark" href="#err_invalid_char" id="err_invalid_char">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_char"></a></h4> 23621cb0ef41Sopenharmony_ci<p>Invalid characters were detected in headers.</p> 23631cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_CURSOR_POS"></a></p> 23641cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_CURSOR_POS</code><span><a class="mark" href="#err_invalid_cursor_pos" id="err_invalid_cursor_pos">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_cursor_pos"></a></h4> 23651cb0ef41Sopenharmony_ci<p>A cursor on a given stream cannot be moved to a specified row without a 23661cb0ef41Sopenharmony_cispecified column.</p> 23671cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_FD"></a></p> 23681cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_FD</code><span><a class="mark" href="#err_invalid_fd" id="err_invalid_fd">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_fd"></a></h4> 23691cb0ef41Sopenharmony_ci<p>A file descriptor ('fd') was not valid (e.g. it was a negative value).</p> 23701cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_FD_TYPE"></a></p> 23711cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_FD_TYPE</code><span><a class="mark" href="#err_invalid_fd_type" id="err_invalid_fd_type">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_fd_type"></a></h4> 23721cb0ef41Sopenharmony_ci<p>A file descriptor ('fd') type was not valid.</p> 23731cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_FILE_URL_HOST"></a></p> 23741cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_FILE_URL_HOST</code><span><a class="mark" href="#err_invalid_file_url_host" id="err_invalid_file_url_host">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_file_url_host"></a></h4> 23751cb0ef41Sopenharmony_ci<p>A Node.js API that consumes <code>file:</code> URLs (such as certain functions in the 23761cb0ef41Sopenharmony_ci<a href="fs.html"><code>fs</code></a> module) encountered a file URL with an incompatible host. This 23771cb0ef41Sopenharmony_cisituation can only occur on Unix-like systems where only <code>localhost</code> or an empty 23781cb0ef41Sopenharmony_cihost is supported.</p> 23791cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_FILE_URL_PATH"></a></p> 23801cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_FILE_URL_PATH</code><span><a class="mark" href="#err_invalid_file_url_path" id="err_invalid_file_url_path">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_file_url_path"></a></h4> 23811cb0ef41Sopenharmony_ci<p>A Node.js API that consumes <code>file:</code> URLs (such as certain functions in the 23821cb0ef41Sopenharmony_ci<a href="fs.html"><code>fs</code></a> module) encountered a file URL with an incompatible path. The exact 23831cb0ef41Sopenharmony_cisemantics for determining whether a path can be used is platform-dependent.</p> 23841cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_HANDLE_TYPE"></a></p> 23851cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_HANDLE_TYPE</code><span><a class="mark" href="#err_invalid_handle_type" id="err_invalid_handle_type">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_handle_type"></a></h4> 23861cb0ef41Sopenharmony_ci<p>An attempt was made to send an unsupported "handle" over an IPC communication 23871cb0ef41Sopenharmony_cichannel to a child process. See <a href="child_process.html#subprocesssendmessage-sendhandle-options-callback"><code>subprocess.send()</code></a> and <a href="process.html#processsendmessage-sendhandle-options-callback"><code>process.send()</code></a> 23881cb0ef41Sopenharmony_cifor more information.</p> 23891cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_HTTP_TOKEN"></a></p> 23901cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_HTTP_TOKEN</code><span><a class="mark" href="#err_invalid_http_token" id="err_invalid_http_token">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_http_token"></a></h4> 23911cb0ef41Sopenharmony_ci<p>An invalid HTTP token was supplied.</p> 23921cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_IP_ADDRESS"></a></p> 23931cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_IP_ADDRESS</code><span><a class="mark" href="#err_invalid_ip_address" id="err_invalid_ip_address">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_ip_address"></a></h4> 23941cb0ef41Sopenharmony_ci<p>An IP address is not valid.</p> 23951cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_MIME_SYNTAX"></a></p> 23961cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_MIME_SYNTAX</code><span><a class="mark" href="#err_invalid_mime_syntax" id="err_invalid_mime_syntax">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_mime_syntax"></a></h4> 23971cb0ef41Sopenharmony_ci<p>The syntax of a MIME is not valid.</p> 23981cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_MODULE"></a></p> 23991cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_MODULE</code><span><a class="mark" href="#err_invalid_module" id="err_invalid_module">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_module"></a></h4> 24001cb0ef41Sopenharmony_ci<div class="api_metadata"> 24011cb0ef41Sopenharmony_ci<span>Added in: v15.0.0, v14.18.0</span> 24021cb0ef41Sopenharmony_ci</div> 24031cb0ef41Sopenharmony_ci<p>An attempt was made to load a module that does not exist or was otherwise not 24041cb0ef41Sopenharmony_civalid.</p> 24051cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_MODULE_SPECIFIER"></a></p> 24061cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_MODULE_SPECIFIER</code><span><a class="mark" href="#err_invalid_module_specifier" id="err_invalid_module_specifier">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_module_specifier"></a></h4> 24071cb0ef41Sopenharmony_ci<p>The imported module string is an invalid URL, package name, or package subpath 24081cb0ef41Sopenharmony_cispecifier.</p> 24091cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_OBJECT_DEFINE_PROPERTY"></a></p> 24101cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_OBJECT_DEFINE_PROPERTY</code><span><a class="mark" href="#err_invalid_object_define_property" id="err_invalid_object_define_property">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_object_define_property"></a></h4> 24111cb0ef41Sopenharmony_ci<p>An error occurred while setting an invalid attribute on the property of 24121cb0ef41Sopenharmony_cian object.</p> 24131cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_PACKAGE_CONFIG"></a></p> 24141cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_PACKAGE_CONFIG</code><span><a class="mark" href="#err_invalid_package_config" id="err_invalid_package_config">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_package_config"></a></h4> 24151cb0ef41Sopenharmony_ci<p>An invalid <a href="packages.html#nodejs-packagejson-field-definitions"><code>package.json</code></a> file failed parsing.</p> 24161cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_PACKAGE_TARGET"></a></p> 24171cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_PACKAGE_TARGET</code><span><a class="mark" href="#err_invalid_package_target" id="err_invalid_package_target">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_package_target"></a></h4> 24181cb0ef41Sopenharmony_ci<p>The <code>package.json</code> <a href="packages.html#exports"><code>"exports"</code></a> field contains an invalid target mapping 24191cb0ef41Sopenharmony_civalue for the attempted module resolution.</p> 24201cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_PERFORMANCE_MARK"></a></p> 24211cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_PERFORMANCE_MARK</code><span><a class="mark" href="#err_invalid_performance_mark" id="err_invalid_performance_mark">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_performance_mark"></a></h4> 24221cb0ef41Sopenharmony_ci<p>While using the Performance Timing API (<code>perf_hooks</code>), a performance mark is 24231cb0ef41Sopenharmony_ciinvalid.</p> 24241cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_PROTOCOL"></a></p> 24251cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_PROTOCOL</code><span><a class="mark" href="#err_invalid_protocol" id="err_invalid_protocol">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_protocol"></a></h4> 24261cb0ef41Sopenharmony_ci<p>An invalid <code>options.protocol</code> was passed to <code>http.request()</code>.</p> 24271cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_REPL_EVAL_CONFIG"></a></p> 24281cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_REPL_EVAL_CONFIG</code><span><a class="mark" href="#err_invalid_repl_eval_config" id="err_invalid_repl_eval_config">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_repl_eval_config"></a></h4> 24291cb0ef41Sopenharmony_ci<p>Both <code>breakEvalOnSigint</code> and <code>eval</code> options were set in the <a href="repl.html"><code>REPL</code></a> config, 24301cb0ef41Sopenharmony_ciwhich is not supported.</p> 24311cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_REPL_INPUT"></a></p> 24321cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_REPL_INPUT</code><span><a class="mark" href="#err_invalid_repl_input" id="err_invalid_repl_input">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_repl_input"></a></h4> 24331cb0ef41Sopenharmony_ci<p>The input may not be used in the <a href="repl.html"><code>REPL</code></a>. The conditions under which this 24341cb0ef41Sopenharmony_cierror is used are described in the <a href="repl.html"><code>REPL</code></a> documentation.</p> 24351cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_RETURN_PROPERTY"></a></p> 24361cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_RETURN_PROPERTY</code><span><a class="mark" href="#err_invalid_return_property" id="err_invalid_return_property">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_return_property"></a></h4> 24371cb0ef41Sopenharmony_ci<p>Thrown in case a function option does not provide a valid value for one of its 24381cb0ef41Sopenharmony_cireturned object properties on execution.</p> 24391cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_RETURN_PROPERTY_VALUE"></a></p> 24401cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_RETURN_PROPERTY_VALUE</code><span><a class="mark" href="#err_invalid_return_property_value" id="err_invalid_return_property_value">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_return_property_value"></a></h4> 24411cb0ef41Sopenharmony_ci<p>Thrown in case a function option does not provide an expected value 24421cb0ef41Sopenharmony_citype for one of its returned object properties on execution.</p> 24431cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_RETURN_VALUE"></a></p> 24441cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_RETURN_VALUE</code><span><a class="mark" href="#err_invalid_return_value" id="err_invalid_return_value">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_return_value"></a></h4> 24451cb0ef41Sopenharmony_ci<p>Thrown in case a function option does not return an expected value 24461cb0ef41Sopenharmony_citype on execution, such as when a function is expected to return a promise.</p> 24471cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_STATE"></a></p> 24481cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_STATE</code><span><a class="mark" href="#err_invalid_state" id="err_invalid_state">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_state"></a></h4> 24491cb0ef41Sopenharmony_ci<div class="api_metadata"> 24501cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 24511cb0ef41Sopenharmony_ci</div> 24521cb0ef41Sopenharmony_ci<p>Indicates that an operation cannot be completed due to an invalid state. 24531cb0ef41Sopenharmony_ciFor instance, an object may have already been destroyed, or may be 24541cb0ef41Sopenharmony_ciperforming another operation.</p> 24551cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_SYNC_FORK_INPUT"></a></p> 24561cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_SYNC_FORK_INPUT</code><span><a class="mark" href="#err_invalid_sync_fork_input" id="err_invalid_sync_fork_input">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_sync_fork_input"></a></h4> 24571cb0ef41Sopenharmony_ci<p>A <code>Buffer</code>, <code>TypedArray</code>, <code>DataView</code>, or <code>string</code> was provided as stdio input to 24581cb0ef41Sopenharmony_cian asynchronous fork. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module 24591cb0ef41Sopenharmony_cifor more information.</p> 24601cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_THIS"></a></p> 24611cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_THIS</code><span><a class="mark" href="#err_invalid_this" id="err_invalid_this">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_this"></a></h4> 24621cb0ef41Sopenharmony_ci<p>A Node.js API function was called with an incompatible <code>this</code> value.</p> 24631cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> urlSearchParams = <span class="hljs-keyword">new</span> <span class="hljs-title class_">URLSearchParams</span>(<span class="hljs-string">'foo=bar&baz=new'</span>); 24641cb0ef41Sopenharmony_ci 24651cb0ef41Sopenharmony_ci<span class="hljs-keyword">const</span> buf = <span class="hljs-title class_">Buffer</span>.<span class="hljs-title function_">alloc</span>(<span class="hljs-number">1</span>); 24661cb0ef41Sopenharmony_ciurlSearchParams.<span class="hljs-property">has</span>.<span class="hljs-title function_">call</span>(buf, <span class="hljs-string">'foo'</span>); 24671cb0ef41Sopenharmony_ci<span class="hljs-comment">// Throws a TypeError with code 'ERR_INVALID_THIS'</span></code> <button class="copy-button">copy</button></pre> 24681cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_TRANSFER_OBJECT"></a></p> 24691cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_TRANSFER_OBJECT</code><span><a class="mark" href="#err_invalid_transfer_object" id="err_invalid_transfer_object">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_transfer_object"></a></h4> 24701cb0ef41Sopenharmony_ci<p>An invalid transfer object was passed to <code>postMessage()</code>.</p> 24711cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_TUPLE"></a></p> 24721cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_TUPLE</code><span><a class="mark" href="#err_invalid_tuple" id="err_invalid_tuple">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_tuple"></a></h4> 24731cb0ef41Sopenharmony_ci<p>An element in the <code>iterable</code> provided to the <a href="url.html#the-whatwg-url-api">WHATWG</a> 24741cb0ef41Sopenharmony_ci<a href="url.html#new-urlsearchparamsiterable"><code>URLSearchParams</code> constructor</a> did not 24751cb0ef41Sopenharmony_cirepresent a <code>[name, value]</code> tuple – that is, if an element is not iterable, or 24761cb0ef41Sopenharmony_cidoes not consist of exactly two elements.</p> 24771cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_URI"></a></p> 24781cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_URI</code><span><a class="mark" href="#err_invalid_uri" id="err_invalid_uri">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_uri"></a></h4> 24791cb0ef41Sopenharmony_ci<p>An invalid URI was passed.</p> 24801cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_URL"></a></p> 24811cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_URL</code><span><a class="mark" href="#err_invalid_url" id="err_invalid_url">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_url"></a></h4> 24821cb0ef41Sopenharmony_ci<p>An invalid URL was passed to the <a href="url.html#the-whatwg-url-api">WHATWG</a> <a href="url.html#new-urlinput-base"><code>URL</code> 24831cb0ef41Sopenharmony_ciconstructor</a> or the legacy <a href="url.html#urlparseurlstring-parsequerystring-slashesdenotehost"><code>url.parse()</code></a> to be parsed. 24841cb0ef41Sopenharmony_ciThe thrown error object typically has an additional property <code>'input'</code> that 24851cb0ef41Sopenharmony_cicontains the URL that failed to parse.</p> 24861cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_URL_SCHEME"></a></p> 24871cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_URL_SCHEME</code><span><a class="mark" href="#err_invalid_url_scheme" id="err_invalid_url_scheme">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_url_scheme"></a></h4> 24881cb0ef41Sopenharmony_ci<p>An attempt was made to use a URL of an incompatible scheme (protocol) for a 24891cb0ef41Sopenharmony_cispecific purpose. It is only used in the <a href="url.html#the-whatwg-url-api">WHATWG URL API</a> support in the 24901cb0ef41Sopenharmony_ci<a href="fs.html"><code>fs</code></a> module (which only accepts URLs with <code>'file'</code> scheme), but may be used 24911cb0ef41Sopenharmony_ciin other Node.js APIs as well in the future.</p> 24921cb0ef41Sopenharmony_ci<p><a id="ERR_IPC_CHANNEL_CLOSED"></a></p> 24931cb0ef41Sopenharmony_ci<h4><code>ERR_IPC_CHANNEL_CLOSED</code><span><a class="mark" href="#err_ipc_channel_closed" id="err_ipc_channel_closed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_ipc_channel_closed"></a></h4> 24941cb0ef41Sopenharmony_ci<p>An attempt was made to use an IPC communication channel that was already closed.</p> 24951cb0ef41Sopenharmony_ci<p><a id="ERR_IPC_DISCONNECTED"></a></p> 24961cb0ef41Sopenharmony_ci<h4><code>ERR_IPC_DISCONNECTED</code><span><a class="mark" href="#err_ipc_disconnected" id="err_ipc_disconnected">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_ipc_disconnected"></a></h4> 24971cb0ef41Sopenharmony_ci<p>An attempt was made to disconnect an IPC communication channel that was already 24981cb0ef41Sopenharmony_cidisconnected. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module 24991cb0ef41Sopenharmony_cifor more information.</p> 25001cb0ef41Sopenharmony_ci<p><a id="ERR_IPC_ONE_PIPE"></a></p> 25011cb0ef41Sopenharmony_ci<h4><code>ERR_IPC_ONE_PIPE</code><span><a class="mark" href="#err_ipc_one_pipe" id="err_ipc_one_pipe">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_ipc_one_pipe"></a></h4> 25021cb0ef41Sopenharmony_ci<p>An attempt was made to create a child Node.js process using more than one IPC 25031cb0ef41Sopenharmony_cicommunication channel. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module 25041cb0ef41Sopenharmony_cifor more information.</p> 25051cb0ef41Sopenharmony_ci<p><a id="ERR_IPC_SYNC_FORK"></a></p> 25061cb0ef41Sopenharmony_ci<h4><code>ERR_IPC_SYNC_FORK</code><span><a class="mark" href="#err_ipc_sync_fork" id="err_ipc_sync_fork">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_ipc_sync_fork"></a></h4> 25071cb0ef41Sopenharmony_ci<p>An attempt was made to open an IPC communication channel with a synchronously 25081cb0ef41Sopenharmony_ciforked Node.js process. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module 25091cb0ef41Sopenharmony_cifor more information.</p> 25101cb0ef41Sopenharmony_ci<p><a id="ERR_LOADER_CHAIN_INCOMPLETE"></a></p> 25111cb0ef41Sopenharmony_ci<h4><code>ERR_LOADER_CHAIN_INCOMPLETE</code><span><a class="mark" href="#err_loader_chain_incomplete" id="err_loader_chain_incomplete">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_loader_chain_incomplete"></a></h4> 25121cb0ef41Sopenharmony_ci<div class="api_metadata"> 25131cb0ef41Sopenharmony_ci<span>Added in: v18.6.0</span> 25141cb0ef41Sopenharmony_ci</div> 25151cb0ef41Sopenharmony_ci<p>An ESM loader hook returned without calling <code>next()</code> and without explicitly 25161cb0ef41Sopenharmony_cisignaling a short circuit.</p> 25171cb0ef41Sopenharmony_ci<p><a id="ERR_MANIFEST_ASSERT_INTEGRITY"></a></p> 25181cb0ef41Sopenharmony_ci<h4><code>ERR_MANIFEST_ASSERT_INTEGRITY</code><span><a class="mark" href="#err_manifest_assert_integrity" id="err_manifest_assert_integrity">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_manifest_assert_integrity"></a></h4> 25191cb0ef41Sopenharmony_ci<p>An attempt was made to load a resource, but the resource did not match the 25201cb0ef41Sopenharmony_ciintegrity defined by the policy manifest. See the documentation for <a href="permissions.html#policies">policy</a> 25211cb0ef41Sopenharmony_cimanifests for more information.</p> 25221cb0ef41Sopenharmony_ci<p><a id="ERR_MANIFEST_DEPENDENCY_MISSING"></a></p> 25231cb0ef41Sopenharmony_ci<h4><code>ERR_MANIFEST_DEPENDENCY_MISSING</code><span><a class="mark" href="#err_manifest_dependency_missing" id="err_manifest_dependency_missing">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_manifest_dependency_missing"></a></h4> 25241cb0ef41Sopenharmony_ci<p>An attempt was made to load a resource, but the resource was not listed as a 25251cb0ef41Sopenharmony_cidependency from the location that attempted to load it. See the documentation 25261cb0ef41Sopenharmony_cifor <a href="permissions.html#policies">policy</a> manifests for more information.</p> 25271cb0ef41Sopenharmony_ci<p><a id="ERR_MANIFEST_INTEGRITY_MISMATCH"></a></p> 25281cb0ef41Sopenharmony_ci<h4><code>ERR_MANIFEST_INTEGRITY_MISMATCH</code><span><a class="mark" href="#err_manifest_integrity_mismatch" id="err_manifest_integrity_mismatch">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_manifest_integrity_mismatch"></a></h4> 25291cb0ef41Sopenharmony_ci<p>An attempt was made to load a policy manifest, but the manifest had multiple 25301cb0ef41Sopenharmony_cientries for a resource which did not match each other. Update the manifest 25311cb0ef41Sopenharmony_cientries to match in order to resolve this error. See the documentation for 25321cb0ef41Sopenharmony_ci<a href="permissions.html#policies">policy</a> manifests for more information.</p> 25331cb0ef41Sopenharmony_ci<p><a id="ERR_MANIFEST_INVALID_RESOURCE_FIELD"></a></p> 25341cb0ef41Sopenharmony_ci<h4><code>ERR_MANIFEST_INVALID_RESOURCE_FIELD</code><span><a class="mark" href="#err_manifest_invalid_resource_field" id="err_manifest_invalid_resource_field">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_manifest_invalid_resource_field"></a></h4> 25351cb0ef41Sopenharmony_ci<p>A policy manifest resource had an invalid value for one of its fields. Update 25361cb0ef41Sopenharmony_cithe manifest entry to match in order to resolve this error. See the 25371cb0ef41Sopenharmony_cidocumentation for <a href="permissions.html#policies">policy</a> manifests for more information.</p> 25381cb0ef41Sopenharmony_ci<p><a id="ERR_MANIFEST_INVALID_SPECIFIER"></a></p> 25391cb0ef41Sopenharmony_ci<h4><code>ERR_MANIFEST_INVALID_SPECIFIER</code><span><a class="mark" href="#err_manifest_invalid_specifier" id="err_manifest_invalid_specifier">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_manifest_invalid_specifier"></a></h4> 25401cb0ef41Sopenharmony_ci<p>A policy manifest resource had an invalid value for one of its dependency 25411cb0ef41Sopenharmony_cimappings. Update the manifest entry to match to resolve this error. See the 25421cb0ef41Sopenharmony_cidocumentation for <a href="permissions.html#policies">policy</a> manifests for more information.</p> 25431cb0ef41Sopenharmony_ci<p><a id="ERR_MANIFEST_PARSE_POLICY"></a></p> 25441cb0ef41Sopenharmony_ci<h4><code>ERR_MANIFEST_PARSE_POLICY</code><span><a class="mark" href="#err_manifest_parse_policy" id="err_manifest_parse_policy">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_manifest_parse_policy"></a></h4> 25451cb0ef41Sopenharmony_ci<p>An attempt was made to load a policy manifest, but the manifest was unable to 25461cb0ef41Sopenharmony_cibe parsed. See the documentation for <a href="permissions.html#policies">policy</a> manifests for more information.</p> 25471cb0ef41Sopenharmony_ci<p><a id="ERR_MANIFEST_TDZ"></a></p> 25481cb0ef41Sopenharmony_ci<h4><code>ERR_MANIFEST_TDZ</code><span><a class="mark" href="#err_manifest_tdz" id="err_manifest_tdz">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_manifest_tdz"></a></h4> 25491cb0ef41Sopenharmony_ci<p>An attempt was made to read from a policy manifest, but the manifest 25501cb0ef41Sopenharmony_ciinitialization has not yet taken place. This is likely a bug in Node.js.</p> 25511cb0ef41Sopenharmony_ci<p><a id="ERR_MANIFEST_UNKNOWN_ONERROR"></a></p> 25521cb0ef41Sopenharmony_ci<h4><code>ERR_MANIFEST_UNKNOWN_ONERROR</code><span><a class="mark" href="#err_manifest_unknown_onerror" id="err_manifest_unknown_onerror">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_manifest_unknown_onerror"></a></h4> 25531cb0ef41Sopenharmony_ci<p>A policy manifest was loaded, but had an unknown value for its "onerror" 25541cb0ef41Sopenharmony_cibehavior. See the documentation for <a href="permissions.html#policies">policy</a> manifests for more information.</p> 25551cb0ef41Sopenharmony_ci<p><a id="ERR_MEMORY_ALLOCATION_FAILED"></a></p> 25561cb0ef41Sopenharmony_ci<h4><code>ERR_MEMORY_ALLOCATION_FAILED</code><span><a class="mark" href="#err_memory_allocation_failed" id="err_memory_allocation_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_memory_allocation_failed"></a></h4> 25571cb0ef41Sopenharmony_ci<p>An attempt was made to allocate memory (usually in the C++ layer) but it 25581cb0ef41Sopenharmony_cifailed.</p> 25591cb0ef41Sopenharmony_ci<p><a id="ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE"></a></p> 25601cb0ef41Sopenharmony_ci<h4><code>ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE</code><span><a class="mark" href="#err_message_target_context_unavailable" id="err_message_target_context_unavailable">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_message_target_context_unavailable"></a></h4> 25611cb0ef41Sopenharmony_ci<div class="api_metadata"> 25621cb0ef41Sopenharmony_ci<span>Added in: v14.5.0, v12.19.0</span> 25631cb0ef41Sopenharmony_ci</div> 25641cb0ef41Sopenharmony_ci<p>A message posted to a <a href="worker_threads.html#class-messageport"><code>MessagePort</code></a> could not be deserialized in the target 25651cb0ef41Sopenharmony_ci<a href="vm.html">vm</a> <code>Context</code>. Not all Node.js objects can be successfully instantiated in 25661cb0ef41Sopenharmony_ciany context at this time, and attempting to transfer them using <code>postMessage()</code> 25671cb0ef41Sopenharmony_cican fail on the receiving side in that case.</p> 25681cb0ef41Sopenharmony_ci<p><a id="ERR_METHOD_NOT_IMPLEMENTED"></a></p> 25691cb0ef41Sopenharmony_ci<h4><code>ERR_METHOD_NOT_IMPLEMENTED</code><span><a class="mark" href="#err_method_not_implemented" id="err_method_not_implemented">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_method_not_implemented"></a></h4> 25701cb0ef41Sopenharmony_ci<p>A method is required but not implemented.</p> 25711cb0ef41Sopenharmony_ci<p><a id="ERR_MISSING_ARGS"></a></p> 25721cb0ef41Sopenharmony_ci<h4><code>ERR_MISSING_ARGS</code><span><a class="mark" href="#err_missing_args" id="err_missing_args">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_missing_args"></a></h4> 25731cb0ef41Sopenharmony_ci<p>A required argument of a Node.js API was not passed. This is only used for 25741cb0ef41Sopenharmony_cistrict compliance with the API specification (which in some cases may accept 25751cb0ef41Sopenharmony_ci<code>func(undefined)</code> but not <code>func()</code>). In most native Node.js APIs, 25761cb0ef41Sopenharmony_ci<code>func(undefined)</code> and <code>func()</code> are treated identically, and the 25771cb0ef41Sopenharmony_ci<a href="#err_invalid_arg_type"><code>ERR_INVALID_ARG_TYPE</code></a> error code may be used instead.</p> 25781cb0ef41Sopenharmony_ci<p><a id="ERR_MISSING_OPTION"></a></p> 25791cb0ef41Sopenharmony_ci<h4><code>ERR_MISSING_OPTION</code><span><a class="mark" href="#err_missing_option" id="err_missing_option">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_missing_option"></a></h4> 25801cb0ef41Sopenharmony_ci<p>For APIs that accept options objects, some options might be mandatory. This code 25811cb0ef41Sopenharmony_ciis thrown if a required option is missing.</p> 25821cb0ef41Sopenharmony_ci<p><a id="ERR_MISSING_PASSPHRASE"></a></p> 25831cb0ef41Sopenharmony_ci<h4><code>ERR_MISSING_PASSPHRASE</code><span><a class="mark" href="#err_missing_passphrase" id="err_missing_passphrase">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_missing_passphrase"></a></h4> 25841cb0ef41Sopenharmony_ci<p>An attempt was made to read an encrypted key without specifying a passphrase.</p> 25851cb0ef41Sopenharmony_ci<p><a id="ERR_MISSING_PLATFORM_FOR_WORKER"></a></p> 25861cb0ef41Sopenharmony_ci<h4><code>ERR_MISSING_PLATFORM_FOR_WORKER</code><span><a class="mark" href="#err_missing_platform_for_worker" id="err_missing_platform_for_worker">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_missing_platform_for_worker"></a></h4> 25871cb0ef41Sopenharmony_ci<p>The V8 platform used by this instance of Node.js does not support creating 25881cb0ef41Sopenharmony_ciWorkers. This is caused by lack of embedder support for Workers. In particular, 25891cb0ef41Sopenharmony_cithis error will not occur with standard builds of Node.js.</p> 25901cb0ef41Sopenharmony_ci<p><a id="ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST"></a></p> 25911cb0ef41Sopenharmony_ci<h4><code>ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST</code><span><a class="mark" href="#err_missing_transferable_in_transfer_list" id="err_missing_transferable_in_transfer_list">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_missing_transferable_in_transfer_list"></a></h4> 25921cb0ef41Sopenharmony_ci<div class="api_metadata"> 25931cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 25941cb0ef41Sopenharmony_ci</div> 25951cb0ef41Sopenharmony_ci<p>An object that needs to be explicitly listed in the <code>transferList</code> argument 25961cb0ef41Sopenharmony_ciis in the object passed to a <a href="worker_threads.html#portpostmessagevalue-transferlist"><code>postMessage()</code></a> call, but is not provided 25971cb0ef41Sopenharmony_ciin the <code>transferList</code> for that call. Usually, this is a <code>MessagePort</code>.</p> 25981cb0ef41Sopenharmony_ci<p>In Node.js versions prior to v15.0.0, the error code being used here was 25991cb0ef41Sopenharmony_ci<a href="#err_missing_message_port_in_transfer_list"><code>ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST</code></a>. However, the set of 26001cb0ef41Sopenharmony_citransferable object types has been expanded to cover more types than 26011cb0ef41Sopenharmony_ci<code>MessagePort</code>.</p> 26021cb0ef41Sopenharmony_ci<p><a id="ERR_MODULE_NOT_FOUND"></a></p> 26031cb0ef41Sopenharmony_ci<h4><code>ERR_MODULE_NOT_FOUND</code><span><a class="mark" href="#err_module_not_found" id="err_module_not_found">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_module_not_found"></a></h4> 26041cb0ef41Sopenharmony_ci<p>A module file could not be resolved by the ECMAScript modules loader while 26051cb0ef41Sopenharmony_ciattempting an <code>import</code> operation or when loading the program entry point.</p> 26061cb0ef41Sopenharmony_ci<p><a id="ERR_MULTIPLE_CALLBACK"></a></p> 26071cb0ef41Sopenharmony_ci<h4><code>ERR_MULTIPLE_CALLBACK</code><span><a class="mark" href="#err_multiple_callback" id="err_multiple_callback">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_multiple_callback"></a></h4> 26081cb0ef41Sopenharmony_ci<p>A callback was called more than once.</p> 26091cb0ef41Sopenharmony_ci<p>A callback is almost always meant to only be called once as the query 26101cb0ef41Sopenharmony_cican either be fulfilled or rejected but not both at the same time. The latter 26111cb0ef41Sopenharmony_ciwould be possible by calling a callback more than once.</p> 26121cb0ef41Sopenharmony_ci<p><a id="ERR_NAPI_CONS_FUNCTION"></a></p> 26131cb0ef41Sopenharmony_ci<h4><code>ERR_NAPI_CONS_FUNCTION</code><span><a class="mark" href="#err_napi_cons_function" id="err_napi_cons_function">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_napi_cons_function"></a></h4> 26141cb0ef41Sopenharmony_ci<p>While using <code>Node-API</code>, a constructor passed was not a function.</p> 26151cb0ef41Sopenharmony_ci<p><a id="ERR_NAPI_INVALID_DATAVIEW_ARGS"></a></p> 26161cb0ef41Sopenharmony_ci<h4><code>ERR_NAPI_INVALID_DATAVIEW_ARGS</code><span><a class="mark" href="#err_napi_invalid_dataview_args" id="err_napi_invalid_dataview_args">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_napi_invalid_dataview_args"></a></h4> 26171cb0ef41Sopenharmony_ci<p>While calling <code>napi_create_dataview()</code>, a given <code>offset</code> was outside the bounds 26181cb0ef41Sopenharmony_ciof the dataview or <code>offset + length</code> was larger than a length of given <code>buffer</code>.</p> 26191cb0ef41Sopenharmony_ci<p><a id="ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT"></a></p> 26201cb0ef41Sopenharmony_ci<h4><code>ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT</code><span><a class="mark" href="#err_napi_invalid_typedarray_alignment" id="err_napi_invalid_typedarray_alignment">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_napi_invalid_typedarray_alignment"></a></h4> 26211cb0ef41Sopenharmony_ci<p>While calling <code>napi_create_typedarray()</code>, the provided <code>offset</code> was not a 26221cb0ef41Sopenharmony_cimultiple of the element size.</p> 26231cb0ef41Sopenharmony_ci<p><a id="ERR_NAPI_INVALID_TYPEDARRAY_LENGTH"></a></p> 26241cb0ef41Sopenharmony_ci<h4><code>ERR_NAPI_INVALID_TYPEDARRAY_LENGTH</code><span><a class="mark" href="#err_napi_invalid_typedarray_length" id="err_napi_invalid_typedarray_length">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_napi_invalid_typedarray_length"></a></h4> 26251cb0ef41Sopenharmony_ci<p>While calling <code>napi_create_typedarray()</code>, <code>(length * size_of_element) + byte_offset</code> was larger than the length of given <code>buffer</code>.</p> 26261cb0ef41Sopenharmony_ci<p><a id="ERR_NAPI_TSFN_CALL_JS"></a></p> 26271cb0ef41Sopenharmony_ci<h4><code>ERR_NAPI_TSFN_CALL_JS</code><span><a class="mark" href="#err_napi_tsfn_call_js" id="err_napi_tsfn_call_js">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_napi_tsfn_call_js"></a></h4> 26281cb0ef41Sopenharmony_ci<p>An error occurred while invoking the JavaScript portion of the thread-safe 26291cb0ef41Sopenharmony_cifunction.</p> 26301cb0ef41Sopenharmony_ci<p><a id="ERR_NAPI_TSFN_GET_UNDEFINED"></a></p> 26311cb0ef41Sopenharmony_ci<h4><code>ERR_NAPI_TSFN_GET_UNDEFINED</code><span><a class="mark" href="#err_napi_tsfn_get_undefined" id="err_napi_tsfn_get_undefined">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_napi_tsfn_get_undefined"></a></h4> 26321cb0ef41Sopenharmony_ci<p>An error occurred while attempting to retrieve the JavaScript <code>undefined</code> 26331cb0ef41Sopenharmony_civalue.</p> 26341cb0ef41Sopenharmony_ci<p><a id="ERR_NAPI_TSFN_START_IDLE_LOOP"></a></p> 26351cb0ef41Sopenharmony_ci<h4><code>ERR_NAPI_TSFN_START_IDLE_LOOP</code><span><a class="mark" href="#err_napi_tsfn_start_idle_loop" id="err_napi_tsfn_start_idle_loop">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_napi_tsfn_start_idle_loop"></a></h4> 26361cb0ef41Sopenharmony_ci<p>On the main thread, values are removed from the queue associated with the 26371cb0ef41Sopenharmony_cithread-safe function in an idle loop. This error indicates that an error 26381cb0ef41Sopenharmony_cihas occurred when attempting to start the loop.</p> 26391cb0ef41Sopenharmony_ci<p><a id="ERR_NAPI_TSFN_STOP_IDLE_LOOP"></a></p> 26401cb0ef41Sopenharmony_ci<h4><code>ERR_NAPI_TSFN_STOP_IDLE_LOOP</code><span><a class="mark" href="#err_napi_tsfn_stop_idle_loop" id="err_napi_tsfn_stop_idle_loop">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_napi_tsfn_stop_idle_loop"></a></h4> 26411cb0ef41Sopenharmony_ci<p>Once no more items are left in the queue, the idle loop must be suspended. This 26421cb0ef41Sopenharmony_cierror indicates that the idle loop has failed to stop.</p> 26431cb0ef41Sopenharmony_ci<p><a id="ERR_NOT_BUILDING_SNAPSHOT"></a></p> 26441cb0ef41Sopenharmony_ci<h4><code>ERR_NOT_BUILDING_SNAPSHOT</code><span><a class="mark" href="#err_not_building_snapshot" id="err_not_building_snapshot">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_not_building_snapshot"></a></h4> 26451cb0ef41Sopenharmony_ci<p>An attempt was made to use operations that can only be used when building 26461cb0ef41Sopenharmony_ciV8 startup snapshot even though Node.js isn't building one.</p> 26471cb0ef41Sopenharmony_ci<p><a id="ERR_NO_CRYPTO"></a></p> 26481cb0ef41Sopenharmony_ci<h4><code>ERR_NO_CRYPTO</code><span><a class="mark" href="#err_no_crypto" id="err_no_crypto">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_no_crypto"></a></h4> 26491cb0ef41Sopenharmony_ci<p>An attempt was made to use crypto features while Node.js was not compiled with 26501cb0ef41Sopenharmony_ciOpenSSL crypto support.</p> 26511cb0ef41Sopenharmony_ci<p><a id="ERR_NO_ICU"></a></p> 26521cb0ef41Sopenharmony_ci<h4><code>ERR_NO_ICU</code><span><a class="mark" href="#err_no_icu" id="err_no_icu">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_no_icu"></a></h4> 26531cb0ef41Sopenharmony_ci<p>An attempt was made to use features that require <a href="intl.html#internationalization-support">ICU</a>, but Node.js was not 26541cb0ef41Sopenharmony_cicompiled with ICU support.</p> 26551cb0ef41Sopenharmony_ci<p><a id="ERR_NON_CONTEXT_AWARE_DISABLED"></a></p> 26561cb0ef41Sopenharmony_ci<h4><code>ERR_NON_CONTEXT_AWARE_DISABLED</code><span><a class="mark" href="#err_non_context_aware_disabled" id="err_non_context_aware_disabled">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_non_context_aware_disabled"></a></h4> 26571cb0ef41Sopenharmony_ci<p>A non-context-aware native addon was loaded in a process that disallows them.</p> 26581cb0ef41Sopenharmony_ci<p><a id="ERR_OUT_OF_RANGE"></a></p> 26591cb0ef41Sopenharmony_ci<h4><code>ERR_OUT_OF_RANGE</code><span><a class="mark" href="#err_out_of_range" id="err_out_of_range">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_out_of_range"></a></h4> 26601cb0ef41Sopenharmony_ci<p>A given value is out of the accepted range.</p> 26611cb0ef41Sopenharmony_ci<p><a id="ERR_PACKAGE_IMPORT_NOT_DEFINED"></a></p> 26621cb0ef41Sopenharmony_ci<h4><code>ERR_PACKAGE_IMPORT_NOT_DEFINED</code><span><a class="mark" href="#err_package_import_not_defined" id="err_package_import_not_defined">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_package_import_not_defined"></a></h4> 26631cb0ef41Sopenharmony_ci<p>The <code>package.json</code> <a href="packages.html#imports"><code>"imports"</code></a> field does not define the given internal 26641cb0ef41Sopenharmony_cipackage specifier mapping.</p> 26651cb0ef41Sopenharmony_ci<p><a id="ERR_PACKAGE_PATH_NOT_EXPORTED"></a></p> 26661cb0ef41Sopenharmony_ci<h4><code>ERR_PACKAGE_PATH_NOT_EXPORTED</code><span><a class="mark" href="#err_package_path_not_exported" id="err_package_path_not_exported">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_package_path_not_exported"></a></h4> 26671cb0ef41Sopenharmony_ci<p>The <code>package.json</code> <a href="packages.html#exports"><code>"exports"</code></a> field does not export the requested subpath. 26681cb0ef41Sopenharmony_ciBecause exports are encapsulated, private internal modules that are not exported 26691cb0ef41Sopenharmony_cicannot be imported through the package resolution, unless using an absolute URL.</p> 26701cb0ef41Sopenharmony_ci<p><a id="ERR_PARSE_ARGS_INVALID_OPTION_VALUE"></a></p> 26711cb0ef41Sopenharmony_ci<h4><code>ERR_PARSE_ARGS_INVALID_OPTION_VALUE</code><span><a class="mark" href="#err_parse_args_invalid_option_value" id="err_parse_args_invalid_option_value">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_parse_args_invalid_option_value"></a></h4> 26721cb0ef41Sopenharmony_ci<div class="api_metadata"> 26731cb0ef41Sopenharmony_ci<span>Added in: v18.3.0</span> 26741cb0ef41Sopenharmony_ci</div> 26751cb0ef41Sopenharmony_ci<p>When <code>strict</code> set to <code>true</code>, thrown by <a href="util.html#utilparseargsconfig"><code>util.parseArgs()</code></a> if a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type"><boolean></a> 26761cb0ef41Sopenharmony_civalue is provided for an option of type <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a>, or if a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> 26771cb0ef41Sopenharmony_civalue is provided for an option of type <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type"><boolean></a>.</p> 26781cb0ef41Sopenharmony_ci<p><a id="ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL"></a></p> 26791cb0ef41Sopenharmony_ci<h4><code>ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL</code><span><a class="mark" href="#err_parse_args_unexpected_positional" id="err_parse_args_unexpected_positional">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_parse_args_unexpected_positional"></a></h4> 26801cb0ef41Sopenharmony_ci<div class="api_metadata"> 26811cb0ef41Sopenharmony_ci<span>Added in: v18.3.0</span> 26821cb0ef41Sopenharmony_ci</div> 26831cb0ef41Sopenharmony_ci<p>Thrown by <a href="util.html#utilparseargsconfig"><code>util.parseArgs()</code></a>, when a positional argument is provided and 26841cb0ef41Sopenharmony_ci<code>allowPositionals</code> is set to <code>false</code>.</p> 26851cb0ef41Sopenharmony_ci<p><a id="ERR_PARSE_ARGS_UNKNOWN_OPTION"></a></p> 26861cb0ef41Sopenharmony_ci<h4><code>ERR_PARSE_ARGS_UNKNOWN_OPTION</code><span><a class="mark" href="#err_parse_args_unknown_option" id="err_parse_args_unknown_option">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_parse_args_unknown_option"></a></h4> 26871cb0ef41Sopenharmony_ci<div class="api_metadata"> 26881cb0ef41Sopenharmony_ci<span>Added in: v18.3.0</span> 26891cb0ef41Sopenharmony_ci</div> 26901cb0ef41Sopenharmony_ci<p>When <code>strict</code> set to <code>true</code>, thrown by <a href="util.html#utilparseargsconfig"><code>util.parseArgs()</code></a> if an argument 26911cb0ef41Sopenharmony_ciis not configured in <code>options</code>.</p> 26921cb0ef41Sopenharmony_ci<p><a id="ERR_PERFORMANCE_INVALID_TIMESTAMP"></a></p> 26931cb0ef41Sopenharmony_ci<h4><code>ERR_PERFORMANCE_INVALID_TIMESTAMP</code><span><a class="mark" href="#err_performance_invalid_timestamp" id="err_performance_invalid_timestamp">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_performance_invalid_timestamp"></a></h4> 26941cb0ef41Sopenharmony_ci<p>An invalid timestamp value was provided for a performance mark or measure.</p> 26951cb0ef41Sopenharmony_ci<p><a id="ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS"></a></p> 26961cb0ef41Sopenharmony_ci<h4><code>ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS</code><span><a class="mark" href="#err_performance_measure_invalid_options" id="err_performance_measure_invalid_options">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_performance_measure_invalid_options"></a></h4> 26971cb0ef41Sopenharmony_ci<p>Invalid options were provided for a performance measure.</p> 26981cb0ef41Sopenharmony_ci<p><a id="ERR_PROTO_ACCESS"></a></p> 26991cb0ef41Sopenharmony_ci<h4><code>ERR_PROTO_ACCESS</code><span><a class="mark" href="#err_proto_access" id="err_proto_access">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_proto_access"></a></h4> 27001cb0ef41Sopenharmony_ci<p>Accessing <code>Object.prototype.__proto__</code> has been forbidden using 27011cb0ef41Sopenharmony_ci<a href="cli.html#--disable-protomode"><code>--disable-proto=throw</code></a>. <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf"><code>Object.getPrototypeOf</code></a> and 27021cb0ef41Sopenharmony_ci<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf"><code>Object.setPrototypeOf</code></a> should be used to get and set the prototype of an 27031cb0ef41Sopenharmony_ciobject.</p> 27041cb0ef41Sopenharmony_ci<p><a id="ERR_REQUIRE_ESM"></a></p> 27051cb0ef41Sopenharmony_ci<h4><code>ERR_REQUIRE_ESM</code><span><a class="mark" href="#err_require_esm" id="err_require_esm">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_require_esm"></a></h4> 27061cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental</div><p></p> 27071cb0ef41Sopenharmony_ci<p>An attempt was made to <code>require()</code> an <a href="esm.html">ES Module</a>.</p> 27081cb0ef41Sopenharmony_ci<p><a id="ERR_SCRIPT_EXECUTION_INTERRUPTED"></a></p> 27091cb0ef41Sopenharmony_ci<h4><code>ERR_SCRIPT_EXECUTION_INTERRUPTED</code><span><a class="mark" href="#err_script_execution_interrupted" id="err_script_execution_interrupted">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_script_execution_interrupted"></a></h4> 27101cb0ef41Sopenharmony_ci<p>Script execution was interrupted by <code>SIGINT</code> (For 27111cb0ef41Sopenharmony_ciexample, <kbd>Ctrl</kbd>+<kbd>C</kbd> was pressed.)</p> 27121cb0ef41Sopenharmony_ci<p><a id="ERR_SCRIPT_EXECUTION_TIMEOUT"></a></p> 27131cb0ef41Sopenharmony_ci<h4><code>ERR_SCRIPT_EXECUTION_TIMEOUT</code><span><a class="mark" href="#err_script_execution_timeout" id="err_script_execution_timeout">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_script_execution_timeout"></a></h4> 27141cb0ef41Sopenharmony_ci<p>Script execution timed out, possibly due to bugs in the script being executed.</p> 27151cb0ef41Sopenharmony_ci<p><a id="ERR_SERVER_ALREADY_LISTEN"></a></p> 27161cb0ef41Sopenharmony_ci<h4><code>ERR_SERVER_ALREADY_LISTEN</code><span><a class="mark" href="#err_server_already_listen" id="err_server_already_listen">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_server_already_listen"></a></h4> 27171cb0ef41Sopenharmony_ci<p>The <a href="net.html#serverlisten"><code>server.listen()</code></a> method was called while a <code>net.Server</code> was already 27181cb0ef41Sopenharmony_cilistening. This applies to all instances of <code>net.Server</code>, including HTTP, HTTPS, 27191cb0ef41Sopenharmony_ciand HTTP/2 <code>Server</code> instances.</p> 27201cb0ef41Sopenharmony_ci<p><a id="ERR_SERVER_NOT_RUNNING"></a></p> 27211cb0ef41Sopenharmony_ci<h4><code>ERR_SERVER_NOT_RUNNING</code><span><a class="mark" href="#err_server_not_running" id="err_server_not_running">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_server_not_running"></a></h4> 27221cb0ef41Sopenharmony_ci<p>The <a href="net.html#serverclosecallback"><code>server.close()</code></a> method was called when a <code>net.Server</code> was not 27231cb0ef41Sopenharmony_cirunning. This applies to all instances of <code>net.Server</code>, including HTTP, HTTPS, 27241cb0ef41Sopenharmony_ciand HTTP/2 <code>Server</code> instances.</p> 27251cb0ef41Sopenharmony_ci<p><a id="ERR_SOCKET_ALREADY_BOUND"></a></p> 27261cb0ef41Sopenharmony_ci<h4><code>ERR_SOCKET_ALREADY_BOUND</code><span><a class="mark" href="#err_socket_already_bound" id="err_socket_already_bound">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_socket_already_bound"></a></h4> 27271cb0ef41Sopenharmony_ci<p>An attempt was made to bind a socket that has already been bound.</p> 27281cb0ef41Sopenharmony_ci<p><a id="ERR_SOCKET_BAD_BUFFER_SIZE"></a></p> 27291cb0ef41Sopenharmony_ci<h4><code>ERR_SOCKET_BAD_BUFFER_SIZE</code><span><a class="mark" href="#err_socket_bad_buffer_size" id="err_socket_bad_buffer_size">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_socket_bad_buffer_size"></a></h4> 27301cb0ef41Sopenharmony_ci<p>An invalid (negative) size was passed for either the <code>recvBufferSize</code> or 27311cb0ef41Sopenharmony_ci<code>sendBufferSize</code> options in <a href="dgram.html#dgramcreatesocketoptions-callback"><code>dgram.createSocket()</code></a>.</p> 27321cb0ef41Sopenharmony_ci<p><a id="ERR_SOCKET_BAD_PORT"></a></p> 27331cb0ef41Sopenharmony_ci<h4><code>ERR_SOCKET_BAD_PORT</code><span><a class="mark" href="#err_socket_bad_port" id="err_socket_bad_port">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_socket_bad_port"></a></h4> 27341cb0ef41Sopenharmony_ci<p>An API function expecting a port >= 0 and < 65536 received an invalid value.</p> 27351cb0ef41Sopenharmony_ci<p><a id="ERR_SOCKET_BAD_TYPE"></a></p> 27361cb0ef41Sopenharmony_ci<h4><code>ERR_SOCKET_BAD_TYPE</code><span><a class="mark" href="#err_socket_bad_type" id="err_socket_bad_type">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_socket_bad_type"></a></h4> 27371cb0ef41Sopenharmony_ci<p>An API function expecting a socket type (<code>udp4</code> or <code>udp6</code>) received an invalid 27381cb0ef41Sopenharmony_civalue.</p> 27391cb0ef41Sopenharmony_ci<p><a id="ERR_SOCKET_BUFFER_SIZE"></a></p> 27401cb0ef41Sopenharmony_ci<h4><code>ERR_SOCKET_BUFFER_SIZE</code><span><a class="mark" href="#err_socket_buffer_size" id="err_socket_buffer_size">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_socket_buffer_size"></a></h4> 27411cb0ef41Sopenharmony_ci<p>While using <a href="dgram.html#dgramcreatesocketoptions-callback"><code>dgram.createSocket()</code></a>, the size of the receive or send <code>Buffer</code> 27421cb0ef41Sopenharmony_cicould not be determined.</p> 27431cb0ef41Sopenharmony_ci<p><a id="ERR_SOCKET_CLOSED"></a></p> 27441cb0ef41Sopenharmony_ci<h4><code>ERR_SOCKET_CLOSED</code><span><a class="mark" href="#err_socket_closed" id="err_socket_closed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_socket_closed"></a></h4> 27451cb0ef41Sopenharmony_ci<p>An attempt was made to operate on an already closed socket.</p> 27461cb0ef41Sopenharmony_ci<p><a id="ERR_SOCKET_CLOSED_BEFORE_CONNECTION"></a></p> 27471cb0ef41Sopenharmony_ci<h4><code>ERR_SOCKET_CLOSED_BEFORE_CONNECTION</code><span><a class="mark" href="#err_socket_closed_before_connection" id="err_socket_closed_before_connection">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_socket_closed_before_connection"></a></h4> 27481cb0ef41Sopenharmony_ci<p>When calling <a href="net.html#socketwritedata-encoding-callback"><code>net.Socket.write()</code></a> on a connecting socket and the socket was 27491cb0ef41Sopenharmony_ciclosed before the connection was established.</p> 27501cb0ef41Sopenharmony_ci<p><a id="ERR_SOCKET_DGRAM_IS_CONNECTED"></a></p> 27511cb0ef41Sopenharmony_ci<h4><code>ERR_SOCKET_DGRAM_IS_CONNECTED</code><span><a class="mark" href="#err_socket_dgram_is_connected" id="err_socket_dgram_is_connected">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_socket_dgram_is_connected"></a></h4> 27521cb0ef41Sopenharmony_ci<p>A <a href="dgram.html#socketconnectport-address-callback"><code>dgram.connect()</code></a> call was made on an already connected socket.</p> 27531cb0ef41Sopenharmony_ci<p><a id="ERR_SOCKET_DGRAM_NOT_CONNECTED"></a></p> 27541cb0ef41Sopenharmony_ci<h4><code>ERR_SOCKET_DGRAM_NOT_CONNECTED</code><span><a class="mark" href="#err_socket_dgram_not_connected" id="err_socket_dgram_not_connected">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_socket_dgram_not_connected"></a></h4> 27551cb0ef41Sopenharmony_ci<p>A <a href="dgram.html#socketdisconnect"><code>dgram.disconnect()</code></a> or <a href="dgram.html#socketremoteaddress"><code>dgram.remoteAddress()</code></a> call was made on a 27561cb0ef41Sopenharmony_cidisconnected socket.</p> 27571cb0ef41Sopenharmony_ci<p><a id="ERR_SOCKET_DGRAM_NOT_RUNNING"></a></p> 27581cb0ef41Sopenharmony_ci<h4><code>ERR_SOCKET_DGRAM_NOT_RUNNING</code><span><a class="mark" href="#err_socket_dgram_not_running" id="err_socket_dgram_not_running">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_socket_dgram_not_running"></a></h4> 27591cb0ef41Sopenharmony_ci<p>A call was made and the UDP subsystem was not running.</p> 27601cb0ef41Sopenharmony_ci<p><a id="ERR_SRI_PARSE"></a></p> 27611cb0ef41Sopenharmony_ci<h4><code>ERR_SRI_PARSE</code><span><a class="mark" href="#err_sri_parse" id="err_sri_parse">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_sri_parse"></a></h4> 27621cb0ef41Sopenharmony_ci<p>A string was provided for a Subresource Integrity check, but was unable to be 27631cb0ef41Sopenharmony_ciparsed. Check the format of integrity attributes by looking at the 27641cb0ef41Sopenharmony_ci<a href="https://www.w3.org/TR/SRI/#the-integrity-attribute">Subresource Integrity specification</a>.</p> 27651cb0ef41Sopenharmony_ci<p><a id="ERR_STREAM_ALREADY_FINISHED"></a></p> 27661cb0ef41Sopenharmony_ci<h4><code>ERR_STREAM_ALREADY_FINISHED</code><span><a class="mark" href="#err_stream_already_finished" id="err_stream_already_finished">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stream_already_finished"></a></h4> 27671cb0ef41Sopenharmony_ci<p>A stream method was called that cannot complete because the stream was 27681cb0ef41Sopenharmony_cifinished.</p> 27691cb0ef41Sopenharmony_ci<p><a id="ERR_STREAM_CANNOT_PIPE"></a></p> 27701cb0ef41Sopenharmony_ci<h4><code>ERR_STREAM_CANNOT_PIPE</code><span><a class="mark" href="#err_stream_cannot_pipe" id="err_stream_cannot_pipe">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stream_cannot_pipe"></a></h4> 27711cb0ef41Sopenharmony_ci<p>An attempt was made to call <a href="stream.html#readablepipedestination-options"><code>stream.pipe()</code></a> on a <a href="stream.html#class-streamwritable"><code>Writable</code></a> stream.</p> 27721cb0ef41Sopenharmony_ci<p><a id="ERR_STREAM_DESTROYED"></a></p> 27731cb0ef41Sopenharmony_ci<h4><code>ERR_STREAM_DESTROYED</code><span><a class="mark" href="#err_stream_destroyed" id="err_stream_destroyed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stream_destroyed"></a></h4> 27741cb0ef41Sopenharmony_ci<p>A stream method was called that cannot complete because the stream was 27751cb0ef41Sopenharmony_cidestroyed using <code>stream.destroy()</code>.</p> 27761cb0ef41Sopenharmony_ci<p><a id="ERR_STREAM_NULL_VALUES"></a></p> 27771cb0ef41Sopenharmony_ci<h4><code>ERR_STREAM_NULL_VALUES</code><span><a class="mark" href="#err_stream_null_values" id="err_stream_null_values">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stream_null_values"></a></h4> 27781cb0ef41Sopenharmony_ci<p>An attempt was made to call <a href="stream.html#writablewritechunk-encoding-callback"><code>stream.write()</code></a> with a <code>null</code> chunk.</p> 27791cb0ef41Sopenharmony_ci<p><a id="ERR_STREAM_PREMATURE_CLOSE"></a></p> 27801cb0ef41Sopenharmony_ci<h4><code>ERR_STREAM_PREMATURE_CLOSE</code><span><a class="mark" href="#err_stream_premature_close" id="err_stream_premature_close">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stream_premature_close"></a></h4> 27811cb0ef41Sopenharmony_ci<p>An error returned by <code>stream.finished()</code> and <code>stream.pipeline()</code>, when a stream 27821cb0ef41Sopenharmony_cior a pipeline ends non gracefully with no explicit error.</p> 27831cb0ef41Sopenharmony_ci<p><a id="ERR_STREAM_PUSH_AFTER_EOF"></a></p> 27841cb0ef41Sopenharmony_ci<h4><code>ERR_STREAM_PUSH_AFTER_EOF</code><span><a class="mark" href="#err_stream_push_after_eof" id="err_stream_push_after_eof">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stream_push_after_eof"></a></h4> 27851cb0ef41Sopenharmony_ci<p>An attempt was made to call <a href="stream.html#readablepushchunk-encoding"><code>stream.push()</code></a> after a <code>null</code>(EOF) had been 27861cb0ef41Sopenharmony_cipushed to the stream.</p> 27871cb0ef41Sopenharmony_ci<p><a id="ERR_STREAM_UNSHIFT_AFTER_END_EVENT"></a></p> 27881cb0ef41Sopenharmony_ci<h4><code>ERR_STREAM_UNSHIFT_AFTER_END_EVENT</code><span><a class="mark" href="#err_stream_unshift_after_end_event" id="err_stream_unshift_after_end_event">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stream_unshift_after_end_event"></a></h4> 27891cb0ef41Sopenharmony_ci<p>An attempt was made to call <a href="stream.html#readableunshiftchunk-encoding"><code>stream.unshift()</code></a> after the <code>'end'</code> event was 27901cb0ef41Sopenharmony_ciemitted.</p> 27911cb0ef41Sopenharmony_ci<p><a id="ERR_STREAM_WRAP"></a></p> 27921cb0ef41Sopenharmony_ci<h4><code>ERR_STREAM_WRAP</code><span><a class="mark" href="#err_stream_wrap" id="err_stream_wrap">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stream_wrap"></a></h4> 27931cb0ef41Sopenharmony_ci<p>Prevents an abort if a string decoder was set on the Socket or if the decoder 27941cb0ef41Sopenharmony_ciis in <code>objectMode</code>.</p> 27951cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> <span class="hljs-title class_">Socket</span> = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node:net'</span>).<span class="hljs-property">Socket</span>; 27961cb0ef41Sopenharmony_ci<span class="hljs-keyword">const</span> instance = <span class="hljs-keyword">new</span> <span class="hljs-title class_">Socket</span>(); 27971cb0ef41Sopenharmony_ci 27981cb0ef41Sopenharmony_ciinstance.<span class="hljs-title function_">setEncoding</span>(<span class="hljs-string">'utf8'</span>);</code> <button class="copy-button">copy</button></pre> 27991cb0ef41Sopenharmony_ci<p><a id="ERR_STREAM_WRITE_AFTER_END"></a></p> 28001cb0ef41Sopenharmony_ci<h4><code>ERR_STREAM_WRITE_AFTER_END</code><span><a class="mark" href="#err_stream_write_after_end" id="err_stream_write_after_end">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stream_write_after_end"></a></h4> 28011cb0ef41Sopenharmony_ci<p>An attempt was made to call <a href="stream.html#writablewritechunk-encoding-callback"><code>stream.write()</code></a> after <code>stream.end()</code> has been 28021cb0ef41Sopenharmony_cicalled.</p> 28031cb0ef41Sopenharmony_ci<p><a id="ERR_STRING_TOO_LONG"></a></p> 28041cb0ef41Sopenharmony_ci<h4><code>ERR_STRING_TOO_LONG</code><span><a class="mark" href="#err_string_too_long" id="err_string_too_long">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_string_too_long"></a></h4> 28051cb0ef41Sopenharmony_ci<p>An attempt has been made to create a string longer than the maximum allowed 28061cb0ef41Sopenharmony_cilength.</p> 28071cb0ef41Sopenharmony_ci<p><a id="ERR_SYNTHETIC"></a></p> 28081cb0ef41Sopenharmony_ci<h4><code>ERR_SYNTHETIC</code><span><a class="mark" href="#err_synthetic" id="err_synthetic">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_synthetic"></a></h4> 28091cb0ef41Sopenharmony_ci<p>An artificial error object used to capture the call stack for diagnostic 28101cb0ef41Sopenharmony_cireports.</p> 28111cb0ef41Sopenharmony_ci<p><a id="ERR_SYSTEM_ERROR"></a></p> 28121cb0ef41Sopenharmony_ci<h4><code>ERR_SYSTEM_ERROR</code><span><a class="mark" href="#err_system_error" id="err_system_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_system_error"></a></h4> 28131cb0ef41Sopenharmony_ci<p>An unspecified or non-specific system error has occurred within the Node.js 28141cb0ef41Sopenharmony_ciprocess. The error object will have an <code>err.info</code> object property with 28151cb0ef41Sopenharmony_ciadditional details.</p> 28161cb0ef41Sopenharmony_ci<p><a id="ERR_TAP_LEXER_ERROR"></a></p> 28171cb0ef41Sopenharmony_ci<h4><code>ERR_TAP_LEXER_ERROR</code><span><a class="mark" href="#err_tap_lexer_error" id="err_tap_lexer_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tap_lexer_error"></a></h4> 28181cb0ef41Sopenharmony_ci<p>An error representing a failing lexer state.</p> 28191cb0ef41Sopenharmony_ci<p><a id="ERR_TAP_PARSER_ERROR"></a></p> 28201cb0ef41Sopenharmony_ci<h4><code>ERR_TAP_PARSER_ERROR</code><span><a class="mark" href="#err_tap_parser_error" id="err_tap_parser_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tap_parser_error"></a></h4> 28211cb0ef41Sopenharmony_ci<p>An error representing a failing parser state. Additional information about 28221cb0ef41Sopenharmony_cithe token causing the error is available via the <code>cause</code> property.</p> 28231cb0ef41Sopenharmony_ci<p><a id="ERR_TAP_VALIDATION_ERROR"></a></p> 28241cb0ef41Sopenharmony_ci<h4><code>ERR_TAP_VALIDATION_ERROR</code><span><a class="mark" href="#err_tap_validation_error" id="err_tap_validation_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tap_validation_error"></a></h4> 28251cb0ef41Sopenharmony_ci<p>This error represents a failed TAP validation.</p> 28261cb0ef41Sopenharmony_ci<p><a id="ERR_TEST_FAILURE"></a></p> 28271cb0ef41Sopenharmony_ci<h4><code>ERR_TEST_FAILURE</code><span><a class="mark" href="#err_test_failure" id="err_test_failure">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_test_failure"></a></h4> 28281cb0ef41Sopenharmony_ci<p>This error represents a failed test. Additional information about the failure 28291cb0ef41Sopenharmony_ciis available via the <code>cause</code> property. The <code>failureType</code> property specifies 28301cb0ef41Sopenharmony_ciwhat the test was doing when the failure occurred.</p> 28311cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_ALPN_CALLBACK_INVALID_RESULT"></a></p> 28321cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_ALPN_CALLBACK_INVALID_RESULT</code><span><a class="mark" href="#err_tls_alpn_callback_invalid_result" id="err_tls_alpn_callback_invalid_result">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_alpn_callback_invalid_result"></a></h4> 28331cb0ef41Sopenharmony_ci<p>This error is thrown when an <code>ALPNCallback</code> returns a value that is not in the 28341cb0ef41Sopenharmony_cilist of ALPN protocols offered by the client.</p> 28351cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS"></a></p> 28361cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS</code><span><a class="mark" href="#err_tls_alpn_callback_with_protocols" id="err_tls_alpn_callback_with_protocols">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_alpn_callback_with_protocols"></a></h4> 28371cb0ef41Sopenharmony_ci<p>This error is thrown when creating a <code>TLSServer</code> if the TLS options include 28381cb0ef41Sopenharmony_ciboth <code>ALPNProtocols</code> and <code>ALPNCallback</code>. These options are mutually exclusive.</p> 28391cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_CERT_ALTNAME_FORMAT"></a></p> 28401cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_CERT_ALTNAME_FORMAT</code><span><a class="mark" href="#err_tls_cert_altname_format" id="err_tls_cert_altname_format">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_cert_altname_format"></a></h4> 28411cb0ef41Sopenharmony_ci<p>This error is thrown by <code>checkServerIdentity</code> if a user-supplied 28421cb0ef41Sopenharmony_ci<code>subjectaltname</code> property violates encoding rules. Certificate objects produced 28431cb0ef41Sopenharmony_ciby Node.js itself always comply with encoding rules and will never cause 28441cb0ef41Sopenharmony_cithis error.</p> 28451cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_CERT_ALTNAME_INVALID"></a></p> 28461cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_CERT_ALTNAME_INVALID</code><span><a class="mark" href="#err_tls_cert_altname_invalid" id="err_tls_cert_altname_invalid">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_cert_altname_invalid"></a></h4> 28471cb0ef41Sopenharmony_ci<p>While using TLS, the host name/IP of the peer did not match any of the 28481cb0ef41Sopenharmony_ci<code>subjectAltNames</code> in its certificate.</p> 28491cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_DH_PARAM_SIZE"></a></p> 28501cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_DH_PARAM_SIZE</code><span><a class="mark" href="#err_tls_dh_param_size" id="err_tls_dh_param_size">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_dh_param_size"></a></h4> 28511cb0ef41Sopenharmony_ci<p>While using TLS, the parameter offered for the Diffie-Hellman (<code>DH</code>) 28521cb0ef41Sopenharmony_cikey-agreement protocol is too small. By default, the key length must be greater 28531cb0ef41Sopenharmony_cithan or equal to 1024 bits to avoid vulnerabilities, even though it is strongly 28541cb0ef41Sopenharmony_cirecommended to use 2048 bits or larger for stronger security.</p> 28551cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_HANDSHAKE_TIMEOUT"></a></p> 28561cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_HANDSHAKE_TIMEOUT</code><span><a class="mark" href="#err_tls_handshake_timeout" id="err_tls_handshake_timeout">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_handshake_timeout"></a></h4> 28571cb0ef41Sopenharmony_ci<p>A TLS/SSL handshake timed out. In this case, the server must also abort the 28581cb0ef41Sopenharmony_ciconnection.</p> 28591cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_INVALID_CONTEXT"></a></p> 28601cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_INVALID_CONTEXT</code><span><a class="mark" href="#err_tls_invalid_context" id="err_tls_invalid_context">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_invalid_context"></a></h4> 28611cb0ef41Sopenharmony_ci<div class="api_metadata"> 28621cb0ef41Sopenharmony_ci<span>Added in: v13.3.0</span> 28631cb0ef41Sopenharmony_ci</div> 28641cb0ef41Sopenharmony_ci<p>The context must be a <code>SecureContext</code>.</p> 28651cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_INVALID_PROTOCOL_METHOD"></a></p> 28661cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_INVALID_PROTOCOL_METHOD</code><span><a class="mark" href="#err_tls_invalid_protocol_method" id="err_tls_invalid_protocol_method">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_invalid_protocol_method"></a></h4> 28671cb0ef41Sopenharmony_ci<p>The specified <code>secureProtocol</code> method is invalid. It is either unknown, or 28681cb0ef41Sopenharmony_cidisabled because it is insecure.</p> 28691cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_INVALID_PROTOCOL_VERSION"></a></p> 28701cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_INVALID_PROTOCOL_VERSION</code><span><a class="mark" href="#err_tls_invalid_protocol_version" id="err_tls_invalid_protocol_version">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_invalid_protocol_version"></a></h4> 28711cb0ef41Sopenharmony_ci<p>Valid TLS protocol versions are <code>'TLSv1'</code>, <code>'TLSv1.1'</code>, or <code>'TLSv1.2'</code>.</p> 28721cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_INVALID_STATE"></a></p> 28731cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_INVALID_STATE</code><span><a class="mark" href="#err_tls_invalid_state" id="err_tls_invalid_state">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_invalid_state"></a></h4> 28741cb0ef41Sopenharmony_ci<div class="api_metadata"> 28751cb0ef41Sopenharmony_ci<span>Added in: v13.10.0, v12.17.0</span> 28761cb0ef41Sopenharmony_ci</div> 28771cb0ef41Sopenharmony_ci<p>The TLS socket must be connected and securely established. Ensure the 'secure' 28781cb0ef41Sopenharmony_cievent is emitted before continuing.</p> 28791cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_PROTOCOL_VERSION_CONFLICT"></a></p> 28801cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_PROTOCOL_VERSION_CONFLICT</code><span><a class="mark" href="#err_tls_protocol_version_conflict" id="err_tls_protocol_version_conflict">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_protocol_version_conflict"></a></h4> 28811cb0ef41Sopenharmony_ci<p>Attempting to set a TLS protocol <code>minVersion</code> or <code>maxVersion</code> conflicts with an 28821cb0ef41Sopenharmony_ciattempt to set the <code>secureProtocol</code> explicitly. Use one mechanism or the other.</p> 28831cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED"></a></p> 28841cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED</code><span><a class="mark" href="#err_tls_psk_set_identiy_hint_failed" id="err_tls_psk_set_identiy_hint_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_psk_set_identiy_hint_failed"></a></h4> 28851cb0ef41Sopenharmony_ci<p>Failed to set PSK identity hint. Hint may be too long.</p> 28861cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_RENEGOTIATION_DISABLED"></a></p> 28871cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_RENEGOTIATION_DISABLED</code><span><a class="mark" href="#err_tls_renegotiation_disabled" id="err_tls_renegotiation_disabled">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_renegotiation_disabled"></a></h4> 28881cb0ef41Sopenharmony_ci<p>An attempt was made to renegotiate TLS on a socket instance with renegotiation 28891cb0ef41Sopenharmony_cidisabled.</p> 28901cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_REQUIRED_SERVER_NAME"></a></p> 28911cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_REQUIRED_SERVER_NAME</code><span><a class="mark" href="#err_tls_required_server_name" id="err_tls_required_server_name">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_required_server_name"></a></h4> 28921cb0ef41Sopenharmony_ci<p>While using TLS, the <code>server.addContext()</code> method was called without providing 28931cb0ef41Sopenharmony_cia host name in the first parameter.</p> 28941cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_SESSION_ATTACK"></a></p> 28951cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_SESSION_ATTACK</code><span><a class="mark" href="#err_tls_session_attack" id="err_tls_session_attack">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_session_attack"></a></h4> 28961cb0ef41Sopenharmony_ci<p>An excessive amount of TLS renegotiations is detected, which is a potential 28971cb0ef41Sopenharmony_civector for denial-of-service attacks.</p> 28981cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_SNI_FROM_SERVER"></a></p> 28991cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_SNI_FROM_SERVER</code><span><a class="mark" href="#err_tls_sni_from_server" id="err_tls_sni_from_server">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_sni_from_server"></a></h4> 29001cb0ef41Sopenharmony_ci<p>An attempt was made to issue Server Name Indication from a TLS server-side 29011cb0ef41Sopenharmony_cisocket, which is only valid from a client.</p> 29021cb0ef41Sopenharmony_ci<p><a id="ERR_TRACE_EVENTS_CATEGORY_REQUIRED"></a></p> 29031cb0ef41Sopenharmony_ci<h4><code>ERR_TRACE_EVENTS_CATEGORY_REQUIRED</code><span><a class="mark" href="#err_trace_events_category_required" id="err_trace_events_category_required">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_trace_events_category_required"></a></h4> 29041cb0ef41Sopenharmony_ci<p>The <code>trace_events.createTracing()</code> method requires at least one trace event 29051cb0ef41Sopenharmony_cicategory.</p> 29061cb0ef41Sopenharmony_ci<p><a id="ERR_TRACE_EVENTS_UNAVAILABLE"></a></p> 29071cb0ef41Sopenharmony_ci<h4><code>ERR_TRACE_EVENTS_UNAVAILABLE</code><span><a class="mark" href="#err_trace_events_unavailable" id="err_trace_events_unavailable">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_trace_events_unavailable"></a></h4> 29081cb0ef41Sopenharmony_ci<p>The <code>node:trace_events</code> module could not be loaded because Node.js was compiled 29091cb0ef41Sopenharmony_ciwith the <code>--without-v8-platform</code> flag.</p> 29101cb0ef41Sopenharmony_ci<p><a id="ERR_TRANSFORM_ALREADY_TRANSFORMING"></a></p> 29111cb0ef41Sopenharmony_ci<h4><code>ERR_TRANSFORM_ALREADY_TRANSFORMING</code><span><a class="mark" href="#err_transform_already_transforming" id="err_transform_already_transforming">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_transform_already_transforming"></a></h4> 29121cb0ef41Sopenharmony_ci<p>A <code>Transform</code> stream finished while it was still transforming.</p> 29131cb0ef41Sopenharmony_ci<p><a id="ERR_TRANSFORM_WITH_LENGTH_0"></a></p> 29141cb0ef41Sopenharmony_ci<h4><code>ERR_TRANSFORM_WITH_LENGTH_0</code><span><a class="mark" href="#err_transform_with_length_0" id="err_transform_with_length_0">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_transform_with_length_0"></a></h4> 29151cb0ef41Sopenharmony_ci<p>A <code>Transform</code> stream finished with data still in the write buffer.</p> 29161cb0ef41Sopenharmony_ci<p><a id="ERR_TTY_INIT_FAILED"></a></p> 29171cb0ef41Sopenharmony_ci<h4><code>ERR_TTY_INIT_FAILED</code><span><a class="mark" href="#err_tty_init_failed" id="err_tty_init_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tty_init_failed"></a></h4> 29181cb0ef41Sopenharmony_ci<p>The initialization of a TTY failed due to a system error.</p> 29191cb0ef41Sopenharmony_ci<p><a id="ERR_UNAVAILABLE_DURING_EXIT"></a></p> 29201cb0ef41Sopenharmony_ci<h4><code>ERR_UNAVAILABLE_DURING_EXIT</code><span><a class="mark" href="#err_unavailable_during_exit" id="err_unavailable_during_exit">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unavailable_during_exit"></a></h4> 29211cb0ef41Sopenharmony_ci<p>Function was called within a <a href="process.html#event-exit"><code>process.on('exit')</code></a> handler that shouldn't be 29221cb0ef41Sopenharmony_cicalled within <a href="process.html#event-exit"><code>process.on('exit')</code></a> handler.</p> 29231cb0ef41Sopenharmony_ci<p><a id="ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET"></a></p> 29241cb0ef41Sopenharmony_ci<h4><code>ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET</code><span><a class="mark" href="#err_uncaught_exception_capture_already_set" id="err_uncaught_exception_capture_already_set">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_uncaught_exception_capture_already_set"></a></h4> 29251cb0ef41Sopenharmony_ci<p><a href="process.html#processsetuncaughtexceptioncapturecallbackfn"><code>process.setUncaughtExceptionCaptureCallback()</code></a> was called twice, 29261cb0ef41Sopenharmony_ciwithout first resetting the callback to <code>null</code>.</p> 29271cb0ef41Sopenharmony_ci<p>This error is designed to prevent accidentally overwriting a callback registered 29281cb0ef41Sopenharmony_cifrom another module.</p> 29291cb0ef41Sopenharmony_ci<p><a id="ERR_UNESCAPED_CHARACTERS"></a></p> 29301cb0ef41Sopenharmony_ci<h4><code>ERR_UNESCAPED_CHARACTERS</code><span><a class="mark" href="#err_unescaped_characters" id="err_unescaped_characters">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unescaped_characters"></a></h4> 29311cb0ef41Sopenharmony_ci<p>A string that contained unescaped characters was received.</p> 29321cb0ef41Sopenharmony_ci<p><a id="ERR_UNHANDLED_ERROR"></a></p> 29331cb0ef41Sopenharmony_ci<h4><code>ERR_UNHANDLED_ERROR</code><span><a class="mark" href="#err_unhandled_error" id="err_unhandled_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unhandled_error"></a></h4> 29341cb0ef41Sopenharmony_ci<p>An unhandled error occurred (for instance, when an <code>'error'</code> event is emitted 29351cb0ef41Sopenharmony_ciby an <a href="events.html#class-eventemitter"><code>EventEmitter</code></a> but an <code>'error'</code> handler is not registered).</p> 29361cb0ef41Sopenharmony_ci<p><a id="ERR_UNKNOWN_BUILTIN_MODULE"></a></p> 29371cb0ef41Sopenharmony_ci<h4><code>ERR_UNKNOWN_BUILTIN_MODULE</code><span><a class="mark" href="#err_unknown_builtin_module" id="err_unknown_builtin_module">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unknown_builtin_module"></a></h4> 29381cb0ef41Sopenharmony_ci<p>Used to identify a specific kind of internal Node.js error that should not 29391cb0ef41Sopenharmony_citypically be triggered by user code. Instances of this error point to an 29401cb0ef41Sopenharmony_ciinternal bug within the Node.js binary itself.</p> 29411cb0ef41Sopenharmony_ci<p><a id="ERR_UNKNOWN_CREDENTIAL"></a></p> 29421cb0ef41Sopenharmony_ci<h4><code>ERR_UNKNOWN_CREDENTIAL</code><span><a class="mark" href="#err_unknown_credential" id="err_unknown_credential">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unknown_credential"></a></h4> 29431cb0ef41Sopenharmony_ci<p>A Unix group or user identifier that does not exist was passed.</p> 29441cb0ef41Sopenharmony_ci<p><a id="ERR_UNKNOWN_ENCODING"></a></p> 29451cb0ef41Sopenharmony_ci<h4><code>ERR_UNKNOWN_ENCODING</code><span><a class="mark" href="#err_unknown_encoding" id="err_unknown_encoding">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unknown_encoding"></a></h4> 29461cb0ef41Sopenharmony_ci<p>An invalid or unknown encoding option was passed to an API.</p> 29471cb0ef41Sopenharmony_ci<p><a id="ERR_UNKNOWN_FILE_EXTENSION"></a></p> 29481cb0ef41Sopenharmony_ci<h4><code>ERR_UNKNOWN_FILE_EXTENSION</code><span><a class="mark" href="#err_unknown_file_extension" id="err_unknown_file_extension">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unknown_file_extension"></a></h4> 29491cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental</div><p></p> 29501cb0ef41Sopenharmony_ci<p>An attempt was made to load a module with an unknown or unsupported file 29511cb0ef41Sopenharmony_ciextension.</p> 29521cb0ef41Sopenharmony_ci<p><a id="ERR_UNKNOWN_MODULE_FORMAT"></a></p> 29531cb0ef41Sopenharmony_ci<h4><code>ERR_UNKNOWN_MODULE_FORMAT</code><span><a class="mark" href="#err_unknown_module_format" id="err_unknown_module_format">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unknown_module_format"></a></h4> 29541cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental</div><p></p> 29551cb0ef41Sopenharmony_ci<p>An attempt was made to load a module with an unknown or unsupported format.</p> 29561cb0ef41Sopenharmony_ci<p><a id="ERR_UNKNOWN_SIGNAL"></a></p> 29571cb0ef41Sopenharmony_ci<h4><code>ERR_UNKNOWN_SIGNAL</code><span><a class="mark" href="#err_unknown_signal" id="err_unknown_signal">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unknown_signal"></a></h4> 29581cb0ef41Sopenharmony_ci<p>An invalid or unknown process signal was passed to an API expecting a valid 29591cb0ef41Sopenharmony_cisignal (such as <a href="child_process.html#subprocesskillsignal"><code>subprocess.kill()</code></a>).</p> 29601cb0ef41Sopenharmony_ci<p><a id="ERR_UNSUPPORTED_DIR_IMPORT"></a></p> 29611cb0ef41Sopenharmony_ci<h4><code>ERR_UNSUPPORTED_DIR_IMPORT</code><span><a class="mark" href="#err_unsupported_dir_import" id="err_unsupported_dir_import">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unsupported_dir_import"></a></h4> 29621cb0ef41Sopenharmony_ci<p><code>import</code> a directory URL is unsupported. Instead, 29631cb0ef41Sopenharmony_ci<a href="packages.html#self-referencing-a-package-using-its-name">self-reference a package using its name</a> and <a href="packages.html#subpath-exports">define a custom subpath</a> in 29641cb0ef41Sopenharmony_cithe <a href="packages.html#exports"><code>"exports"</code></a> field of the <a href="packages.html#nodejs-packagejson-field-definitions"><code>package.json</code></a> file.</p> 29651cb0ef41Sopenharmony_ci<!-- eslint-skip --> 29661cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">import</span> <span class="hljs-string">'./'</span>; <span class="hljs-comment">// unsupported</span> 29671cb0ef41Sopenharmony_ci<span class="hljs-keyword">import</span> <span class="hljs-string">'./index.js'</span>; <span class="hljs-comment">// supported</span> 29681cb0ef41Sopenharmony_ci<span class="hljs-keyword">import</span> <span class="hljs-string">'package-name'</span>; <span class="hljs-comment">// supported</span></code> <button class="copy-button">copy</button></pre> 29691cb0ef41Sopenharmony_ci<p><a id="ERR_UNSUPPORTED_ESM_URL_SCHEME"></a></p> 29701cb0ef41Sopenharmony_ci<h4><code>ERR_UNSUPPORTED_ESM_URL_SCHEME</code><span><a class="mark" href="#err_unsupported_esm_url_scheme" id="err_unsupported_esm_url_scheme">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unsupported_esm_url_scheme"></a></h4> 29711cb0ef41Sopenharmony_ci<p><code>import</code> with URL schemes other than <code>file</code> and <code>data</code> is unsupported.</p> 29721cb0ef41Sopenharmony_ci<p><a id="ERR_USE_AFTER_CLOSE"></a></p> 29731cb0ef41Sopenharmony_ci<h4><code>ERR_USE_AFTER_CLOSE</code><span><a class="mark" href="#err_use_after_close" id="err_use_after_close">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_use_after_close"></a></h4> 29741cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental</div><p></p> 29751cb0ef41Sopenharmony_ci<p>An attempt was made to use something that was already closed.</p> 29761cb0ef41Sopenharmony_ci<p><a id="ERR_VALID_PERFORMANCE_ENTRY_TYPE"></a></p> 29771cb0ef41Sopenharmony_ci<h4><code>ERR_VALID_PERFORMANCE_ENTRY_TYPE</code><span><a class="mark" href="#err_valid_performance_entry_type" id="err_valid_performance_entry_type">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_valid_performance_entry_type"></a></h4> 29781cb0ef41Sopenharmony_ci<p>While using the Performance Timing API (<code>perf_hooks</code>), no valid performance 29791cb0ef41Sopenharmony_cientry types are found.</p> 29801cb0ef41Sopenharmony_ci<p><a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG"></a></p> 29811cb0ef41Sopenharmony_ci<h4><code>ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG</code><span><a class="mark" href="#err_vm_dynamic_import_callback_missing_flag" id="err_vm_dynamic_import_callback_missing_flag">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_vm_dynamic_import_callback_missing_flag"></a></h4> 29821cb0ef41Sopenharmony_ci<p>A dynamic import callback was invoked without <code>--experimental-vm-modules</code>.</p> 29831cb0ef41Sopenharmony_ci<p><a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING"></a></p> 29841cb0ef41Sopenharmony_ci<h4><code>ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING</code><span><a class="mark" href="#err_vm_dynamic_import_callback_missing" id="err_vm_dynamic_import_callback_missing">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_vm_dynamic_import_callback_missing"></a></h4> 29851cb0ef41Sopenharmony_ci<p>A dynamic import callback was not specified.</p> 29861cb0ef41Sopenharmony_ci<p><a id="ERR_VM_MODULE_ALREADY_LINKED"></a></p> 29871cb0ef41Sopenharmony_ci<h4><code>ERR_VM_MODULE_ALREADY_LINKED</code><span><a class="mark" href="#err_vm_module_already_linked" id="err_vm_module_already_linked">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_vm_module_already_linked"></a></h4> 29881cb0ef41Sopenharmony_ci<p>The module attempted to be linked is not eligible for linking, because of one of 29891cb0ef41Sopenharmony_cithe following reasons:</p> 29901cb0ef41Sopenharmony_ci<ul> 29911cb0ef41Sopenharmony_ci<li>It has already been linked (<code>linkingStatus</code> is <code>'linked'</code>)</li> 29921cb0ef41Sopenharmony_ci<li>It is being linked (<code>linkingStatus</code> is <code>'linking'</code>)</li> 29931cb0ef41Sopenharmony_ci<li>Linking has failed for this module (<code>linkingStatus</code> is <code>'errored'</code>)</li> 29941cb0ef41Sopenharmony_ci</ul> 29951cb0ef41Sopenharmony_ci<p><a id="ERR_VM_MODULE_CACHED_DATA_REJECTED"></a></p> 29961cb0ef41Sopenharmony_ci<h4><code>ERR_VM_MODULE_CACHED_DATA_REJECTED</code><span><a class="mark" href="#err_vm_module_cached_data_rejected" id="err_vm_module_cached_data_rejected">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_vm_module_cached_data_rejected"></a></h4> 29971cb0ef41Sopenharmony_ci<p>The <code>cachedData</code> option passed to a module constructor is invalid.</p> 29981cb0ef41Sopenharmony_ci<p><a id="ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA"></a></p> 29991cb0ef41Sopenharmony_ci<h4><code>ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA</code><span><a class="mark" href="#err_vm_module_cannot_create_cached_data" id="err_vm_module_cannot_create_cached_data">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_vm_module_cannot_create_cached_data"></a></h4> 30001cb0ef41Sopenharmony_ci<p>Cached data cannot be created for modules which have already been evaluated.</p> 30011cb0ef41Sopenharmony_ci<p><a id="ERR_VM_MODULE_DIFFERENT_CONTEXT"></a></p> 30021cb0ef41Sopenharmony_ci<h4><code>ERR_VM_MODULE_DIFFERENT_CONTEXT</code><span><a class="mark" href="#err_vm_module_different_context" id="err_vm_module_different_context">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_vm_module_different_context"></a></h4> 30031cb0ef41Sopenharmony_ci<p>The module being returned from the linker function is from a different context 30041cb0ef41Sopenharmony_cithan the parent module. Linked modules must share the same context.</p> 30051cb0ef41Sopenharmony_ci<p><a id="ERR_VM_MODULE_LINK_FAILURE"></a></p> 30061cb0ef41Sopenharmony_ci<h4><code>ERR_VM_MODULE_LINK_FAILURE</code><span><a class="mark" href="#err_vm_module_link_failure" id="err_vm_module_link_failure">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_vm_module_link_failure"></a></h4> 30071cb0ef41Sopenharmony_ci<p>The module was unable to be linked due to a failure.</p> 30081cb0ef41Sopenharmony_ci<p><a id="ERR_VM_MODULE_NOT_MODULE"></a></p> 30091cb0ef41Sopenharmony_ci<h4><code>ERR_VM_MODULE_NOT_MODULE</code><span><a class="mark" href="#err_vm_module_not_module" id="err_vm_module_not_module">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_vm_module_not_module"></a></h4> 30101cb0ef41Sopenharmony_ci<p>The fulfilled value of a linking promise is not a <code>vm.Module</code> object.</p> 30111cb0ef41Sopenharmony_ci<p><a id="ERR_VM_MODULE_STATUS"></a></p> 30121cb0ef41Sopenharmony_ci<h4><code>ERR_VM_MODULE_STATUS</code><span><a class="mark" href="#err_vm_module_status" id="err_vm_module_status">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_vm_module_status"></a></h4> 30131cb0ef41Sopenharmony_ci<p>The current module's status does not allow for this operation. The specific 30141cb0ef41Sopenharmony_cimeaning of the error depends on the specific function.</p> 30151cb0ef41Sopenharmony_ci<p><a id="ERR_WASI_ALREADY_STARTED"></a></p> 30161cb0ef41Sopenharmony_ci<h4><code>ERR_WASI_ALREADY_STARTED</code><span><a class="mark" href="#err_wasi_already_started" id="err_wasi_already_started">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_wasi_already_started"></a></h4> 30171cb0ef41Sopenharmony_ci<p>The WASI instance has already started.</p> 30181cb0ef41Sopenharmony_ci<p><a id="ERR_WASI_NOT_STARTED"></a></p> 30191cb0ef41Sopenharmony_ci<h4><code>ERR_WASI_NOT_STARTED</code><span><a class="mark" href="#err_wasi_not_started" id="err_wasi_not_started">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_wasi_not_started"></a></h4> 30201cb0ef41Sopenharmony_ci<p>The WASI instance has not been started.</p> 30211cb0ef41Sopenharmony_ci<p><a id="ERR_WEBASSEMBLY_RESPONSE"></a></p> 30221cb0ef41Sopenharmony_ci<h4><code>ERR_WEBASSEMBLY_RESPONSE</code><span><a class="mark" href="#err_webassembly_response" id="err_webassembly_response">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_webassembly_response"></a></h4> 30231cb0ef41Sopenharmony_ci<div class="api_metadata"> 30241cb0ef41Sopenharmony_ci<span>Added in: v18.1.0</span> 30251cb0ef41Sopenharmony_ci</div> 30261cb0ef41Sopenharmony_ci<p>The <code>Response</code> that has been passed to <code>WebAssembly.compileStreaming</code> or to 30271cb0ef41Sopenharmony_ci<code>WebAssembly.instantiateStreaming</code> is not a valid WebAssembly response.</p> 30281cb0ef41Sopenharmony_ci<p><a id="ERR_WORKER_INIT_FAILED"></a></p> 30291cb0ef41Sopenharmony_ci<h4><code>ERR_WORKER_INIT_FAILED</code><span><a class="mark" href="#err_worker_init_failed" id="err_worker_init_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_worker_init_failed"></a></h4> 30301cb0ef41Sopenharmony_ci<p>The <code>Worker</code> initialization failed.</p> 30311cb0ef41Sopenharmony_ci<p><a id="ERR_WORKER_INVALID_EXEC_ARGV"></a></p> 30321cb0ef41Sopenharmony_ci<h4><code>ERR_WORKER_INVALID_EXEC_ARGV</code><span><a class="mark" href="#err_worker_invalid_exec_argv" id="err_worker_invalid_exec_argv">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_worker_invalid_exec_argv"></a></h4> 30331cb0ef41Sopenharmony_ci<p>The <code>execArgv</code> option passed to the <code>Worker</code> constructor contains 30341cb0ef41Sopenharmony_ciinvalid flags.</p> 30351cb0ef41Sopenharmony_ci<p><a id="ERR_WORKER_NOT_RUNNING"></a></p> 30361cb0ef41Sopenharmony_ci<h4><code>ERR_WORKER_NOT_RUNNING</code><span><a class="mark" href="#err_worker_not_running" id="err_worker_not_running">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_worker_not_running"></a></h4> 30371cb0ef41Sopenharmony_ci<p>An operation failed because the <code>Worker</code> instance is not currently running.</p> 30381cb0ef41Sopenharmony_ci<p><a id="ERR_WORKER_OUT_OF_MEMORY"></a></p> 30391cb0ef41Sopenharmony_ci<h4><code>ERR_WORKER_OUT_OF_MEMORY</code><span><a class="mark" href="#err_worker_out_of_memory" id="err_worker_out_of_memory">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_worker_out_of_memory"></a></h4> 30401cb0ef41Sopenharmony_ci<p>The <code>Worker</code> instance terminated because it reached its memory limit.</p> 30411cb0ef41Sopenharmony_ci<p><a id="ERR_WORKER_PATH"></a></p> 30421cb0ef41Sopenharmony_ci<h4><code>ERR_WORKER_PATH</code><span><a class="mark" href="#err_worker_path" id="err_worker_path">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_worker_path"></a></h4> 30431cb0ef41Sopenharmony_ci<p>The path for the main script of a worker is neither an absolute path 30441cb0ef41Sopenharmony_cinor a relative path starting with <code>./</code> or <code>../</code>.</p> 30451cb0ef41Sopenharmony_ci<p><a id="ERR_WORKER_UNSERIALIZABLE_ERROR"></a></p> 30461cb0ef41Sopenharmony_ci<h4><code>ERR_WORKER_UNSERIALIZABLE_ERROR</code><span><a class="mark" href="#err_worker_unserializable_error" id="err_worker_unserializable_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_worker_unserializable_error"></a></h4> 30471cb0ef41Sopenharmony_ci<p>All attempts at serializing an uncaught exception from a worker thread failed.</p> 30481cb0ef41Sopenharmony_ci<p><a id="ERR_WORKER_UNSUPPORTED_OPERATION"></a></p> 30491cb0ef41Sopenharmony_ci<h4><code>ERR_WORKER_UNSUPPORTED_OPERATION</code><span><a class="mark" href="#err_worker_unsupported_operation" id="err_worker_unsupported_operation">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_worker_unsupported_operation"></a></h4> 30501cb0ef41Sopenharmony_ci<p>The requested functionality is not supported in worker threads.</p> 30511cb0ef41Sopenharmony_ci<p><a id="ERR_ZLIB_INITIALIZATION_FAILED"></a></p> 30521cb0ef41Sopenharmony_ci<h4><code>ERR_ZLIB_INITIALIZATION_FAILED</code><span><a class="mark" href="#err_zlib_initialization_failed" id="err_zlib_initialization_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_zlib_initialization_failed"></a></h4> 30531cb0ef41Sopenharmony_ci<p>Creation of a <a href="zlib.html"><code>zlib</code></a> object failed due to incorrect configuration.</p> 30541cb0ef41Sopenharmony_ci<p><a id="HPE_HEADER_OVERFLOW"></a></p> 30551cb0ef41Sopenharmony_ci<h4><code>HPE_HEADER_OVERFLOW</code><span><a class="mark" href="#hpe_header_overflow" id="hpe_header_overflow">#</a></span><a aria-hidden="true" class="legacy" id="errors_hpe_header_overflow"></a></h4> 30561cb0ef41Sopenharmony_ci<div class="api_metadata"> 30571cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary> 30581cb0ef41Sopenharmony_ci<table> 30591cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr> 30601cb0ef41Sopenharmony_ci<tr><td>v11.4.0, v10.15.0</td> 30611cb0ef41Sopenharmony_ci<td><p>Max header size in <code>http_parser</code> was set to 8 KiB.</p></td></tr> 30621cb0ef41Sopenharmony_ci</tbody></table> 30631cb0ef41Sopenharmony_ci</details> 30641cb0ef41Sopenharmony_ci</div> 30651cb0ef41Sopenharmony_ci<p>Too much HTTP header data was received. In order to protect against malicious or 30661cb0ef41Sopenharmony_cimalconfigured clients, if more than 8 KiB of HTTP header data is received then 30671cb0ef41Sopenharmony_ciHTTP parsing will abort without a request or response object being created, and 30681cb0ef41Sopenharmony_cian <code>Error</code> with this code will be emitted.</p> 30691cb0ef41Sopenharmony_ci<p><a id="HPE_CHUNK_EXTENSIONS_OVERFLOW"></a></p> 30701cb0ef41Sopenharmony_ci<h4><code>HPE_CHUNK_EXTENSIONS_OVERFLOW</code><span><a class="mark" href="#hpe_chunk_extensions_overflow" id="hpe_chunk_extensions_overflow">#</a></span><a aria-hidden="true" class="legacy" id="errors_hpe_chunk_extensions_overflow"></a></h4> 30711cb0ef41Sopenharmony_ci<div class="api_metadata"> 30721cb0ef41Sopenharmony_ci<span>Added in: v18.19.1</span> 30731cb0ef41Sopenharmony_ci</div> 30741cb0ef41Sopenharmony_ci<p>Too much data was received for a chunk extensions. In order to protect against 30751cb0ef41Sopenharmony_cimalicious or malconfigured clients, if more than 16 KiB of data is received 30761cb0ef41Sopenharmony_cithen an <code>Error</code> with this code will be emitted.</p> 30771cb0ef41Sopenharmony_ci<p><a id="HPE_UNEXPECTED_CONTENT_LENGTH"></a></p> 30781cb0ef41Sopenharmony_ci<h4><code>HPE_UNEXPECTED_CONTENT_LENGTH</code><span><a class="mark" href="#hpe_unexpected_content_length" id="hpe_unexpected_content_length">#</a></span><a aria-hidden="true" class="legacy" id="errors_hpe_unexpected_content_length"></a></h4> 30791cb0ef41Sopenharmony_ci<p>Server is sending both a <code>Content-Length</code> header and <code>Transfer-Encoding: chunked</code>.</p> 30801cb0ef41Sopenharmony_ci<p><code>Transfer-Encoding: chunked</code> allows the server to maintain an HTTP persistent 30811cb0ef41Sopenharmony_ciconnection for dynamically generated content. 30821cb0ef41Sopenharmony_ciIn this case, the <code>Content-Length</code> HTTP header cannot be used.</p> 30831cb0ef41Sopenharmony_ci<p>Use <code>Content-Length</code> or <code>Transfer-Encoding: chunked</code>.</p> 30841cb0ef41Sopenharmony_ci<p><a id="MODULE_NOT_FOUND"></a></p> 30851cb0ef41Sopenharmony_ci<h4><code>MODULE_NOT_FOUND</code><span><a class="mark" href="#module_not_found" id="module_not_found">#</a></span><a aria-hidden="true" class="legacy" id="errors_module_not_found"></a></h4> 30861cb0ef41Sopenharmony_ci<div class="api_metadata"> 30871cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary> 30881cb0ef41Sopenharmony_ci<table> 30891cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr> 30901cb0ef41Sopenharmony_ci<tr><td>v12.0.0</td> 30911cb0ef41Sopenharmony_ci<td><p>Added <code>requireStack</code> property.</p></td></tr> 30921cb0ef41Sopenharmony_ci</tbody></table> 30931cb0ef41Sopenharmony_ci</details> 30941cb0ef41Sopenharmony_ci</div> 30951cb0ef41Sopenharmony_ci<p>A module file could not be resolved by the CommonJS modules loader while 30961cb0ef41Sopenharmony_ciattempting a <a href="modules.html#requireid"><code>require()</code></a> operation or when loading the program entry point.</p> 30971cb0ef41Sopenharmony_ci</section><section><h3>Legacy Node.js error codes<span><a class="mark" href="#legacy-nodejs-error-codes" id="legacy-nodejs-error-codes">#</a></span><a aria-hidden="true" class="legacy" id="errors_legacy_node_js_error_codes"></a></h3> 30981cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_0"><a href="documentation.html#stability-index">Stability: 0</a> - Deprecated. These error codes are either inconsistent, or have 30991cb0ef41Sopenharmony_cibeen removed.</div><p></p> 31001cb0ef41Sopenharmony_ci<p><a id="ERR_CANNOT_TRANSFER_OBJECT"></a></p> 31011cb0ef41Sopenharmony_ci<h4><code>ERR_CANNOT_TRANSFER_OBJECT</code><span><a class="mark" href="#err_cannot_transfer_object" id="err_cannot_transfer_object">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_cannot_transfer_object"></a></h4> 31021cb0ef41Sopenharmony_ci<!-- 31031cb0ef41Sopenharmony_ciadded: v10.5.0 31041cb0ef41Sopenharmony_ciremoved: v12.5.0 31051cb0ef41Sopenharmony_ci--> 31061cb0ef41Sopenharmony_ci<p>The value passed to <code>postMessage()</code> contained an object that is not supported 31071cb0ef41Sopenharmony_cifor transferring.</p> 31081cb0ef41Sopenharmony_ci<p><a id="ERR_CRYPTO_HASH_DIGEST_NO_UTF16"></a></p> 31091cb0ef41Sopenharmony_ci<h4><code>ERR_CRYPTO_HASH_DIGEST_NO_UTF16</code><span><a class="mark" href="#err_crypto_hash_digest_no_utf16" id="err_crypto_hash_digest_no_utf16">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_crypto_hash_digest_no_utf16"></a></h4> 31101cb0ef41Sopenharmony_ci<div class="api_metadata"> 31111cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v12.12.0</span> 31121cb0ef41Sopenharmony_ci</div> 31131cb0ef41Sopenharmony_ci<p>The UTF-16 encoding was used with <a href="crypto.html#hashdigestencoding"><code>hash.digest()</code></a>. While the 31141cb0ef41Sopenharmony_ci<code>hash.digest()</code> method does allow an <code>encoding</code> argument to be passed in, 31151cb0ef41Sopenharmony_cicausing the method to return a string rather than a <code>Buffer</code>, the UTF-16 31161cb0ef41Sopenharmony_ciencoding (e.g. <code>ucs</code> or <code>utf16le</code>) is not supported.</p> 31171cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_FRAME_ERROR"></a></p> 31181cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_FRAME_ERROR</code><span><a class="mark" href="#err_http2_frame_error" id="err_http2_frame_error">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_frame_error"></a></h4> 31191cb0ef41Sopenharmony_ci<div class="api_metadata"> 31201cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 31211cb0ef41Sopenharmony_ci</div> 31221cb0ef41Sopenharmony_ci<p>Used when a failure occurs sending an individual frame on the HTTP/2 31231cb0ef41Sopenharmony_cisession.</p> 31241cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_HEADERS_OBJECT"></a></p> 31251cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_HEADERS_OBJECT</code><span><a class="mark" href="#err_http2_headers_object" id="err_http2_headers_object">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_headers_object"></a></h4> 31261cb0ef41Sopenharmony_ci<div class="api_metadata"> 31271cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 31281cb0ef41Sopenharmony_ci</div> 31291cb0ef41Sopenharmony_ci<p>Used when an HTTP/2 Headers Object is expected.</p> 31301cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_HEADER_REQUIRED"></a></p> 31311cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_HEADER_REQUIRED</code><span><a class="mark" href="#err_http2_header_required" id="err_http2_header_required">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_header_required"></a></h4> 31321cb0ef41Sopenharmony_ci<div class="api_metadata"> 31331cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 31341cb0ef41Sopenharmony_ci</div> 31351cb0ef41Sopenharmony_ci<p>Used when a required header is missing in an HTTP/2 message.</p> 31361cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND"></a></p> 31371cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND</code><span><a class="mark" href="#err_http2_info_headers_after_respond" id="err_http2_info_headers_after_respond">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_info_headers_after_respond"></a></h4> 31381cb0ef41Sopenharmony_ci<div class="api_metadata"> 31391cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 31401cb0ef41Sopenharmony_ci</div> 31411cb0ef41Sopenharmony_ci<p>HTTP/2 informational headers must only be sent <em>prior</em> to calling the 31421cb0ef41Sopenharmony_ci<code>Http2Stream.prototype.respond()</code> method.</p> 31431cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP2_STREAM_CLOSED"></a></p> 31441cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP2_STREAM_CLOSED</code><span><a class="mark" href="#err_http2_stream_closed" id="err_http2_stream_closed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http2_stream_closed"></a></h4> 31451cb0ef41Sopenharmony_ci<div class="api_metadata"> 31461cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 31471cb0ef41Sopenharmony_ci</div> 31481cb0ef41Sopenharmony_ci<p>Used when an action has been performed on an HTTP/2 Stream that has already 31491cb0ef41Sopenharmony_cibeen closed.</p> 31501cb0ef41Sopenharmony_ci<p><a id="ERR_HTTP_INVALID_CHAR"></a></p> 31511cb0ef41Sopenharmony_ci<h4><code>ERR_HTTP_INVALID_CHAR</code><span><a class="mark" href="#err_http_invalid_char" id="err_http_invalid_char">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_http_invalid_char"></a></h4> 31521cb0ef41Sopenharmony_ci<div class="api_metadata"> 31531cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 31541cb0ef41Sopenharmony_ci</div> 31551cb0ef41Sopenharmony_ci<p>Used when an invalid character is found in an HTTP response status message 31561cb0ef41Sopenharmony_ci(reason phrase).</p> 31571cb0ef41Sopenharmony_ci<p><a id="ERR_INDEX_OUT_OF_RANGE"></a></p> 31581cb0ef41Sopenharmony_ci<h4><code>ERR_INDEX_OUT_OF_RANGE</code><span><a class="mark" href="#err_index_out_of_range" id="err_index_out_of_range">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_index_out_of_range"></a></h4> 31591cb0ef41Sopenharmony_ci<div class="api_metadata"> 31601cb0ef41Sopenharmony_ci<span>Added in: v10.0.0</span><span>Removed in: v11.0.0</span> 31611cb0ef41Sopenharmony_ci</div> 31621cb0ef41Sopenharmony_ci<p>A given index was out of the accepted range (e.g. negative offsets).</p> 31631cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_OPT_VALUE"></a></p> 31641cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_OPT_VALUE</code><span><a class="mark" href="#err_invalid_opt_value" id="err_invalid_opt_value">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_opt_value"></a></h4> 31651cb0ef41Sopenharmony_ci<div class="api_metadata"> 31661cb0ef41Sopenharmony_ci<span>Added in: v8.0.0</span><span>Removed in: v15.0.0</span> 31671cb0ef41Sopenharmony_ci</div> 31681cb0ef41Sopenharmony_ci<p>An invalid or unexpected value was passed in an options object.</p> 31691cb0ef41Sopenharmony_ci<p><a id="ERR_INVALID_OPT_VALUE_ENCODING"></a></p> 31701cb0ef41Sopenharmony_ci<h4><code>ERR_INVALID_OPT_VALUE_ENCODING</code><span><a class="mark" href="#err_invalid_opt_value_encoding" id="err_invalid_opt_value_encoding">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_invalid_opt_value_encoding"></a></h4> 31711cb0ef41Sopenharmony_ci<div class="api_metadata"> 31721cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v15.0.0</span> 31731cb0ef41Sopenharmony_ci</div> 31741cb0ef41Sopenharmony_ci<p>An invalid or unknown file encoding was passed.</p> 31751cb0ef41Sopenharmony_ci<p><a id="ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST"></a></p> 31761cb0ef41Sopenharmony_ci<h4><code>ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST</code><span><a class="mark" href="#err_missing_message_port_in_transfer_list" id="err_missing_message_port_in_transfer_list">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_missing_message_port_in_transfer_list"></a></h4> 31771cb0ef41Sopenharmony_ci<div class="api_metadata"> 31781cb0ef41Sopenharmony_ci<span>Removed in: v15.0.0</span> 31791cb0ef41Sopenharmony_ci</div> 31801cb0ef41Sopenharmony_ci<p>This error code was replaced by <a href="#err_missing_transferable_in_transfer_list"><code>ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST</code></a> 31811cb0ef41Sopenharmony_ciin Node.js v15.0.0, because it is no longer accurate as other types of 31821cb0ef41Sopenharmony_citransferable objects also exist now.</p> 31831cb0ef41Sopenharmony_ci<p><a id="ERR_NAPI_CONS_PROTOTYPE_OBJECT"></a></p> 31841cb0ef41Sopenharmony_ci<h4><code>ERR_NAPI_CONS_PROTOTYPE_OBJECT</code><span><a class="mark" href="#err_napi_cons_prototype_object" id="err_napi_cons_prototype_object">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_napi_cons_prototype_object"></a></h4> 31851cb0ef41Sopenharmony_ci<div class="api_metadata"> 31861cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 31871cb0ef41Sopenharmony_ci</div> 31881cb0ef41Sopenharmony_ci<p>Used by the <code>Node-API</code> when <code>Constructor.prototype</code> is not an object.</p> 31891cb0ef41Sopenharmony_ci<p><a id="ERR_NETWORK_IMPORT_BAD_RESPONSE"></a></p> 31901cb0ef41Sopenharmony_ci<h4><code>ERR_NETWORK_IMPORT_BAD_RESPONSE</code><span><a class="mark" href="#err_network_import_bad_response" id="err_network_import_bad_response">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_network_import_bad_response"></a></h4> 31911cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental</div><p></p> 31921cb0ef41Sopenharmony_ci<p>Response was received but was invalid when importing a module over the network.</p> 31931cb0ef41Sopenharmony_ci<p><a id="ERR_NETWORK_IMPORT_DISALLOWED"></a></p> 31941cb0ef41Sopenharmony_ci<h4><code>ERR_NETWORK_IMPORT_DISALLOWED</code><span><a class="mark" href="#err_network_import_disallowed" id="err_network_import_disallowed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_network_import_disallowed"></a></h4> 31951cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental</div><p></p> 31961cb0ef41Sopenharmony_ci<p>A network module attempted to load another module that it is not allowed to 31971cb0ef41Sopenharmony_ciload. Likely this restriction is for security reasons.</p> 31981cb0ef41Sopenharmony_ci<p><a id="ERR_NO_LONGER_SUPPORTED"></a></p> 31991cb0ef41Sopenharmony_ci<h4><code>ERR_NO_LONGER_SUPPORTED</code><span><a class="mark" href="#err_no_longer_supported" id="err_no_longer_supported">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_no_longer_supported"></a></h4> 32001cb0ef41Sopenharmony_ci<p>A Node.js API was called in an unsupported manner, such as 32011cb0ef41Sopenharmony_ci<code>Buffer.write(string, encoding, offset[, length])</code>.</p> 32021cb0ef41Sopenharmony_ci<p><a id="ERR_OPERATION_FAILED"></a></p> 32031cb0ef41Sopenharmony_ci<h4><code>ERR_OPERATION_FAILED</code><span><a class="mark" href="#err_operation_failed" id="err_operation_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_operation_failed"></a></h4> 32041cb0ef41Sopenharmony_ci<div class="api_metadata"> 32051cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span> 32061cb0ef41Sopenharmony_ci</div> 32071cb0ef41Sopenharmony_ci<p>An operation failed. This is typically used to signal the general failure 32081cb0ef41Sopenharmony_ciof an asynchronous operation.</p> 32091cb0ef41Sopenharmony_ci<p><a id="ERR_OUTOFMEMORY"></a></p> 32101cb0ef41Sopenharmony_ci<h4><code>ERR_OUTOFMEMORY</code><span><a class="mark" href="#err_outofmemory" id="err_outofmemory">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_outofmemory"></a></h4> 32111cb0ef41Sopenharmony_ci<div class="api_metadata"> 32121cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 32131cb0ef41Sopenharmony_ci</div> 32141cb0ef41Sopenharmony_ci<p>Used generically to identify that an operation caused an out of memory 32151cb0ef41Sopenharmony_cicondition.</p> 32161cb0ef41Sopenharmony_ci<p><a id="ERR_PARSE_HISTORY_DATA"></a></p> 32171cb0ef41Sopenharmony_ci<h4><code>ERR_PARSE_HISTORY_DATA</code><span><a class="mark" href="#err_parse_history_data" id="err_parse_history_data">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_parse_history_data"></a></h4> 32181cb0ef41Sopenharmony_ci<div class="api_metadata"> 32191cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 32201cb0ef41Sopenharmony_ci</div> 32211cb0ef41Sopenharmony_ci<p>The <code>node:repl</code> module was unable to parse data from the REPL history file.</p> 32221cb0ef41Sopenharmony_ci<p><a id="ERR_SOCKET_CANNOT_SEND"></a></p> 32231cb0ef41Sopenharmony_ci<h4><code>ERR_SOCKET_CANNOT_SEND</code><span><a class="mark" href="#err_socket_cannot_send" id="err_socket_cannot_send">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_socket_cannot_send"></a></h4> 32241cb0ef41Sopenharmony_ci<div class="api_metadata"> 32251cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v14.0.0</span> 32261cb0ef41Sopenharmony_ci</div> 32271cb0ef41Sopenharmony_ci<p>Data could not be sent on a socket.</p> 32281cb0ef41Sopenharmony_ci<p><a id="ERR_STDERR_CLOSE"></a></p> 32291cb0ef41Sopenharmony_ci<h4><code>ERR_STDERR_CLOSE</code><span><a class="mark" href="#err_stderr_close" id="err_stderr_close">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stderr_close"></a></h4> 32301cb0ef41Sopenharmony_ci<div class="api_metadata"> 32311cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary> 32321cb0ef41Sopenharmony_ci<table> 32331cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr> 32341cb0ef41Sopenharmony_ci<tr><td>v10.12.0</td> 32351cb0ef41Sopenharmony_ci<td><p>Rather than emitting an error, <code>process.stderr.end()</code> now only closes the stream side but not the underlying resource, making this error obsolete.</p></td></tr> 32361cb0ef41Sopenharmony_ci<tr><td>v10.12.0</td> 32371cb0ef41Sopenharmony_ci<td><p><span>Removed in: v10.12.0</span></p></td></tr> 32381cb0ef41Sopenharmony_ci</tbody></table> 32391cb0ef41Sopenharmony_ci</details> 32401cb0ef41Sopenharmony_ci</div> 32411cb0ef41Sopenharmony_ci<p>An attempt was made to close the <code>process.stderr</code> stream. By design, Node.js 32421cb0ef41Sopenharmony_cidoes not allow <code>stdout</code> or <code>stderr</code> streams to be closed by user code.</p> 32431cb0ef41Sopenharmony_ci<p><a id="ERR_STDOUT_CLOSE"></a></p> 32441cb0ef41Sopenharmony_ci<h4><code>ERR_STDOUT_CLOSE</code><span><a class="mark" href="#err_stdout_close" id="err_stdout_close">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stdout_close"></a></h4> 32451cb0ef41Sopenharmony_ci<div class="api_metadata"> 32461cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary> 32471cb0ef41Sopenharmony_ci<table> 32481cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr> 32491cb0ef41Sopenharmony_ci<tr><td>v10.12.0</td> 32501cb0ef41Sopenharmony_ci<td><p>Rather than emitting an error, <code>process.stderr.end()</code> now only closes the stream side but not the underlying resource, making this error obsolete.</p></td></tr> 32511cb0ef41Sopenharmony_ci<tr><td>v10.12.0</td> 32521cb0ef41Sopenharmony_ci<td><p><span>Removed in: v10.12.0</span></p></td></tr> 32531cb0ef41Sopenharmony_ci</tbody></table> 32541cb0ef41Sopenharmony_ci</details> 32551cb0ef41Sopenharmony_ci</div> 32561cb0ef41Sopenharmony_ci<p>An attempt was made to close the <code>process.stdout</code> stream. By design, Node.js 32571cb0ef41Sopenharmony_cidoes not allow <code>stdout</code> or <code>stderr</code> streams to be closed by user code.</p> 32581cb0ef41Sopenharmony_ci<p><a id="ERR_STREAM_READ_NOT_IMPLEMENTED"></a></p> 32591cb0ef41Sopenharmony_ci<h4><code>ERR_STREAM_READ_NOT_IMPLEMENTED</code><span><a class="mark" href="#err_stream_read_not_implemented" id="err_stream_read_not_implemented">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_stream_read_not_implemented"></a></h4> 32601cb0ef41Sopenharmony_ci<div class="api_metadata"> 32611cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 32621cb0ef41Sopenharmony_ci</div> 32631cb0ef41Sopenharmony_ci<p>Used when an attempt is made to use a readable stream that has not implemented 32641cb0ef41Sopenharmony_ci<a href="stream.html#readable_readsize"><code>readable._read()</code></a>.</p> 32651cb0ef41Sopenharmony_ci<p><a id="ERR_TLS_RENEGOTIATION_FAILED"></a></p> 32661cb0ef41Sopenharmony_ci<h4><code>ERR_TLS_RENEGOTIATION_FAILED</code><span><a class="mark" href="#err_tls_renegotiation_failed" id="err_tls_renegotiation_failed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_tls_renegotiation_failed"></a></h4> 32671cb0ef41Sopenharmony_ci<div class="api_metadata"> 32681cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 32691cb0ef41Sopenharmony_ci</div> 32701cb0ef41Sopenharmony_ci<p>Used when a TLS renegotiation request has failed in a non-specific way.</p> 32711cb0ef41Sopenharmony_ci<p><a id="ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER"></a></p> 32721cb0ef41Sopenharmony_ci<h4><code>ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER</code><span><a class="mark" href="#err_transferring_externalized_sharedarraybuffer" id="err_transferring_externalized_sharedarraybuffer">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_transferring_externalized_sharedarraybuffer"></a></h4> 32731cb0ef41Sopenharmony_ci<div class="api_metadata"> 32741cb0ef41Sopenharmony_ci<span>Added in: v10.5.0</span><span>Removed in: v14.0.0</span> 32751cb0ef41Sopenharmony_ci</div> 32761cb0ef41Sopenharmony_ci<p>A <code>SharedArrayBuffer</code> whose memory is not managed by the JavaScript engine 32771cb0ef41Sopenharmony_cior by Node.js was encountered during serialization. Such a <code>SharedArrayBuffer</code> 32781cb0ef41Sopenharmony_cicannot be serialized.</p> 32791cb0ef41Sopenharmony_ci<p>This can only happen when native addons create <code>SharedArrayBuffer</code>s in 32801cb0ef41Sopenharmony_ci"externalized" mode, or put existing <code>SharedArrayBuffer</code> into externalized mode.</p> 32811cb0ef41Sopenharmony_ci<p><a id="ERR_UNKNOWN_STDIN_TYPE"></a></p> 32821cb0ef41Sopenharmony_ci<h4><code>ERR_UNKNOWN_STDIN_TYPE</code><span><a class="mark" href="#err_unknown_stdin_type" id="err_unknown_stdin_type">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unknown_stdin_type"></a></h4> 32831cb0ef41Sopenharmony_ci<div class="api_metadata"> 32841cb0ef41Sopenharmony_ci<span>Added in: v8.0.0</span><span>Removed in: v11.7.0</span> 32851cb0ef41Sopenharmony_ci</div> 32861cb0ef41Sopenharmony_ci<p>An attempt was made to launch a Node.js process with an unknown <code>stdin</code> file 32871cb0ef41Sopenharmony_citype. This error is usually an indication of a bug within Node.js itself, 32881cb0ef41Sopenharmony_cialthough it is possible for user code to trigger it.</p> 32891cb0ef41Sopenharmony_ci<p><a id="ERR_UNKNOWN_STREAM_TYPE"></a></p> 32901cb0ef41Sopenharmony_ci<h4><code>ERR_UNKNOWN_STREAM_TYPE</code><span><a class="mark" href="#err_unknown_stream_type" id="err_unknown_stream_type">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_unknown_stream_type"></a></h4> 32911cb0ef41Sopenharmony_ci<div class="api_metadata"> 32921cb0ef41Sopenharmony_ci<span>Added in: v8.0.0</span><span>Removed in: v11.7.0</span> 32931cb0ef41Sopenharmony_ci</div> 32941cb0ef41Sopenharmony_ci<p>An attempt was made to launch a Node.js process with an unknown <code>stdout</code> or 32951cb0ef41Sopenharmony_ci<code>stderr</code> file type. This error is usually an indication of a bug within Node.js 32961cb0ef41Sopenharmony_ciitself, although it is possible for user code to trigger it.</p> 32971cb0ef41Sopenharmony_ci<p><a id="ERR_V8BREAKITERATOR"></a></p> 32981cb0ef41Sopenharmony_ci<h4><code>ERR_V8BREAKITERATOR</code><span><a class="mark" href="#err_v8breakiterator" id="err_v8breakiterator">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_v8breakiterator"></a></h4> 32991cb0ef41Sopenharmony_ci<p>The V8 <code>BreakIterator</code> API was used but the full ICU data set is not installed.</p> 33001cb0ef41Sopenharmony_ci<p><a id="ERR_VALUE_OUT_OF_RANGE"></a></p> 33011cb0ef41Sopenharmony_ci<h4><code>ERR_VALUE_OUT_OF_RANGE</code><span><a class="mark" href="#err_value_out_of_range" id="err_value_out_of_range">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_value_out_of_range"></a></h4> 33021cb0ef41Sopenharmony_ci<div class="api_metadata"> 33031cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 33041cb0ef41Sopenharmony_ci</div> 33051cb0ef41Sopenharmony_ci<p>Used when a given value is out of the accepted range.</p> 33061cb0ef41Sopenharmony_ci<p><a id="ERR_VM_MODULE_NOT_LINKED"></a></p> 33071cb0ef41Sopenharmony_ci<h4><code>ERR_VM_MODULE_NOT_LINKED</code><span><a class="mark" href="#err_vm_module_not_linked" id="err_vm_module_not_linked">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_vm_module_not_linked"></a></h4> 33081cb0ef41Sopenharmony_ci<p>The module must be successfully linked before instantiation.</p> 33091cb0ef41Sopenharmony_ci<p><a id="ERR_VM_MODULE_LINKING_ERRORED"></a></p> 33101cb0ef41Sopenharmony_ci<h4><code>ERR_VM_MODULE_LINKING_ERRORED</code><span><a class="mark" href="#err_vm_module_linking_errored" id="err_vm_module_linking_errored">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_vm_module_linking_errored"></a></h4> 33111cb0ef41Sopenharmony_ci<div class="api_metadata"> 33121cb0ef41Sopenharmony_ci<span>Added in: v10.0.0</span><span>Removed in: v18.1.0</span> 33131cb0ef41Sopenharmony_ci</div> 33141cb0ef41Sopenharmony_ci<p>The linker function returned a module for which linking has failed.</p> 33151cb0ef41Sopenharmony_ci<p><a id="ERR_WORKER_UNSUPPORTED_EXTENSION"></a></p> 33161cb0ef41Sopenharmony_ci<h4><code>ERR_WORKER_UNSUPPORTED_EXTENSION</code><span><a class="mark" href="#err_worker_unsupported_extension" id="err_worker_unsupported_extension">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_worker_unsupported_extension"></a></h4> 33171cb0ef41Sopenharmony_ci<div class="api_metadata"> 33181cb0ef41Sopenharmony_ci<span>Added in: v11.0.0</span><span>Removed in: v16.9.0</span> 33191cb0ef41Sopenharmony_ci</div> 33201cb0ef41Sopenharmony_ci<p>The pathname used for the main script of a worker has an 33211cb0ef41Sopenharmony_ciunknown file extension.</p> 33221cb0ef41Sopenharmony_ci<p><a id="ERR_ZLIB_BINDING_CLOSED"></a></p> 33231cb0ef41Sopenharmony_ci<h4><code>ERR_ZLIB_BINDING_CLOSED</code><span><a class="mark" href="#err_zlib_binding_closed" id="err_zlib_binding_closed">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_zlib_binding_closed"></a></h4> 33241cb0ef41Sopenharmony_ci<div class="api_metadata"> 33251cb0ef41Sopenharmony_ci<span>Added in: v9.0.0</span><span>Removed in: v10.0.0</span> 33261cb0ef41Sopenharmony_ci</div> 33271cb0ef41Sopenharmony_ci<p>Used when an attempt is made to use a <code>zlib</code> object after it has already been 33281cb0ef41Sopenharmony_ciclosed.</p> 33291cb0ef41Sopenharmony_ci<p><a id="ERR_CPU_USAGE"></a></p> 33301cb0ef41Sopenharmony_ci<h4><code>ERR_CPU_USAGE</code><span><a class="mark" href="#err_cpu_usage" id="err_cpu_usage">#</a></span><a aria-hidden="true" class="legacy" id="errors_err_cpu_usage"></a></h4> 33311cb0ef41Sopenharmony_ci<div class="api_metadata"> 33321cb0ef41Sopenharmony_ci<span>Removed in: v15.0.0</span> 33331cb0ef41Sopenharmony_ci</div> 33341cb0ef41Sopenharmony_ci<p>The native call from <code>process.cpuUsage</code> could not be processed.</p></section> 33351cb0ef41Sopenharmony_ci <!-- API END --> 33361cb0ef41Sopenharmony_ci </div> 33371cb0ef41Sopenharmony_ci </div> 33381cb0ef41Sopenharmony_ci </div> 33391cb0ef41Sopenharmony_ci</body> 33401cb0ef41Sopenharmony_ci</html> 3341