GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — bug: Old Bun 1.3.3 fetch aborts requests after 300 s idle · Issue #5041 · triggerdotdev/trigger.dev Open DescriptionProvide environment informationSystem: Deployed on Trigger.dev Cloud (prod, eu-central-1), trigger.dev CLI / @trigger.dev/sdk 4.6.3, trigger.config.ts Describe the bug
Long, non-streaming LLM calls (for example Vertex AI What we see:
Expected: a supported way to run on a Bun release without this limit. You already publish Reproduction repoNo repository needed: the reproduction is a single self-contained Bun script with no dependencies (see "To reproduce"). It runs a local server, so no network or Trigger.dev account is required. To reproduceSave as const server = Bun.serve({ port: 0, idleTimeout: 0, fetch(req) { if (new URL(req.url).pathname === "/silent") { // headers and body only after 330 s return new Promise((resolve) => setTimeout(() => resolve(new Response("done")), 330_000)); } // headers immediately, then one byte every 10 s for 330 s let n = 0; return new Response( new ReadableStream({ async pull(controller) { await Bun.sleep(10_000); controller.enqueue(new TextEncoder().encode(".")); if (++n >= 33) controller.close(); }, }), ); }, }); const t0 = Date.now(); const run = async (path: string, init?: object) => { try { await (await fetch(`http://localhost:${server.port}${path}`, init)).text(); console.log(Bun.version, path, JSON.stringify(init ?? {}), "ok after", (Date.now() - t0) / 1000, "s"); } catch (e: any) { console.log(Bun.version, path, JSON.stringify(init ?? {}), "failed after", (Date.now() - t0) / 1000, "s:", e?.name, e?.message); } }; await Promise.all([run("/silent"), run("/trickle"), run("/silent", { timeout: false })]); server.stop(true); Results with the official
The limit is an idle timeout: the response that trickles a byte every 10 s survives. In a deployed task, any Suggested fixMake Bun 1.4 selectable, the same way Node majors are. For example Where the version comes from (checked on v4.7.4 and
#5003 ( Additional informationWorkaround: passing Bun's non-standard In production, every failed run of one of certain tasks over two months died at exactly 300s on this error. Another task survived only because its retry happened to finish under 300s. Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |