René's URL Explorer Experiment


Title: Default Hono integration can terminate bundled Bun apps without Hono on read-only filesystems · Issue #25540 · getsentry/sentry-javascript · GitHub

Open Graph Title: Default Hono integration can terminate bundled Bun apps without Hono on read-only filesystems · Issue #25540 · getsentry/sentry-javascript

X Title: Default Hono integration can terminate bundled Bun apps without Hono on read-only filesystems · Issue #25540 · getsentry/sentry-javascript

Description: Summary Calling Sentry.init() with the default integrations in a bundled Bun application that does not use or install Hono can terminate the process on a restricted filesystem. The default Hono integration eagerly tries to require hono/b...

Open Graph Description: Summary Calling Sentry.init() with the default integrations in a bundled Bun application that does not use or install Hono can terminate the process on a restricted filesystem. The default Hono int...

X Description: Summary Calling Sentry.init() with the default integrations in a bundled Bun application that does not use or install Hono can terminate the process on a restricted filesystem. The default Hono int...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25540

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Default Hono integration can terminate bundled Bun apps without Hono on read-only filesystems","articleBody":"## Summary\n\nCalling `Sentry.init()` with the default integrations in a bundled Bun application that does **not** use or install Hono can terminate the process on a restricted filesystem. The default Hono integration eagerly tries to require `hono/bun`. Bun enters its runtime package-cache initialization path, fails to create the cache, and exits natively before the missing-module error can be caught.\n\nThis caused a production Vercel Bun function to fail at startup, including its health endpoint. No application framework or server is needed for the reproduction below.\n\n## Environment\n\n- Sentry SaaS\n- `@sentry/bun@11.8.0` (latest npm release when checked)\n- Also reproduced with `@sentry/node@11.8.0` running under Bun\n- Local reproduction: Bun 1.3.11, macOS 27.0, arm64\n- Original production failure: Vercel Bun runtime (`bunVersion: \"1.x\"`); exact production Bun patch version not captured\n- Bundler: `bun build --target=bun --format=esm`\n- Hono is not installed or used\n\n## Minimal SDK setup\n\nSave as `build/repro.ts`:\n\n```ts\nimport * as Sentry from \"@sentry/bun\";\n\nSentry.init({\n  dsn: \"https://public@example.invalid/1\",\n  tracesSampleRate: 0,\n  integrations: (defaults) => process.env.WITHOUT_HONO === \"1\"\n    ? defaults.filter((integration) => integration.name !== \"Hono\")\n    : defaults,\n});\nconsole.log(\"Sentry initialized\");\nprocess.exit(0);\n```\n\nThe integrations callback returns the defaults unchanged unless `WITHOUT_HONO=1`; it exists only to demonstrate the one-variable control. The DSN is deliberately fake and no event is sent.\n\n## Steps to reproduce on macOS\n\nUse a new temporary directory outside an existing project. Build and runtime directories must be siblings so the runtime has no ancestor `node_modules` directory.\n\n```sh\nrepro_root=$(mktemp -d /tmp/sentry-hono-repro.XXXXXX)\nmkdir \"$repro_root/build\" \"$repro_root/runtime\"\n# Save the TypeScript above as \"$repro_root/build/repro.ts\".\ncat > \"$repro_root/build/package.json\" \u003c\u003c'JSON'\n{\"private\":true,\"type\":\"module\",\"dependencies\":{\"@sentry/bun\":\"11.8.0\"}}\nJSON\nbun install --cwd \"$repro_root/build\"\nbun build \"$repro_root/build/repro.ts\" --target=bun --format=esm \\\n  --outfile \"$repro_root/runtime/repro.mjs\"\ncd \"$repro_root/runtime\"\nexport BUN_INSTALL_CACHE_DIR=\"$repro_root/blocked-cache\"\nunset WITHOUT_HONO\n\n# Default integrations: exits 1 before printing \"Sentry initialized\".\nsandbox-exec -p '(version 1)(allow default)(deny file-write*)' bun repro.mjs\n\n# Same bundle and filesystem restrictions, only Hono removed: exits 0.\nWITHOUT_HONO=1 sandbox-exec -p '(version 1)(allow default)(deny file-write*)' \\\n  bun repro.mjs\n\n# Default integrations, only Bun auto-install disabled: also exits 0.\nsandbox-exec -p '(version 1)(allow default)(deny file-write*)' \\\n  bun --no-install repro.mjs\n```\n\n## Expected result\n\nAn application that does not use Hono should initialize successfully without trying to load/install Hono. An unavailable optional framework integration should be skipped without requiring filesystem writes.\n\n## Actual result\n\nDefault integrations, sandboxed macOS reproduction:\n\n```text\nerror: bun is unable to write files: PermissionDenied\n```\n\nProcess exit status: 1.\n\nProduction Vercel log:\n\n```text\nerror: bun is unable to write files: ReadOnlyFileSystem\nBun process exited with exit status: 1.\n```\n\nBoth controls print `Sentry initialized` and exit 0. macOS sandbox denial and Vercel's read-only mount yield different OS errors; the same Bun package-cache failure path is involved.\n\n## Isolation and source pointers\n\nUsing the exact original initialization options, both `@sentry/bun@11.8.0` and `@sentry/node@11.8.0` failed 3/3 runs under these restrictions. Filtering out only the integration named `Hono` made each SDK start 3/3 times. The standalone minimal example above was also tested with both controls.\n\n- Both SDKs include the Hono error integration in their defaults, even with tracing disabled.\n- [Bun/Deno eagerly invoke the integration callback](https://github.com/getsentry/sentry-javascript/blob/11.8.0/packages/server-utils/src/orchestrion/instrumentation.ts).\n- [`instrumentHono()` eagerly calls `resolveGetConnInfo()`, which requires `hono/bun` on Bun](https://github.com/getsentry/sentry-javascript/blob/11.8.0/packages/server-utils/src/integrations/hono/honoIntegration.ts).\n- [Bun's package-cache initialization falls back to creating `node_modules/.cache` and calls `Global.crash()` on failure](https://github.com/oven-sh/bun/blob/bun-v1.3.11/src/install/PackageManager/PackageManagerDirectories.zig#L122-L146).\n\nThe native process exit means the SDK's existing try/catch around the optional require cannot recover. Bun's fatal cache behavior is a related runtime issue; this report concerns the default Sentry integration triggering it in an application with no Hono dependency.\n\nSearching existing issues for `hono/bun` and Hono/cache did not reveal a matching report. The production app currently avoids this by removing server instrumentation; filtering Hono is a locally verified workaround, not a claim of full Vercel validation.\n","author":{"url":"https://github.com/winspoolnba","@type":"Person","name":"winspoolnba"},"datePublished":"2026-10-19T18:45:04Z","url":"https://github.com/getsentry/sentry-javascript/issues/25540"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bd80508e-f61c-e074-a586-f9b9d9f84469
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC90A:181C7:3A2D:4B24:6B04159F
html-safe-noncead6cf4111ec5f408452a1a8e95bcb1f45e28c652a3256329bce52731923406d5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTBBOjE4MUM3OjNBMkQ6NEIyNDo2QjA0MTU5RiIsInZpc2l0b3JfaWQiOiIxMzU3MjI3NTE3MjE1NTExOTY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0a5ef9e0a6aa61a384028a462644be9b70904dcdc2609e4054d8a1907bad565f
hovercard-subject-tagissue:5929540915
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/getsentry/sentry-javascript/25540/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8d60478823ead46b99a11daf6208d477c5d2c6dacd14932680fb592e966a5413/getsentry/sentry-javascript/issues/25540
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8d60478823ead46b99a11daf6208d477c5d2c6dacd14932680fb592e966a5413/getsentry/sentry-javascript/issues/25540
og:image:altSummary Calling Sentry.init() with the default integrations in a bundled Bun application that does not use or install Hono can terminate the process on a restricted filesystem. The default Hono int...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewinspoolnba
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/25540#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F25540
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%2Fgetsentry%2Fsentry-javascript%2Fissues%2F25540
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=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25540
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25540
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25540
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests54 (54)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25540
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25540
#25552https://github.com/getsentry/sentry-javascript/pull/25552
Default Hono integration can terminate bundled Bun apps without Hono on read-only filesystemshttps://github.com/getsentry/sentry-javascript/issues/25540#top
#25552https://github.com/getsentry/sentry-javascript/pull/25552
https://github.com/s1gr1d
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
Bunhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bun%22
Honohttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Hono%22
https://github.com/winspoolnba
winspoolnbahttps://github.com/winspoolnba
on Oct 19, 2026https://github.com/getsentry/sentry-javascript/issues/25540#issue-5929540915
Bun/Deno eagerly invoke the integration callbackhttps://github.com/getsentry/sentry-javascript/blob/11.8.0/packages/server-utils/src/orchestrion/instrumentation.ts
instrumentHono() eagerly calls resolveGetConnInfo(), which requires hono/bun on Bunhttps://github.com/getsentry/sentry-javascript/blob/11.8.0/packages/server-utils/src/integrations/hono/honoIntegration.ts
Bun's package-cache initialization falls back to creating node_modules/.cache and calls Global.crash() on failurehttps://github.com/oven-sh/bun/blob/bun-v1.3.11/src/install/PackageManager/PackageManagerDirectories.zig#L122-L146
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Oct 19, 2026https://github.com/getsentry/sentry-javascript/issues/25540#event-33674622933
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 19, 2026https://github.com/getsentry/sentry-javascript/issues/25540#issuecomment-6274648886
Linear Codehttps://linear.app
JS-3964https://linear.app/getsentry/issue/JS-3964
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Oct 19, 2026https://github.com/getsentry/sentry-javascript/issues/25540#event-33674626835
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Oct 19, 2026https://github.com/getsentry/sentry-javascript/issues/25540
linear-codehttps://github.com/apps/linear-code
Honohttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Hono%22
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
Bunhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bun%22
on Oct 19, 2026https://github.com/getsentry/sentry-javascript/issues/25540#event-33674671410
s1gr1dhttps://github.com/s1gr1d
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/25540#event-33731905067
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/25540#issuecomment-6289635741
#25552https://github.com/getsentry/sentry-javascript/pull/25552
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/25540#event-33735728179
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/25540
s1gr1dhttps://github.com/s1gr1d
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#25552https://github.com/getsentry/sentry-javascript/pull/25552
on Oct 22, 2026https://github.com/getsentry/sentry-javascript/issues/25540#event-33930202793
61465https://github.com/61465
on Oct 22, 2026https://github.com/getsentry/sentry-javascript/issues/25540#event-33943486253
fix(hono): Read connection info from the runtime instead of Hono help…https://github.com/61465/sentry-javascript/commit/b94aeb024612c702e529b057e7cf3223fd26eca0
https://docs.github.com/articles/closing-issues-via-commit-messages
b94aeb0https://github.com/61465/sentry-javascript/commit/b94aeb024612c702e529b057e7cf3223fd26eca0
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Oct 23, 2026https://github.com/getsentry/sentry-javascript/issues/25540#issuecomment-6363117442
GitHub Actionshttps://help.github.com/en/actions
#25552https://github.com/getsentry/sentry-javascript/pull/25552
11.9.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/11.9.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/25540
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25540
s1gr1dhttps://github.com/s1gr1d
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
Bunhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bun%22
Honohttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Hono%22
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.