René's URL Explorer Experiment


Title: Error's `cause` not respected (for non-Error causes) · Issue #9913 · getsentry/sentry-javascript · GitHub

Open Graph Title: Error's `cause` not respected (for non-Error causes) · Issue #9913 · getsentry/sentry-javascript

X Title: Error's `cause` not respected (for non-Error causes) · Issue #9913 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

X Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error's `cause` not respected (for non-Error causes)","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 SDK are you using?\n\n@sentry/browser\n\n### SDK Version\n\n7.88.0\n\n### Framework Version\n\nn/a\n\n### Link to Sentry event\n\nhttps://prisjakt-ab.sentry.io/issues/4738454694/events/latest/?project=4506415694348288\n\n### SDK Setup\n\n```ts\r\nSentry.init({\r\n  // ...\r\n  integrations: [\r\n    new Sentry.Integrations.Http(),\r\n    new Sentry.Integrations.FunctionToString(),\r\n    new Sentry.Integrations.ContextLines(),\r\n    new Sentry.Integrations.LocalVariables(),\r\n    new Sentry.Integrations.LinkedErrors(),\r\n    new Sentry.Integrations.RequestData({\r\n      include: {\r\n        user: false,\r\n        ip: true,\r\n        cookies: false,\r\n        data: false,\r\n        headers: false,\r\n        query_string: false,\r\n        url: false,\r\n      },\r\n    }),\r\n  ],\r\n  // ...\r\n});\r\n```\r\n\r\n```ts\r\nSentry.withScope((scope) => {\r\n  scope.setSDKProcessingMetadata({ request: ctx.request });\r\n  Sentry.captureException(error);\r\n});\r\n```\n\n### Steps to Reproduce\n\n1. Do API request:\r\n```ts\r\ntry {\r\n  const res = await doFetch();\r\n\r\n  if (res.error) {\r\n    throw new Error(\"Request failed\", {\r\n      cause: res\r\n    });\r\n  }\r\n```\r\n2. Catch error and log it\r\n```ts\r\n} catch (err) {\r\n  Sentry.withScope((scope) => {\r\n    scope.setSDKProcessingMetadata({ request: ctx.request });\r\n    Sentry.captureException(err);\r\n  });\r\n}\r\n```\r\n\r\nThis adds the failed API response as `cause` on the error object. Yet on the linked issue in Sentry, there is no reference to that error cause. \n\n### Expected Result\n\nThe cause should somehow show in Sentry. I saw it do that for `Error`-causes. I saw some other GH issue thread that had something to do with a React boundary, but that was fixed and closed, so likely not applicable (also I can't find the link any more)\n\n### Actual Result\n\nThe cause doesn't show on the Sentry issue.","author":{"url":"https://github.com/jeengbe","@type":"Person","name":"jeengbe"},"datePublished":"2023-12-19T12:54:20Z","url":"https://github.com/getsentry/sentry-javascript/issues/9913"}

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/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:8f1c0671-ff90-5895-42d6-7025be47fd3e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9ACE:45E1A:164CF7:1F03F8:6B0465EC
html-safe-nonce01170fdf77331af1d9bb66ead2f0e5b5f72f8bfb18a16c3d45678222b2cba43f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUNFOjQ1RTFBOjE2NENGNzoxRjAzRjg6NkIwNDY1RUMiLCJ2aXNpdG9yX2lkIjoiNDI4MjQ1OTYzNTc2OTk1OTkxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4899ffee8924ad149e895bec6f61e09f897884aa91b93ba2e18b05f8608ef589
hovercard-subject-tagrepository:3328572
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-javascript/issues/9913
twitter:imagehttps://repository-images.githubusercontent.com/3328572/1b73c77d-6488-4ece-9e12-e61d9eb2ac2b
twitter:cardsummary_large_image
og:imagehttps://repository-images.githubusercontent.com/3328572/1b73c77d-6488-4ece-9e12-e61d9eb2ac2b
og:image:altOfficial Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f
turbo-cache-controlno-cache
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
releaseca4d07a7cef4e4b75f821dc25e7300d80c1450a9
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/9913#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F9913
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%2F9913
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/9913
Reloadhttps://github.com/getsentry/sentry-javascript/issues/9913
Reloadhttps://github.com/getsentry/sentry-javascript/issues/9913
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/9913
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/9913
#9914https://github.com/getsentry/sentry-javascript/pull/9914
Error's cause not respected (for non-Error causes)https://github.com/getsentry/sentry-javascript/issues/9913#top
#9914https://github.com/getsentry/sentry-javascript/pull/9914
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
https://github.com/jeengbe
jeengbehttps://github.com/jeengbe
on Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#issue-2048604193
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
https://prisjakt-ab.sentry.io/issues/4738454694/events/latest/?project=4506415694348288https://prisjakt-ab.sentry.io/issues/4738454694/events/latest/?project=4506415694348288
jeengbehttps://github.com/jeengbe
Type: Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
on Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#event-11289343765
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 Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#event-11289344239
jeengbehttps://github.com/jeengbe
on Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#event-11289345356
github-actionshttps://github.com/apps/github-actions
Package: Browserhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20Browser%22
on Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#event-11289346267
jeengbehttps://github.com/jeengbe
on Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#event-11289346783
https://github.com/lforst
lforsthttps://github.com/lforst
on Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#issuecomment-1862717422
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 Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#event-11289415553
https://github.com/jeengbe
jeengbehttps://github.com/jeengbe
on Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#issuecomment-1862719241
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 Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#event-11289427582
https://github.com/lforst
lforsthttps://github.com/lforst
on Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#issuecomment-1862722117
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 Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#event-11289448895
https://github.com/jeengbe
jeengbehttps://github.com/jeengbe
on Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#issuecomment-1862726191
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause#providing_structured_data_as_the_error_causehttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause#providing_structured_data_as_the_error_cause
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 Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#event-11289477304
https://github.com/lforst
lforsthttps://github.com/lforst
on Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#issuecomment-1862730388
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 Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#event-11289506331
https://github.com/lforst
lforsthttps://github.com/lforst
on Dec 19, 2023https://github.com/getsentry/sentry-javascript/issues/9913#issuecomment-1862750076
lforsthttps://github.com/lforst
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#9914https://github.com/getsentry/sentry-javascript/pull/9914
on Dec 22, 2023https://github.com/getsentry/sentry-javascript/issues/9913#event-11326074024
stephanie-andersonhttps://github.com/stephanie-anderson
Bughttps://github.com/getsentry/sentry-javascript/issues?q=type:"Bug"
on Mar 20, 2025https://github.com/getsentry/sentry-javascript/issues/9913#event-16915722496
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Aug 12, 2025https://github.com/getsentry/sentry-javascript/issues/9913#event-19124817196
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/9913
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/9913
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
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.