Title: `9.15.0` breaks Cloudflare SDK usage in `sentry-mcp` · Issue #16182 · getsentry/sentry-javascript · GitHub
Open Graph Title: `9.15.0` breaks Cloudflare SDK usage in `sentry-mcp` · Issue #16182 · getsentry/sentry-javascript
X Title: `9.15.0` breaks Cloudflare SDK usage in `sentry-mcp` · Issue #16182 · getsentry/sentry-javascript
Description: Description getsentry/toolkit#136 3:24:55 PM [vite] Internal server error: Cannot read from private field @sentry/mcp-cloudflare:dev: at async ProxyServer.fetch (file:///home/dcramer/src/sentry-mcp/node_modules/.pnpm/miniflare@4.20250428...
Open Graph Description: Description getsentry/toolkit#136 3:24:55 PM [vite] Internal server error: Cannot read from private field @sentry/mcp-cloudflare:dev: at async ProxyServer.fetch (file:///home/dcramer/src/sentry-mcp...
X Description: Description getsentry/toolkit#136 3:24:55 PM [vite] Internal server error: Cannot read from private field @sentry/mcp-cloudflare:dev: at async ProxyServer.fetch (file:///home/dcramer/src/sentry-mcp...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/16182
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`9.15.0` breaks Cloudflare SDK usage in `sentry-mcp`","articleBody":"### Description\n\nhttps://github.com/getsentry/sentry-mcp/pull/136\n\n```\n3:24:55 PM [vite] Internal server error: Cannot read from private field\n@sentry/mcp-cloudflare:dev: at async ProxyServer.fetch (file:///home/dcramer/src/sentry-mcp/node_modules/.pnpm/miniflare@4.20250428.0/node_modules/miniflare/src/workers/core/proxy.worker.ts:173:11)\n^C ...Finishing writing to cache... \n```\n\nAI summary:\n\nBased on the code and error message, I can identify the issue. The error is occurring because there's a conflict between how Miniflare (the local development environment for Cloudflare Workers) handles private fields and how the Sentry SDK is trying to access them.\n\nThis suggests that the issue is related to how Miniflare v4 handles private fields in its proxy implementation, and how the Sentry SDK is trying to access these fields through its proxy wrapper.\nHere are a few potential solutions:\n\n1. Update Miniflare to a newer version if available, as this might be a known issue that's been fixed.\n1. Modify the proxy implementation in the Sentry SDK to handle private fields differently.\n1. Use a different approach for wrapping the fetch handler that doesn't rely on accessing private fields.\n\nI think we should try catch it.","author":{"url":"https://github.com/AbhiPrasad","@type":"Person","name":"AbhiPrasad"},"datePublished":"2025-05-01T15:41:18Z","url":"https://github.com/getsentry/sentry-javascript/issues/16182"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6b4dd925-7d04-818b-8151-4c7a79d3aab4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8532:2C0F2B:1007E18:14D7421:6B04ED5B |
| html-safe-nonce | ac55e424ab30c95e63c4f5d2692f700c0e3bef9ec2eb8711cd26606954e68f8b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTMyOjJDMEYyQjoxMDA3RTE4OjE0RDc0MjE6NkIwNEVENUIiLCJ2aXNpdG9yX2lkIjoiNDM4Njk2NDY1NDQ0MTcxMDk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7d3e91d7ba4debe4f2cb144333dedbc839f29765f1ea0bfa65aaa0da4adf4fe8 |
| hovercard-subject-tag | issue:3034130724 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/16182/issue_layout |
| twitter:image | https://opengraph.githubassets.com/85958cf0083c1a1d38848abb99e354994ba041cb7fad45b73dbaab6d4c5cd2e5/getsentry/sentry-javascript/issues/16182 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85958cf0083c1a1d38848abb99e354994ba041cb7fad45b73dbaab6d4c5cd2e5/getsentry/sentry-javascript/issues/16182 |
| og:image:alt | Description getsentry/toolkit#136 3:24:55 PM [vite] Internal server error: Cannot read from private field @sentry/mcp-cloudflare:dev: at async ProxyServer.fetch (file:///home/dcramer/src/sentry-mcp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AbhiPrasad |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0ff704de2671f716381d0ef36115cddb81606dd5397a5b003230bb8c02d623b |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cbe60d43d23e17438879ed212ad20068394651c4 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width