René's URL Explorer Experiment


Title: Remix: Sentry conflict with Remix's Error Boundaries · Issue #5762 · getsentry/sentry-javascript · GitHub

Open Graph Title: Remix: Sentry conflict with Remix's Error Boundaries · Issue #5762 · getsentry/sentry-javascript

X Title: Remix: Sentry conflict with Remix's Error Boundaries · Issue #5762 · getsentry/sentry-javascript

Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...

Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...

X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remix: Sentry conflict with Remix's Error Boundaries","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which package are you using?\n\n@sentry/remix\n\n### SDK Version\n\n7.13.0\n\n### Framework Version\n\nReact 18.2.0 / Remix 1.7.1\n\n### Link to Sentry event\n\n_No response_\n\n### Steps to Reproduce\n\nSet up a new Remix app and add Sentry. Add an ErrorBoundary export to the root file:\r\n\r\n```tsx\r\n// app/root.tsx\r\n\r\n// ...\r\n\r\nexport const ErrorBoundary: ErrorBoundaryComponent = () => {\r\n  return \u003cdiv>REMIX BOUNDARY\u003c/div>;\r\n}\r\n\r\nfunction App() {\r\n  // ...\r\n}\r\n\r\nexport default withSentry(App, {\r\n  wrapWithErrorBoundary: true,\r\n  errorBoundaryOptions: {\r\n    fallback: \u003cdiv>SENTRY BOUNDARY\u003c/div>;\r\n  }\r\n})\r\n```\r\n\n\n### Expected Result\n\nI should be able to use Remix's own ErrorBoundary functionality both at the root level and in child routes and still have Sentry know when/when not to report errors.\r\n\r\nAlternatively, if there are limitations in Remix that won't let this work as expected, the documentation should be clearer about server/client error handling and error boundaries.\n\n### Actual Result\n\nThe custom \"REMIX BOUNDARY\" ErrorBoundary above only gets displayed if the error was server side. All client-side errors use the \"SENTRY BOUNDARY\" error set in `withSentry` (unless you have a route-level ErrorBoundary, then client-side errors never make it to Sentry. My guess is that the `withSentry` fallback/wrapper completely ignores all server-side errors to avoid double-reporting.)There are a bunch of combinations of server/client errors and server/client rendering (I'm sure I'm missing some):\r\n\r\n- SSR/CSR loader/action error: Sentry reports this server-side and does not report it client-side. The Remix boundary is displayed. If I remove the Remix boundary export, a raw error trace is rendered. Sentry's fallback is never displayed.\r\n- CSR rendering error: Sentry reports the error and the Sentry fallback is displayed. The Remix boundary is *not* shown.\r\n- SSR rendering error: Sentry reports the error server-side. Same result client-side as the loader/action errors in the first bullet above.\r\n\r\nIf I add a custom Remix ErrorBoundary export to a child route, the behavior is the same with one exception:\r\n\r\n- CSR rendering error: Sentry does *not* report any error and the Remix boundary is shown. This seems to be the most common spot for errors to go unreported.\r\n\r\nIt seems the only viable solution until this is addressed is:\r\n\r\n- Add a root-level Remix error boundary AND a custom fallback to Sentry that are essentially duplicates of each other so you get consistent error screens.\r\n- Don't use route-level error boundaries (which goes against the whole point of Remix's nested route handling), or if you do, manually call `Sentry.captureException(...)` in them, though that could possibly report duplicate issues from both the server and client side.","author":{"url":"https://github.com/dmarkow","@type":"Person","name":"dmarkow"},"datePublished":"2022-09-16T20:36:17Z","url":"https://github.com/getsentry/sentry-javascript/issues/5762"}

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:a3c302fd-9b47-cdf9-1bd5-62f52965484b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id917A:258558:8306C5:ACB38C:6B04CD5C
html-safe-nonce83d13a293cce03ee5a28501c9d60cfdfe25598df0f50050d5e2acb0296a447d1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTdBOjI1ODU1ODo4MzA2QzU6QUNCMzhDOjZCMDRDRDVDIiwidmlzaXRvcl9pZCI6IjI0Mjg4MjE0OTY3OTAzMDYxNDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac76e2c0deef3bfe0e90d0056456082616cd3d72bc49d198b7f5fa765ac46f8ffe
hovercard-subject-tagissue:1376446094
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/5762/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4bec2834e04dcaf92237247cb720eeafd2afc7d072b8e946cbc11a452ea55d9d/getsentry/sentry-javascript/issues/5762
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4bec2834e04dcaf92237247cb720eeafd2afc7d072b8e946cbc11a452ea55d9d/getsentry/sentry-javascript/issues/5762
og:image:altIs there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedmarkow
hostnamegithub.com
expected-hostnamegithub.com
None27ed421e5c2dac040a37529b5b9191edcc4a3de70521471e81fb4b4d9dc2aa7d
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
release63dc19014c621c67306d7899c04c78dcd0d95803
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/5762#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F5762
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%2F5762
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/5762
Reloadhttps://github.com/getsentry/sentry-javascript/issues/5762
Reloadhttps://github.com/getsentry/sentry-javascript/issues/5762
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues333 (333)https://github.com/getsentry/sentry-javascript/issues
Pull requests51 (51)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/5762
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/5762
Remix: Sentry conflict with Remix's Error Boundarieshttps://github.com/getsentry/sentry-javascript/issues/5762#top
https://github.com/onurtemizkan
https://github.com/dmarkow
dmarkowhttps://github.com/dmarkow
on Sep 16, 2022https://github.com/getsentry/sentry-javascript/issues/5762#issue-1376446094
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
dmarkowhttps://github.com/dmarkow
Type: Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
on Sep 16, 2022https://github.com/getsentry/sentry-javascript/issues/5762#event-7405997667
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Sep 16, 2022https://github.com/getsentry/sentry-javascript/issues/5762#event-7405997802
https://github.com/onurtemizkan
onurtemizkanhttps://github.com/onurtemizkan
on Sep 20, 2022https://github.com/getsentry/sentry-javascript/issues/5762#issuecomment-1252125963
@dmarkowhttps://github.com/dmarkow
onurtemizkanhttps://github.com/onurtemizkan
on Sep 20, 2022https://github.com/getsentry/sentry-javascript/issues/5762#event-7420705844
onurtemizkanhttps://github.com/onurtemizkan
Status: Confirmedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Confirmed%22
Feature: Errorshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Feature%3A%20Errors%22
Package: remixhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20remix%22
on Sep 20, 2022https://github.com/getsentry/sentry-javascript/issues/5762#event-7420710393
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Sep 20, 2022https://github.com/getsentry/sentry-javascript/issues/5762#event-7420710601
https://github.com/onurtemizkan
onurtemizkanhttps://github.com/onurtemizkan
on Sep 27, 2022https://github.com/getsentry/sentry-javascript/issues/5762#issuecomment-1259376093
instrumentBuildhttps://github.com/getsentry/sentry-javascript/blob/12c19d051eca4fcef316ba6ee512f1221ae92ef0/packages/remix/src/utils/instrumentServer.ts#L412
@AbhiPrasadhttps://github.com/AbhiPrasad
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Sep 28, 2022https://github.com/getsentry/sentry-javascript/issues/5762#issuecomment-1260723305
instrumentBuildhttps://github.com/getsentry/sentry-javascript/blob/12c19d051eca4fcef316ba6ee512f1221ae92ef0/packages/remix/src/utils/instrumentServer.ts#L412
@onurtemizkanhttps://github.com/onurtemizkan
https://github.com/onurtemizkan
onurtemizkanhttps://github.com/onurtemizkan
on Oct 6, 2022https://github.com/getsentry/sentry-javascript/issues/5762#issuecomment-1270359614
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Oct 28, 2022https://github.com/getsentry/sentry-javascript/issues/5762#issuecomment-1294264671
github-actionshttps://github.com/apps/github-actions
Status: Stalehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
on Oct 28, 2022https://github.com/getsentry/sentry-javascript/issues/5762#event-7686869144
onurtemizkanhttps://github.com/onurtemizkan
Status: Needs Discussionhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Needs%20Discussion%22
Status: Stalehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
on Oct 28, 2022https://github.com/getsentry/sentry-javascript/issues/5762#event-7691871061
github-actionshttps://github.com/apps/github-actions
Status: Stalehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
on Nov 19, 2022https://github.com/getsentry/sentry-javascript/issues/5762#event-7848364102
getsentryhttps://github.com/getsentry
github-actionshttps://github.com/github-actions
on Nov 20, 2022https://github.com/getsentry/sentry-javascript/issues/5762#event-7851778272
AbhiPrasadhttps://github.com/AbhiPrasad
Status: Backloghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Backlog%22
Status: Stalehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
Status: Confirmedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Confirmed%22
Status: Needs Discussionhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Needs%20Discussion%22
on Nov 20, 2022https://github.com/getsentry/sentry-javascript/issues/5762#event-7851778468
https://github.com/smeubank
smeubankhttps://github.com/smeubank
on Dec 1, 2022https://github.com/getsentry/sentry-javascript/issues/5762#issuecomment-1333970838
HazAThttps://github.com/HazAT
onurtemizkanhttps://github.com/onurtemizkan
on Feb 13, 2023https://github.com/getsentry/sentry-javascript/issues/5762#event-8502782845
https://github.com/Mange
Mangehttps://github.com/Mange
on Feb 28, 2023https://github.com/getsentry/sentry-javascript/issues/5762#issuecomment-1447913086
AbhiPrasadhttps://github.com/AbhiPrasad
onurtemizkanhttps://github.com/onurtemizkan
on Jul 13, 2023https://github.com/getsentry/sentry-javascript/issues/5762#event-9811317603
Lms24https://github.com/Lms24
on Jul 13, 2023https://github.com/getsentry/sentry-javascript/issues/5762#event-9811750634
feat(remix): Add Remix v2 support (#8415)https://github.com/getsentry/sentry-javascript/commit/2c3066efd5c8047ceb48a4740afe6e043afe0713
#8415https://github.com/getsentry/sentry-javascript/pull/8415
2c3066ehttps://github.com/getsentry/sentry-javascript/commit/2c3066efd5c8047ceb48a4740afe6e043afe0713
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Jul 24, 2023https://github.com/getsentry/sentry-javascript/issues/5762#issuecomment-1648068651
https://docs.sentry.io/platforms/javascript/guides/remix/#remix-v2-featureshttps://docs.sentry.io/platforms/javascript/guides/remix/#remix-v2-features
AbhiPrasadhttps://github.com/AbhiPrasad
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 24, 2023https://github.com/getsentry/sentry-javascript/issues/5762#event-9901278112
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/5762
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/5762
onurtemizkanhttps://github.com/onurtemizkan
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.