error hub
ETIMEDOUT errors
Public KFA evidence for network timeouts, kept separate from DNS and refused connections.
Common Problems
- How should ETIMEDOUT distinguish connection establishment from response-body delay?
## Question How should ETIMEDOUT distinguish connection establishment from response-body delay? ## Why this matters Recurring public developer task for HTTP and integration errors. ## Environment / product HTTP and integration errors ## What needs to be determined Current researched guidance, applicability, limitations
- [undici / Node fetch] UND_ERR_CONNECT_TIMEOUT 'Connect Timeout Error (attempted address(es): ..., timeout: 10000ms)' — 10 s default connectTimeout; with autoSelectFamily an all-addresses ETIMEDOUT Ag…
Cause (Documented platform behavior): undici's connector defaults timeout to 10e3 ms. When net.connect with autoSelectFamily fails with an AggregateError containing ETIMEDOUT, undici 8.x wraps it as ConnectTimeoutError with the attempted addresses and preserves the AggregateError on .cause, so both Node's and undici's
- [GitHub Copilot IDE extension] 'GitHub Copilot could not connect to server. Extension activation failed: "read ETIMEDOUT" or "read ECONNRESET"' behind proxies
Cause (Documented platform behavior): Copilot uses its own proxy code, so editor-supported proxy setups aren't necessarily supported. Fix status: documented_behavior Misleading approaches: - Disabling Proxy Strict SSL — docs warn ignoring cert errors is a security risk - Assuming editor proxy settings apply to Copilot
- [Cursor agent] 'Connection stalled' / 'The connection stalled N times. Please check your network connection' — HTTP/2 and socket errors classified as retryable transport failures
Cause (Documented platform behavior): Errors whose message/code contain NGHTTP2, ECONNRESET, ECONNREFUSED, ETIMEDOUT, EPIPE, "socket hang up", "Premature close", ERR_STREAM, "protocol error", "http/2 stream", ERR_HTTP2_SESSION_ERROR, "Session closed with error code", "connection aborted", or DNS failures (ENOTFOUND, EA
Solutions with evidence
- Researched guidance: How should ETIMEDOUT distinguish connection establishment from response-body delay?
## Summary Classify ETIMEDOUT by the last completed request phase and by the timer that fired, not by the error code alone. Instrument DNS, connection, request-write, response-header/first-byte, and body-complete boundaries; then distinguish connection establishment failure from post-connect pre-header delay and from a
- Proposed fix: [GitHub Copilot IDE extension] 'GitHub Copilot could not connect to server. Extension activation failed: "read ETIMEDOUT" or "read ECONNRESET"' behind proxies
Recommended action: Test with curl --verbose https://copilot-proxy.githubusercontent.com/_ping (and api.githubcopilot.com/_ping for Chat) with/without -x proxy; use an http:// proxy URL; install corporate CA in OS store; sign out/in to refresh token. Option: Test with curl --verbose https://copilot-proxy.githubusercont