René's URL Explorer Experiment


Title: New ECONNRESET error on http.request for HTTP 413 (Node v24.16.0 regression) · Issue #64272 · nodejs/node · GitHub

Open Graph Title: New ECONNRESET error on http.request for HTTP 413 (Node v24.16.0 regression) · Issue #64272 · nodejs/node

X Title: New ECONNRESET error on http.request for HTTP 413 (Node v24.16.0 regression) · Issue #64272 · nodejs/node

Description: Version 24.18.0 Platform Linux Subsystem http What steps will reproduce the bug? Reproducible with the following standalone snippet: /* eslint-env qunit */ 'use script'; const http = require('http'); async function request (url, options)...

Open Graph Description: Version 24.18.0 Platform Linux Subsystem http What steps will reproduce the bug? Reproducible with the following standalone snippet: /* eslint-env qunit */ 'use script'; const http = require('http'...

X Description: Version 24.18.0 Platform Linux Subsystem http What steps will reproduce the bug? Reproducible with the following standalone snippet: /* eslint-env qunit */ 'use script'; const http = requir...

Opengraph URL: https://github.com/nodejs/node/issues/64272

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New ECONNRESET error on http.request for HTTP 413 (Node v24.16.0 regression)","articleBody":"### Version\n\n24.18.0\n\n### Platform\n\n```text\nLinux\n```\n\n### Subsystem\n\nhttp\n\n### What steps will reproduce the bug?\n\nReproducible with the following standalone snippet:\n\n```js\n/* eslint-env qunit */\n'use script';\n\nconst http = require('http');\n\nasync function request (url, options) {\n  return new Promise((resolve, reject) => {\n    const req = http.request(url, {\n      method: options.method,\n      headers: options.headers\n    }, (response) => {\n      resolve(response);\n    });\n    // req.on('error', reject); // Adding this makes it work\n    req.write(options.body);\n    req.end();\n  });\n}\n\n(async function() {\n  const server = http.createServer();\n  server.on('request', (request, response) => {\n    console.log('server-request', request.url, request.headers);\n\n    const MAX_BODY_LENGTH = 1024 * 1024;\n    let body = '';\n    request.setEncoding('utf8');\n    request.on('data', function onData (chunk) {\n      body += chunk;\n      if (body.length > MAX_BODY_LENGTH) {\n        // HTTP 413 Payload Too Large\n        response.writeHead(413);\n        response.end();\n        request.off('data', onData);\n        request.destroy();\n      }\n    });\n    request.on('end', function onEnd () {\n      response.writeHead(202);\n      response.end();\n    });\n  });\n  server.on('error', (err) => console.error('server-error', err));\n  server.listen(0);\n  await new Promise((resolve) => server.on('listening', resolve()));\n\n  const address = `http://localhost:${server.address().port}`;\n  const options = {\n    method: 'POST',\n    headers: {\n      'content-type': 'application/json'\n    },\n    body: JSON.stringify({\n      a: 'x'.repeat(512 * 1024),\n      b: 'x'.repeat(512 * 1024),\n      c: 'x'.repeat(512 * 1024),\n      d: 'x'.repeat(512 * 1024)\n    }, null, '\\t')\n  };\n\n  try {\n    // Works fine on Node v24.18.0\n    // const resp = await fetch(address, options);\n    // const data = await resp.text();\n    // console.log(resp, data);\n\n    // Works from Node v10.x to v24.15.x and fails in v24.16.x, v24.17.x, v24.18.x\n    const resp = await request(address, options);\n    console.log(resp.statusCode);\n  } catch (e) {\n    console.error(e);\n  } finally {\n    server.close();\n  }\n}());\n```\n\n### How often does it reproduce? Is there a required condition?\n\nEvery time. No race condition.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nFrom Node v10 to v24.15.x this worked without any error.\n\n### What do you see instead?\n\nStarting in v24.16.x (including v24.17.x and latest v24.18.x) the client consistently experiences ECONNRESET.\n\n```\nnode:events:487\n      throw er; // Unhandled 'error' event\n      ^\n\nError: read ECONNRESET\n    at TCP.onStreamRead (node:internal/stream_base_commons:216:20)\nEmitted 'error' event on ClientRequest instance at:\n    at emitErrorEvent (node:_http_client:109:11)\n    at Socket.socketErrorListener (node:_http_client:593:5)\n    at Socket.emit (node:events:509:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n  errno: -104,\n  code: 'ECONNRESET',\n  syscall: 'read'\n}\n```\n\n\nI can and should handle this, although it is a no-op in practice because the Promise is already settled by `resolve()` with an HTTP 413 response.\n\nUnclear if a regression or intentional. I imagine this kind of naive `request()` implementation is a fairly common idiom for simple cases where no error is expected. Either in code that still needs to support Node.js 10 or where one simply hasn't yet had a reason to revisit it and switch to `fetch()`.\n\n### Additional information\n\nI found this when attempting to add Node.js 24 support to https://github.com/jquery/node-notifier-server/ which is a server for processing GitHub Webhooks. \n\nhttps://github.com/jquery/node-notifier-server/actions/runs/28656799866\n\nhttps://github.com/jquery/node-notifier-server/actions/runs/28657579964\n\n\nQUnit result:\n```\nTAP version 13\n# [notifier-server:debug] The notifier-server is listening on port 33765\nok 1 notifier-server > start server\n…\n# [notifier-server:debug] Including /tmp/notifiergY1g53/example.js\n# [notifier-server:debug] The notifier-server is listening on port 35017\nnot ok 15 notifier-server > notifier ignores too large json\n  ---\n  message: \"global failure: Error: read ECONNRESET\"\n  severity: failed\n  stack: |\n    Error: read ECONNRESET\n        at TCP.onStreamRead (node:internal/stream_base_commons:216:20)\n  ...\n1..15\n# pass 14\n# skip 0\n# todo 0\n# fail 1\nError: Process completed with exit code 1.\n```","author":{"url":"https://github.com/Krinkle","@type":"Person","name":"Krinkle"},"datePublished":"2026-07-03T19:13:04Z","url":"https://github.com/nodejs/node/issues/64272"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3a0722ff-ad1b-e672-7469-144e5fe8df15
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE146:257A3D:875813:B43723:6AED2AA5
html-safe-nonce440950a80c2fa68755109e9ab370984829c2c8496bd8fe8dfab292462804c47c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTQ2OjI1N0EzRDo4NzU4MTM6QjQzNzIzOjZBRUQyQUE1IiwidmlzaXRvcl9pZCI6IjczMDk5MDU0ODYyNzIwODA1NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb4f818ff32aa3b9ed3e90269c4bbfa1b000c3ed4e93695336c67e0777dedc953
hovercard-subject-tagissue:4805812562
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/64272/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d1fb9354409eb7c61a2c76b97ca145be963bd5356957a5d7dc6238ffd2db1298/nodejs/node/issues/64272
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d1fb9354409eb7c61a2c76b97ca145be963bd5356957a5d7dc6238ffd2db1298/nodejs/node/issues/64272
og:image:altVersion 24.18.0 Platform Linux Subsystem http What steps will reproduce the bug? Reproducible with the following standalone snippet: /* eslint-env qunit */ 'use script'; const http = require('http'...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKrinkle
hostnamegithub.com
expected-hostnamegithub.com
None9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release98b41fa4b5635ceb45a4c54320fced73817ff290
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/64272#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64272
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64272
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/64272
Reloadhttps://github.com/nodejs/node/issues/64272
Reloadhttps://github.com/nodejs/node/issues/64272
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests666 (666)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64272
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64272
#64278https://github.com/nodejs/node/pull/64278
New ECONNRESET error on http.request for HTTP 413 (Node v24.16.0 regression)https://github.com/nodejs/node/issues/64272#top
#64278https://github.com/nodejs/node/pull/64278
https://github.com/Krinkle
Krinklehttps://github.com/Krinkle
on Jul 3, 2026https://github.com/nodejs/node/issues/64272#issue-4805812562
https://github.com/jquery/node-notifier-server/https://github.com/jquery/node-notifier-server/
https://github.com/jquery/node-notifier-server/actions/runs/28656799866https://github.com/jquery/node-notifier-server/actions/runs/28656799866
https://github.com/jquery/node-notifier-server/actions/runs/28657579964https://github.com/jquery/node-notifier-server/actions/runs/28657579964
Krinklehttps://github.com/Krinkle
on Jul 3, 2026https://github.com/nodejs/node/issues/64272#event-27541806441
build: Add Node 24https://github.com/jquery/node-notifier-server/commit/a8b1c98588f5af795ec88cc8f15bef4a398dd590
a8b1c98https://github.com/jquery/node-notifier-server/commit/a8b1c98588f5af795ec88cc8f15bef4a398dd590
https://github.com/dominexmacedon-docs
dominexmacedon-docshttps://github.com/dominexmacedon-docs
on Jul 4, 2026https://github.com/nodejs/node/issues/64272#issuecomment-4880548664
https://github.com/Archkon
Archkonhttps://github.com/Archkon
on Jul 4, 2026https://github.com/nodejs/node/issues/64272#issuecomment-4880630272
https://github.com/lpinca
lpincahttps://github.com/lpinca
on Jul 5, 2026https://github.com/nodejs/node/issues/64272#issuecomment-4887362713
https://github.com/mcollina
mcollinahttps://github.com/mcollina
on Jul 12, 2026https://github.com/nodejs/node/issues/64272#issuecomment-4950940081
493ac40https://github.com/nodejs/node/commit/493ac40e1277b2021ad5719e09c13c904c5b027d
5bebd7ehttps://github.com/nodejs/node/commit/5bebd7eaea287ccf187b02c8d6afa863cf326a58
libuv/libuv@2e2114ehttps://github.com/libuv/libuv/commit/2e2114ed8957a0124bc629c61d034c387b8ce42a
#64278https://github.com/nodejs/node/pull/64278
#64278https://github.com/nodejs/node/pull/64278
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#64278https://github.com/nodejs/node/pull/64278
on Jul 12, 2026https://github.com/nodejs/node/issues/64272#event-27872174600
nodejs-github-bothttps://github.com/nodejs-github-bot
on Jul 12, 2026https://github.com/nodejs/node/issues/64272#event-27872174652
http: do not emit socket errors after complete responsehttps://github.com/nodejs/node/commit/17163ead3326a2eda3253c392474c777405a04c7
17163eahttps://github.com/nodejs/node/commit/17163ead3326a2eda3253c392474c777405a04c7
Archkonhttps://github.com/Archkon
on Jul 17, 2026https://github.com/nodejs/node/issues/64272#event-28143126909
http: defer write errors for pending responseshttps://github.com/Archkon/node/commit/2818b98c165299ddfd4a658dac031a3035e77e75
2818b98https://github.com/Archkon/node/commit/2818b98c165299ddfd4a658dac031a3035e77e75
Archkonhttps://github.com/Archkon
on Aug 4, 2026https://github.com/nodejs/node/issues/64272#event-28938904423
http: defer write errors for pending responseshttps://github.com/Archkon/node/commit/dcbb13015ef4630124c5ce0fc6cee2bb452a8285
dcbb130https://github.com/Archkon/node/commit/dcbb13015ef4630124c5ce0fc6cee2bb452a8285
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/64272
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64272
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.