{"id":2441,"date":"2022-05-15T10:40:14","date_gmt":"2022-05-15T01:40:14","guid":{"rendered":"https:\/\/blog.wsd.sh\/?p=2441"},"modified":"2022-05-21T06:27:38","modified_gmt":"2022-05-20T21:27:38","slug":"errornode2551164-experimentalwarning-the-fetch-api-is-an-experimental-feature-this-feature-could-change-at-any-time","status":"publish","type":"post","link":"https:\/\/blog.wsd.sh\/?p=2441","title":{"rendered":"<small>(node:2551164) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time <\/small>"},"content":{"rendered":"<p>\uff11\uff0enodejs: Error<br \/>\n\u30fbnode\u306eversion\u3092\u4e0a\u3052\u308b\u3068application\u306e\u5b9f\u884c\u6642\u306berror\u304c\u3067\u308b<\/p>\n<pre>\r\n(node:2551164) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time\r\n(Use `node --trace-warnings ...` to show where the warning was created)\r\nnode:internal\/deps\/undici\/undici:6266\r\n            fetchParams.controller.controller.error(new TypeError(\"terminated\", {\r\n                                                    ^\r\n\r\nTypeError: terminated\r\n    at Fetch.onAborted (node:internal\/deps\/undici\/undici:6266:53)\r\n    at Fetch.emit (node:events:527:28)\r\n    at Fetch.terminate (node:internal\/deps\/undici\/undici:5522:14)\r\n    at Object.onError (node:internal\/deps\/undici\/undici:6357:36)\r\n    at Request.onError (node:internal\/deps\/undici\/undici:2023:31)\r\n    at errorRequest (node:internal\/deps\/undici\/undici:3949:17)\r\n    at Socket.onSocketClose (node:internal\/deps\/undici\/undici:3411:9)\r\n    at Socket.emit (node:events:527:28)\r\n    at TCP.<anonymous> (node:net:715:12) {\r\n  [cause]: TrailerMismatchError: Trailers does not match trailer header\r\n      at Parser.onMessageComplete (node:internal\/deps\/undici\/undici:3317:34)\r\n      at wasm_on_message_complete (node:internal\/deps\/undici\/undici:2953:34)\r\n      at wasm:\/\/wasm\/0002afd2:wasm-function[45]:0x8dc\r\n      at wasm:\/\/wasm\/0002afd2:wasm-function[56]:0x1ad3\r\n      at wasm:\/\/wasm\/0002afd2:wasm-function[55]:0xcd7\r\n      at wasm:\/\/wasm\/0002afd2:wasm-function[21]:0x4e4\r\n      at Parser.execute (node:internal\/deps\/undici\/undici:3055:26)\r\n      at Parser.readMore (node:internal\/deps\/undici\/undici:3034:16)\r\n      at Socket.onSocketReadable (node:internal\/deps\/undici\/undici:3364:14)\r\n      at Socket.emit (node:events:527:28)\r\n      at emitReadable_ (node:internal\/streams\/readable:590:12)\r\n      at process.processTicksAndRejections (node:internal\/process\/task_queues:81:21) {\r\n    code: 'UND_ERR_TRAILER_MISMATCH'\r\n  }\r\n}\r\n<\/pre>\n<p>\uff12\uff0e\u73fe\u5728\u306enode\u306eversion\u306e\u78ba\u8a8d\u3068\u5bfe\u7b56<\/p>\n<pre>\r\n# node -v\r\nv18.1.0\r\n<\/pre>\n<p>\u30fb\u5bfe\u7b56\u306f\u3001node\u306eversion\u309217\u306bdowngrade<br \/>\n\uff13\uff0enode\u306eversion 17\u304cinstall\u6e08\u307f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d<\/p>\n<pre>\r\n# nvm use 17\r\nN\/A: version \"17 -> N\/A\" is not yet installed.\r\n\r\nYou need to run \"nvm install 17\" to install it before using it.\r\n<\/pre>\n<p>\uff14\uff0envm\u3067node\u306eversion 17 \u3092install<\/p>\n<pre>\r\n# nvm install 17\r\nDownloading and installing node v17.9.0...\r\nDownloading https:\/\/nodejs.org\/dist\/v17.9.0\/node-v17.9.0-linux-x64.tar.xz...\r\n######################################################################### 100.0%\r\nComputing checksum with sha256sum\r\nChecksums matched!\r\nNow using node v17.9.0 (npm v8.5.5)\r\nCreating default alias: default -> 17 (-> v17.9.0)\r\n#\r\n<\/pre>\n<p>\uff15\uff0envm\u3067node\u306eversion 17 \u3092\u4f7f\u7528<br \/>\n\u30fb\u4e00\u5ea6\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u6b21\u306bterminal\u3092\u7acb\u3061\u4e0a\u3052\u76f4\u3057\u3066\u3082\u3001use\u306e\u72b6\u614b\u306f\u4fdd\u5b58\u3055\u308c\u308b<\/p>\n<pre>\r\n# nvm use 17\r\nNow using node v17.9.0 (npm v8.5.5)\r\n# node -v\r\nv17.9.0\r\n#\r\n<\/pre>\n<p>\uff16\uff0e\u7d50\u679c<br \/>\n\u30fbapplication\u306e\u5b9f\u884c\u6642\u306eerror\u306f\u51fa\u306a\u304f\u306a\u3063\u305f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uff11\uff0enodejs: Error \u30fbnode\u306eversion\u3092\u4e0a\u3052\u308b\u3068application\u306e\u5b9f\u884c\u6642\u306berror\u304c\u3067\u308b (node:2551164) ExperimentalWarning: The Fetch API i&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2441"}],"collection":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2441"}],"version-history":[{"count":19,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2441\/revisions"}],"predecessor-version":[{"id":2551,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2441\/revisions\/2551"}],"wp:attachment":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}