mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4174] [Issue]: HeadersTimeoutError when refreshing Noodle timeline #2260
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2260
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Jul 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4174
Originally assigned to: @Gunterlie on GitHub.
Summary
Refreshing the timeline in Noodle fails after several minutes with a HeadersTimeoutError and displays "fetch failed." The same error occurs during automatic timeline refresh.
Expected behavior
The Noodle timeline should refresh successfully when using a slow local model, or provide a configurable timeout that applies to timeline refresh requests.
Actual behavior
Manual and automatic timeline refreshes wait several minutes, then fail with a HeadersTimeoutError and display "fetch failed" on the webpage.
Steps to reproduce
Environment
Logs, screenshots, or video
{"level":50,"time":1785136356840,"pid":19108,"hostname":"DPC","err":{"type":"TypeError","message":"fetch failed: Headers Timeout Error","stack":"TypeError: fetch failed\ncaused by: HeadersTimeoutError: Headers Timeout Error\n at FastTimer.onParserTimeout [as_onTimeout] (E:\AI_Marinara-Engine\Marinara-Engine\.pnpm\undici@7.25.0\node_modules\undici\lib\dispatcher\client-h1.js:749:28)\n at Timeout.onTick [as_onTimeout] (E:\AI_Marinara-Engine\Marinara-Engine\.pnpm\undici\lib\util\timers.js:162:13)\n at listOnTimeout (node:internal/timers.js:541:7)"},"msg":"[noodle] Timeline refresh failed"}
Additional context
The user runs a potentially slow local model. They increased all TIMEOUT-related values found in .env.example within their .env file, including CHAT_GENERATION_TIMEOUT_MS=3600000, but the error persisted.
Discord thread: Issue Report: HeadersTimeoutError when clicking "Refresh timeline" in Noodle
Discord thread link: https://discord.com/channels/1417099416812392641/1531282465111543838
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)
Discord thread transcript (9 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Gunterlie commented on GitHub (Jul 27, 2026):
Picked this up — draft PR #4175 (base
staging).Root cause:
llmFetchhard-coded undici'sheadersTimeout(time to first byte) to 5 minutes.CHAT_GENERATION_TIMEOUT_MSonly reached undici viawithLlmRequestTimeout, which only the chat, Game, and long-term-memory paths use. Noodle callsprovider.chatCompletedirectly withstream: false, so it always got the fixed 5 minutes — which is why raising the env var did nothing. @Gunterlie the Noodle timeout you remembered exists, it just never reached the fetch layer.Fix: the default headers timeout now reads
CHAT_GENERATION_TIMEOUT_MS, so the existing variable covers Noodle and other background generation. Default unchanged at 5 minutes, so slow local models still need to raise it.