Skip to content

test: fix undici 8.7.0 compatibility#3345

Open
legendecas wants to merge 2 commits into
nodejs:mainfrom
legendecas:fix-undici-proxy
Open

test: fix undici 8.7.0 compatibility#3345
legendecas wants to merge 2 commits into
nodejs:mainfrom
legendecas:fix-undici-proxy

Conversation

@legendecas

@legendecas legendecas commented Jul 9, 2026

Copy link
Copy Markdown
Member
Checklist
  • npm install && npm run lint && npm test passes
  • tests are included
  • commit message follows commit guidelines
Description of change

Previously undici ProxyAgent/EnvHttpProxyAgent tunneled all proxied requests via CONNECT. As of nodejs/undici#5116 (v8.7.0), plain HTTP requests are forwarded to the proxy in absolute-form (a normal request), and only HTTPS still uses a CONNECT tunnel. The node-gyp test proxy only listened for the connect event, so the forwarded HTTP request got no response and the test hung to the 30s timeout.

@@ -24,6 +24,7 @@ jobs:
- os: windows-11-arm
msvs-version: 2022 # Fix this when Visual Studio 2025 is released

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants