You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Node 24.20+ concurrent localhost endpoint probes cause attach failures #2416
getWSEndpoint requests /json/version and /json/list concurrently. Each endpoint goes through fetchJsonWithLocalhostFallback. For localhost, it explicitly constructs one URL for 127.0.0.1 and one for [::1].
When IPv4 wins, the finally block calls cts.cancel(). In BasicResourceProvider.requestHttp, that cancellation invokes AbortController.abort() for every unfinished request using the derived token. The IPv6 connection has already failed with ECONNREFUSED, got treats that as retryable, computes a backoff, and schedules another request.
The current got request has already called the underlying ClientRequest.end(callback). Before Node 24.20, that callback was attached to the successful finish event. An aborted request did not finish, so the callback was not invoked with the abort error. Node.js 24.20 makes the cancellation a new terminal path. More details in sindresorhus/got#2469
Activity
deepak1556 commentedon Sep 18, 2026
getWSEndpointrequests/json/versionand/json/listconcurrently. Each endpoint goes throughfetchJsonWithLocalhostFallback. Forlocalhost, it explicitly constructs one URL for127.0.0.1and one for[::1].When IPv4 wins, the
finallyblock callscts.cancel(). InBasicResourceProvider.requestHttp, that cancellation invokesAbortController.abort()for every unfinished request using the derived token. The IPv6 connection has already failed withECONNREFUSED, got treats that as retryable, computes a backoff, and schedules another request.The current got request has already called the underlying
ClientRequest.end(callback). Before Node 24.20, that callback was attached to the successfulfinishevent. An aborted request did not finish, so the callback was not invoked with the abort error. Node.js 24.20 makes the cancellation a new terminal path. More details in sindresorhus/got#2469chore(dev): the #665 workaround leaves a fixed js-debug alone, by ver…
dev: work around VS Code 1.139 js-debug F5 attach regression
fix: VSCode extension cannot start in dev environment due to upstream…
dev: work around VS Code 1.139 js-debug F5 attach regression
chore(dev): drop the VS Code F5 workaround script, fixed upstream (#665)