Title: node v18.6.0. - TypeError: The "source" argument must be an instance of Response or an Promise resolving to Response. Received an instance of Response · Issue #43925 · nodejs/node · GitHub
Open Graph Title: node v18.6.0. - TypeError: The "source" argument must be an instance of Response or an Promise resolving to Response. Received an instance of Response · Issue #43925 · nodejs/node
X Title: node v18.6.0. - TypeError: The "source" argument must be an instance of Response or an Promise resolving to Response. Received an instance of Response · Issue #43925 · nodejs/node
Description: Version v18.6.0 Platform Darwin Asias-MacBook-Air.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 arm64 Subsystem No response What steps will reproduce the bug? Hey :) I'...
Open Graph Description: Version v18.6.0 Platform Darwin Asias-MacBook-Air.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 arm64 Subsystem No response What...
X Description: Version v18.6.0 Platform Darwin Asias-MacBook-Air.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 arm64 Subsystem No response What...
Opengraph URL: https://github.com/nodejs/node/issues/43925
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"node v18.6.0. - TypeError: The \"source\" argument must be an instance of Response or an Promise resolving to Response. Received an instance of Response","articleBody":"### Version\n\nv18.6.0\n\n### Platform\n\nDarwin Asias-MacBook-Air.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 arm64\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nHey :)\r\nI've upgraded node to 18.6.0 and started receiving following typescript error (I work on the latest typescript version 4.7.4:\r\n```\r\nTypeError: The \"source\" argument must be an instance of Response or an Promise resolving to Response. Received an instance of Response\r\n```\r\n\r\nError occurs when calling wasm method:\r\n```\r\nawait WebAssembly.compileStreaming(wasmResponse);\r\n```\r\n\r\nAPI:\r\n```\r\nfunction WebAssembly.compileStreaming(source: Response | PromiseLike\u003cResponse>): Promise\u003cWebAssembly.Module>\r\n```\r\n\r\nThis is how I generate the response:\r\n```\r\nfunction generateResponse(wasmBinary: Buffer): Response {\r\n const init = { status: 200, statusText: 'OK', headers: { 'Content-Type': 'application/wasm' } };\r\n return new Response(wasmBinary, init);\r\n}\r\n```\r\n\r\nIt was working fine under node v16.5.0. I assume it may have sth to do with undici providing default fetch to node? \r\n\r\n\n\n### How often does it reproduce? Is there a required condition?\n\n_No response_\n\n### What is the expected behavior?\n\n_No response_\n\n### What do you see instead?\n\n```\r\nTypeError: The \"source\" argument must be an instance of Response or an Promise resolving to Response. Received an instance of Response\r\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/8bcb","@type":"Person","name":"8bcb"},"datePublished":"2022-07-21T08:22:54Z","url":"https://github.com/nodejs/node/issues/43925"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f11e0331-7fab-e34d-ef36-7d5ed94a45cc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E24:22DB35:1C21BE8:23EF8CD:6B0145E5 |
| html-safe-nonce | 7dcc9fae906e94394d5ff6a78d1ba96939a4b7337f6da5cda1b07aba19f24b3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTI0OjIyREIzNToxQzIxQkU4OjIzRUY4Q0Q6NkIwMTQ1RTUiLCJ2aXNpdG9yX2lkIjoiMjQ1NTA5NjY1Mzk4NTM5NzQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 02c3ffa1fa6fdc33b1730e857ddf3720b306378f2a84740a0001058a1b88bdba |
| hovercard-subject-tag | issue:1312870933 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/43925/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b4aad341e7233b30e6c969609eb739d44ef314968ecf51b0696351df01786a92/nodejs/node/issues/43925 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b4aad341e7233b30e6c969609eb739d44ef314968ecf51b0696351df01786a92/nodejs/node/issues/43925 |
| og:image:alt | Version v18.6.0 Platform Darwin Asias-MacBook-Air.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 arm64 Subsystem No response What... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 8bcb |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width