Title: Uncaught exception on fetch (related to zlib, Z_BUF_ERROR) · Issue #43868 · nodejs/node · GitHub
Open Graph Title: Uncaught exception on fetch (related to zlib, Z_BUF_ERROR) · Issue #43868 · nodejs/node
X Title: Uncaught exception on fetch (related to zlib, Z_BUF_ERROR) · Issue #43868 · nodejs/node
Description: Version 18.6.0 Platform Linux pop-os 5.17.15-76051715-generic #202206141358165591911622.04~1db9e34 SMP PREEMPT Wed Jun 22 19 x86_64 x86_64 x86_64 GNU/Linux Subsystem undici What steps will reproduce the bug? async function test() { const...
Open Graph Description: Version 18.6.0 Platform Linux pop-os 5.17.15-76051715-generic #202206141358165591911622.04~1db9e34 SMP PREEMPT Wed Jun 22 19 x86_64 x86_64 x86_64 GNU/Linux Subsystem undici What steps will reproduc...
X Description: Version 18.6.0 Platform Linux pop-os 5.17.15-76051715-generic #202206141358165591911622.04~1db9e34 SMP PREEMPT Wed Jun 22 19 x86_64 x86_64 x86_64 GNU/Linux Subsystem undici What steps will reproduc...
Opengraph URL: https://github.com/nodejs/node/issues/43868
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Uncaught exception on fetch (related to zlib, Z_BUF_ERROR)","articleBody":"### Version\n\n18.6.0\n\n### Platform\n\nLinux pop-os 5.17.15-76051715-generic #202206141358~1655919116~22.04~1db9e34 SMP PREEMPT Wed Jun 22 19 x86_64 x86_64 x86_64 GNU/Linux\n\n### Subsystem\n\nundici\n\n### What steps will reproduce the bug?\n\n```js\r\nasync function test() {\r\n const x = await fetch(\"http://www.sinlenoble.fr/solidarite/le-ccas\");\r\n const y = await x.text();\r\n}\r\n\r\ntest().then(() =\u003e process.exit(0), () =\u003e process.exit(1))\r\n\r\nprocess.on(\"unhandledRejection\", (r) =\u003e console.log(\"undhanled rejection\", r))\r\nprocess.on(\"uncaughtException\", (r) =\u003e console.log(\"uncaught exception\", r))\r\n```\r\n\r\nOutput:\r\n\r\n```\r\n(node:18923) 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\nuncaught exception Error: unexpected end of file\r\n at Zlib.zlibOnError [as onerror] (node:zlib:189:17) {\r\n errno: -5,\r\n code: 'Z_BUF_ERROR'\r\n}\r\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways, but it may go away if the remote site used for testing changes its code/configuration.\n\n### What is the expected behavior?\n\nIf there is an error with `fetch`, it should bubble inside the promise to be caught from the caller, instead of triggering an uncaught exception.\n\n### What do you see instead?\n\n```\r\nuncaught exception Error: unexpected end of file\r\n at Zlib.zlibOnError [as onerror] (node:zlib:189:17) {\r\n errno: -5,\r\n code: 'Z_BUF_ERROR'\r\n}\r\n```\n\n### Additional information\n\nThis is not the only site that triggered this","author":{"url":"https://github.com/coyotte508","@type":"Person","name":"coyotte508"},"datePublished":"2022-07-16T21:41:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/43868/node/issues/43868"}
| 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:b4514c29-15fb-a372-9393-f3bab06c3f07 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EABA:41A05:D2766:1196E0:6A4C1F6F |
| html-safe-nonce | 378ae87f5944a868b07ebea8a92faeb0a1b13e3cc10342ee3c2d9cf5afb12433 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUJBOjQxQTA1OkQyNzY2OjExOTZFMDo2QTRDMUY2RiIsInZpc2l0b3JfaWQiOiI2MDk3ODI5NTI1OTM1ODkwMjg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a18b086d13db14d7a77edbce1edef96776ffceda2c2cbf23c1a14e05d0095c46 |
| hovercard-subject-tag | issue:1306909678 |
| 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/43868/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8a2d0d07fe28f649c90f6cae8cfec5530b09acc41e23ff5365342001fb8f1662/nodejs/node/issues/43868 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8a2d0d07fe28f649c90f6cae8cfec5530b09acc41e23ff5365342001fb8f1662/nodejs/node/issues/43868 |
| og:image:alt | Version 18.6.0 Platform Linux pop-os 5.17.15-76051715-generic #202206141358165591911622.04~1db9e34 SMP PREEMPT Wed Jun 22 19 x86_64 x86_64 x86_64 GNU/Linux Subsystem undici What steps will reproduc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | coyotte508 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| 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 | f95fb36c72adc940ff991c03531114b2245658d0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width