René's URL Explorer Experiment


Title: bug: Old Bun 1.3.3 fetch aborts requests after 300 s idle · Issue #5041 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: bug: Old Bun 1.3.3 fetch aborts requests after 300 s idle · Issue #5041 · triggerdotdev/trigger.dev

X Title: bug: Old Bun 1.3.3 fetch aborts requests after 300 s idle · Issue #5041 · triggerdotdev/trigger.dev

Description: Provide environment information System: OS: macOS 27.0.1 CPU: (10) arm64 Apple M2 Pro Memory: 6.42 GB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.19.0 - /opt/homebrew/bin/node npm: 11.17.0 - /opt/homebrew/bin/npm bun: 1.4.3 - /Us...

Open Graph Description: Provide environment information System: OS: macOS 27.0.1 CPU: (10) arm64 Apple M2 Pro Memory: 6.42 GB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.19.0 - /opt/homebrew/bin/node npm: 11.17.0 ...

X Description: Provide environment information System: OS: macOS 27.0.1 CPU: (10) arm64 Apple M2 Pro Memory: 6.42 GB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.19.0 - /opt/homebrew/bin/node npm: 11.17.0 ...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/5041

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Old Bun 1.3.3 fetch aborts requests after 300 s idle","articleBody":"### Provide environment information\n\n  System:\n    OS: macOS 27.0.1\n    CPU: (10) arm64 Apple M2 Pro\n    Memory: 6.42 GB / 16.00 GB\n    Shell: 5.9 - /bin/zsh\n  Binaries:\n    Node: 24.19.0 - /opt/homebrew/bin/node\n    npm: 11.17.0 - /opt/homebrew/bin/npm\n    bun: 1.4.3 - /Users/be/.bun/bin/bun\n\nDeployed on Trigger.dev Cloud (prod, eu-central-1), trigger.dev CLI / @trigger.dev/sdk 4.6.3, trigger.config.ts `runtime: \"bun\"`.\nThe local machine is not involved: the failure happens in the deployed image (Bun 1.3.3).\n\n\n### Describe the bug\n\n`runtime: \"bun\"` always deploys on `triggerdotdev/bun:1.3-node20-bookworm`, which ships Bun 1.3.3. On Bun 1.3.x, `fetch` aborts any request that receives no bytes for 300 seconds, throwing `TimeoutError: The operation timed out.` A per-request `timeout` or `AbortSignal` longer than 300 s doesn't help.\n\nLong, non-streaming LLM calls (for example Vertex AI `generateContent` with large structured outputs) send nothing until they finish, so on Trigger.dev they fail at exactly 5:00.\n\nWhat we see:\n- A task on `runtime: \"bun\"` (trigger.dev 4.6.3) makes one AI SDK `generateText` call to Vertex AI with `timeout: 360_000`.\n- The run fails exactly 300 s after the call starts with `TimeoutError: The operation timed out.` That's Bun's message; Node's equivalent reads \"The operation was aborted due to timeout\".\n- The same request completes under Bun 1.4.x.\n\nExpected: a supported way to run on a Bun release without this limit. You already publish `triggerdotdev/bun:1.4-bookworm` (Bun 1.4.2), but the CLI can't select it.\n\n\n### Reproduction repo\n\nNo 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.\n\n### To reproduce\n\nSave as `bun-timeout.ts` and run `bun run bun-timeout.ts` with each Bun version. It takes about 5.5 minutes.\n\n```ts\nconst server = Bun.serve({\n  port: 0,\n  idleTimeout: 0,\n  fetch(req) {\n    if (new URL(req.url).pathname === \"/silent\") {\n      // headers and body only after 330 s\n      return new Promise((resolve) => setTimeout(() => resolve(new Response(\"done\")), 330_000));\n    }\n    // headers immediately, then one byte every 10 s for 330 s\n    let n = 0;\n    return new Response(\n      new ReadableStream({\n        async pull(controller) {\n          await Bun.sleep(10_000);\n          controller.enqueue(new TextEncoder().encode(\".\"));\n          if (++n >= 33) controller.close();\n        },\n      }),\n    );\n  },\n});\nconst t0 = Date.now();\nconst run = async (path: string, init?: object) => {\n  try {\n    await (await fetch(`http://localhost:${server.port}${path}`, init)).text();\n    console.log(Bun.version, path, JSON.stringify(init ?? {}), \"ok after\", (Date.now() - t0) / 1000, \"s\");\n  } catch (e: any) {\n    console.log(Bun.version, path, JSON.stringify(init ?? {}), \"failed after\", (Date.now() - t0) / 1000, \"s:\", e?.name, e?.message);\n  }\n};\nawait Promise.all([run(\"/silent\"), run(\"/trickle\"), run(\"/silent\", { timeout: false })]);\nserver.stop(true);\n```\n\nResults with the official `@oven/bun-darwin-aarch64` builds:\n\n| Bun | silent 330 s | trickle 330 s | silent + `timeout: false` |\n| --- | --- | --- | --- |\n| 1.3.3 (current `runtime: \"bun\"` image) | **failed at 300.0 s**, `TimeoutError: The operation timed out.` | ok | ok |\n| 1.3.14 (`bun:1.3-bookworm`) | **failed at 300.0 s** | ok | ok |\n| 1.4.2 (`bun:1.4-bookworm`) | ok | ok | ok |\n| 1.4.3 | ok | ok | ok |\n\nThe limit is an idle timeout: the response that trickles a byte every 10 s survives.\n\nIn a deployed task, any `fetch` that waits more than 300 s for the first byte fails the same way.\n\n\n### Suggested fix\n\nMake Bun 1.4 selectable, the same way Node majors are. For example `runtime: \"bun-1.4\"` (and `\"bun-1.3\"`), mapped to the already-published `triggerdotdev/bun:1.4-bookworm` / `bun:1.3-bookworm` images. Or move `runtime: \"bun\"` to a current Bun release.\n\nWhere the version comes from (checked on v4.7.4 and `main` as of 2026-10-20):\n- `packages/core/src/v3/schemas/build.ts`: `BuildRuntime = z.enum([\"node\", \"node-22\", \"node-24\", \"node-26\", \"bun\"])`, so there's no way to choose a Bun version.\n- `packages/cli-v3/src/deploy/buildImage.ts`: `BASE_IMAGE.bun` / `BUILD_IMAGE.bun` → `triggerdotdev/bun:1.3-node20-bookworm(-build)`.\n- `base-images/images.json`: that image copies `oven/bun:1.3.3-slim`. The same file already publishes `bun:1.3-bookworm` (`oven/bun:1.3.14-slim`) and `bun:1.4-bookworm` (`oven/bun:1.4.2-slim`).\n\n#5003 (`build.image.base` overrides) would allow a workaround, but a supported runtime value would keep projects on images you publish and test.\n\n\n### Additional information\n\nWorkaround: passing Bun's non-standard `timeout: false` to `fetch` removes the cap. But it has to reach every HTTP client a task uses (AI SDKs, Google auth), and it also removes the only bound for calls that set no timeout of their own.\n\nIn 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.\n","author":{"url":"https://github.com/Trosterud","@type":"Person","name":"Trosterud"},"datePublished":"2026-10-20T10:18:32Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/5041"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:36ddf3ba-988c-f549-10bd-1612fed72373
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBCF2:358701:6003EFE:7F57278:6AFAD87B
html-safe-nonce55e386865c9ba7efd0e1a336600fac7b8aeba7979d850d738cb527fc7e2a853f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0YyOjM1ODcwMTo2MDAzRUZFOjdGNTcyNzg6NkFGQUQ4N0IiLCJ2aXNpdG9yX2lkIjoiMjc5MDYyOTAyMjExMzY1MDgxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7f4355e10aa039a0268cdf0232fe691c93fb1aae252e87fdcc02673cd992ce94
hovercard-subject-tagissue:5939963356
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/5041/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ff35c75348376c072b704915ecb490014e59c4af97cb0570331f68618814eedd/triggerdotdev/trigger.dev/issues/5041
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ff35c75348376c072b704915ecb490014e59c4af97cb0570331f68618814eedd/triggerdotdev/trigger.dev/issues/5041
og:image:altProvide environment information System: OS: macOS 27.0.1 CPU: (10) arm64 Apple M2 Pro Memory: 6.42 GB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.19.0 - /opt/homebrew/bin/node npm: 11.17.0 ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTrosterud
hostnamegithub.com
expected-hostnamegithub.com
None02f4c00e74911c7cd779fc232c3130cee49eb39fd0ed4bfe3eea3b82c7c18084
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release33c41e9d150e44415272934d676dc63c57d89c3b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/5041#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F5041
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F5041
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/5041
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/5041
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/5041
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests65 (65)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/5041
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/5041
bug: Old Bun 1.3.3 fetch aborts requests after 300 s idlehttps://github.com/triggerdotdev/trigger.dev/issues/5041#top
https://github.com/Trosterud
Trosterudhttps://github.com/Trosterud
on Oct 20, 2026https://github.com/triggerdotdev/trigger.dev/issues/5041#issue-5939963356
#5003https://github.com/triggerdotdev/trigger.dev/pull/5003
https://github.com/Lingu17
Lingu17https://github.com/Lingu17
on Oct 22, 2026https://github.com/triggerdotdev/trigger.dev/issues/5041#issuecomment-6334059518
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/5041
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/5041
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.