Skip to content

Conversation

@KhafraDev
Copy link
Member

fixes #4744

KhafraDev and others added 3 commits January 18, 2026 12:45
Co-authored-by: Matteo Collina <hello@matteocollina.com>
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 78.09524% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.94%. Comparing base (250efc8) to head (5f3bae7).

Files with missing lines Patch % Lines
lib/web/fetch/index.js 68.91% 23 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4747      +/-   ##
==========================================
+ Coverage   92.89%   92.94%   +0.04%     
==========================================
  Files         109      109              
  Lines       33886    33981      +95     
==========================================
+ Hits        31478    31582     +104     
+ Misses       2408     2399       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@KhafraDev KhafraDev merged commit 3388513 into nodejs:main Jan 19, 2026
38 of 40 checks passed
@KhafraDev KhafraDev deleted the websocket-basic-auth branch January 19, 2026 21:35
@github-actions github-actions bot mentioned this pull request Jan 21, 2026
killagu added a commit to killagu/undici that referenced this pull request Jan 22, 2026
`isTraversableNavigable()` was returning `true` unconditionally, which
caused an infinite retry loop when the server responded with 401.

In Node.js environment, there is no traversable navigable that can
prompt the user for credentials (unlike browsers). The 401 retry logic
at step 14 of HTTP-network-or-cache fetch requires user interaction to
provide credentials, which is not possible in Node.js.

Returning `false` disables the incomplete 401 retry logic that was
causing the infinite loop, while preserving the URL credentials
functionality added in nodejs#4747.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

WebSocket (and probably fetch) does not support Authorization header from URL

4 participants