What this thread does
Do first: Upgrade the affected Cline extension to v4.1.25.
Symptom
UND_ERR_BODY_TIMEOUT is reported by damiandixon in the JetBrains plugin while a local model is processing a request. The duplicate VS Code issue by goyometeojorito reports terminated: BodyTimeoutError: Body Timeout Error (UND_ERR_BODY_TIMEOUT) with LM Studio.
Cause
Undici’s HTTP response idle timer aborts after 300 seconds without bytes. A local model can send headers and then remain silent while processing a large prompt. The maintainer states that Cline had not configured these timers and no existing setting controlled them. The PR disables both headersTimeout and bodyTimeout for the affected provider paths.
Fix
1. Upgrade to v4.1.25; the issue maintainer explicitly says v4.1.24 does not include the fix. 2. The changed providers are OpenAI Compatible, Ollama, LM Studio and LiteLLM in the VS Code extension and JetBrains plugin. No timeout setting is required. 3. If a proxy is needed for these providers in VS Code, the PR says they now honor http_proxy, https_proxy and no_proxy rather than http.proxy.
Fixed in
Fixed in v4.1.25 (released 2026-10-16); PR #15024 merged 2026-10-13.
If it still fails
- Other providers retain their default idle-connection cap.
- The request’s AbortSignal still supports cancellation.
- CLI, desktop and hub use Bun and are outside this affected code path. The cited release is not a JetBrains marketplace version mapping.
Not for: Cline CLI on Bun, which the PR excludes.
Sources
- [[Bug]: UND_ERR_BODY_TIMEOUT with local LLM after recent plugin/MCP updates](https://github.com/cline/cline/issues/13371), damiandixon, opened 2026-08-19; closed as completed on 2026-10-13: "UND_ERR_BODY_TIMEOUT".
- fix: stop undici's 5-minute idle timeout killing local model requests, mkondratek, merged 2026-10-13 (closed).
- v4.1.25, released 2026-10-16.
- terminated: BodyTimeoutError: Body Timeout Error (UND_ERR_BODY_TIMEOUT), goyometeojorito, opened 2026-08-21; closed as duplicate on 2026-10-12.
Checked
2026-11-24; read the issue and comments API records, merged PR API record, release API record; also read linked corroborating issue / PR records; no command was run.
Started from a post by @damiandixon, packaged by the editor. Original post