Title: EnvHttpProxyAgent invalid onError method · Issue #63757 · nodejs/node · GitHub
Open Graph Title: EnvHttpProxyAgent invalid onError method · Issue #63757 · nodejs/node
X Title: EnvHttpProxyAgent invalid onError method · Issue #63757 · nodejs/node
Description: Version 26.3.0 Platform windows Subsystem No response What steps will reproduce the bug? Run npm test in https://github.com/nodejs/node-addon-api/ with an http_proxy env set. How often does it reproduce? Is there a required condition? Re...
Open Graph Description: Version 26.3.0 Platform windows Subsystem No response What steps will reproduce the bug? Run npm test in https://github.com/nodejs/node-addon-api/ with an http_proxy env set. How often does it repr...
X Description: Version 26.3.0 Platform windows Subsystem No response What steps will reproduce the bug? Run npm test in https://github.com/nodejs/node-addon-api/ with an http_proxy env set. How often does it repr...
Opengraph URL: https://github.com/nodejs/node/issues/63757
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"EnvHttpProxyAgent invalid onError method","articleBody":"### Version\n\n26.3.0\n\n### Platform\n\n```text\nwindows\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nRun `npm test` in https://github.com/nodejs/node-addon-api/ with an `http_proxy` env set.\n\n### How often does it reproduce? Is there a required condition?\n\nReproducible with node \u003e= v26.1.0 (v26.2.0, v26.3.0)\n\nNot reproducible with node 26.0.0, or 24.x.\n\nI also tested on mac, and it is not reproducible. Seems like a Windows only issue.\n\n### What is the expected behavior? Why is that the expected behavior?\n\n```\n$ npm run test\n\n\u003e node-addon-api@8.8.0 pretest\n\u003e node-gyp rebuild -C test\n\ngyp info it worked if it ends with ok\ngyp info using node-gyp@12.3.0\ngyp info using node@26.1.0 | win32 | x64\ngyp info chdir test\ngyp info find Python using Python version 3.14.5 found at \"C:\\Users\\cwu631\\AppData\\Local\\Programs\\Python\\Python314\\python.exe\"\n\ngyp http GET https://nodejs.org/download/release/v26.1.0/node-v26.1.0-headers.tar.gz\n(node:31964) [UNDICI-EHPA] Warning: EnvHttpProxyAgent is experimental, expect them to change at any time.\n(Use `node --trace-warnings ...` to show where the warning was created)\ngyp WARN install got an error, rolling back install\ngyp ERR! configure error\ngyp ERR! stack InvalidArgumentError: invalid onError method\ngyp ERR! stack at EnvHttpProxyAgent.dispatch (C:\\Users\\cwu631\\AppData\\Local\\nvm\\v26.1.0\\node_modules\\npm\\node_modules\\undici\\lib\\dispatcher\\dispatcher-base.js:188:15)\ngyp ERR! stack at node:internal/deps/undici/undici:13941:57\ngyp ERR! stack at new Promise (\u003canonymous\u003e)\ngyp ERR! stack at dispatchWithProtocolPreference (node:internal/deps/undici/undici:13941:18)\ngyp ERR! stack at dispatch (node:internal/deps/undici/undici:13939:16)\ngyp ERR! stack at httpNetworkFetch (node:internal/deps/undici/undici:13837:73)\ngyp ERR! stack at httpNetworkOrCacheFetch (node:internal/deps/undici/undici:13707:39)\ngyp ERR! stack at httpFetch (node:internal/deps/undici/undici:13529:43)\ngyp ERR! stack at schemeFetch (node:internal/deps/undici/undici:13446:18)\ngyp ERR! stack at mainFetch (node:internal/deps/undici/undici:13290:30)\ngyp ERR! System Windows_NT 10.0.26100\ngyp ERR! command \"C:\\\\Users\\\\cwu631\\\\AppData\\\\Local\\\\nvm\\\\v26.1.0\\\\node.exe\" \"C:\\\\Users\\\\cwu631\\\\AppData\\\\Local\\\\nvm\\\\v26.1.0\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\" \"-C\" \"test\"\ngyp ERR! cwd C:\\dev\\nodejs\\node-addon-api\\test\ngyp ERR! node -v v26.1.0\ngyp ERR! node-gyp -v v12.3.0\ngyp ERR! $npm_package_name node-addon-api\ngyp ERR! $npm_package_version 8.8.0\ngyp ERR! not ok\n```\n\n### What do you see instead?\n\nThe gyp rebuild should successfully download the header.\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/legendecas","@type":"Person","name":"legendecas"},"datePublished":"2026-06-05T16:20:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/63757/node/issues/63757"}
| 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:6693ed60-f8a7-3b8b-2a7a-cc966e45076d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B834:3C1583:DA125E:DF42A3:6A4DC202 |
| html-safe-nonce | 50597d4e7c6cbfd4d76b29aa229b043188d05e3b991554c8aee50691148f9909 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODM0OjNDMTU4MzpEQTEyNUU6REY0MkEzOjZBNERDMjAyIiwidmlzaXRvcl9pZCI6IjQ4OTIxNDg5MjIyMzc5NjA3MDYiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ== |
| visitor-hmac | 6617c5117d454b1735a2763a9d150f0c98d32fabfa77f0d6ee19b82b1729da6c |
| hovercard-subject-tag | issue:4598400966 |
| 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/63757/issue_layout |
| twitter:image | https://opengraph.githubassets.com/877ff7ccdf4ec3ab175cbf3f031af789c062469faa08afaa7048c020e06961e8/nodejs/node/issues/63757 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/877ff7ccdf4ec3ab175cbf3f031af789c062469faa08afaa7048c020e06961e8/nodejs/node/issues/63757 |
| og:image:alt | Version 26.3.0 Platform windows Subsystem No response What steps will reproduce the bug? Run npm test in https://github.com/nodejs/node-addon-api/ with an http_proxy env set. How often does it repr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | legendecas |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width