Title: "Non-Error exception captured with keys: [...]" due to invalid error instanceof check · Issue #6822 · getsentry/sentry-javascript · GitHub
Open Graph Title: "Non-Error exception captured with keys: [...]" due to invalid error instanceof check · Issue #6822 · getsentry/sentry-javascript
X Title: "Non-Error exception captured with keys: [...]" due to invalid error instanceof check · Issue #6822 · getsentry/sentry-javascript
Description: This issue is a follow up of #6332. It has been close since at that time I thought this was an Angular package only issue, but it looks like the is also upstream. From what I can see, this is caused by https://github.com/getsentry/sentry...
Open Graph Description: This issue is a follow up of #6332. It has been close since at that time I thought this was an Angular package only issue, but it looks like the is also upstream. From what I can see, this is cause...
X Description: This issue is a follow up of #6332. It has been close since at that time I thought this was an Angular package only issue, but it looks like the is also upstream. From what I can see, this is cause...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/6822
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Non-Error exception captured with keys: [...]\" due to invalid error instanceof check","articleBody":"This issue is a follow up of https://github.com/getsentry/sentry-javascript/issues/6332. It has been close since at that time I thought this was an Angular package only issue, but it looks like the is also upstream.\r\n\r\nFrom what I can see, this is caused by https://github.com/getsentry/sentry-javascript/blob/master/packages/browser/src/eventbuilder.ts#L228-L230.\r\n\r\n### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSelf-hosted/on-premise\r\n\r\n### Which package are you using?\r\n\r\n@sentry/angular\r\n\r\n### SDK Version\r\n\r\n7.4.30\r\n\r\n### Framework Version\r\n\r\nAngular 13.3 & Ionic 5\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n_No response_\r\n\r\n### Steps to Reproduce\r\n\r\n```js\r\nthrow {\r\n name: 'ErrorLikeObject',\r\n message: 'ErrorLikeObject message',\r\n};\r\n```\r\n\r\n### Expected Result\r\n\r\nA Sentry record showing something along the lines of:\r\n\r\n```\r\nErrorLikeObject\r\nErrorLikeObject message\r\n```\r\n\r\n### Actual Result\r\n\r\nThe current Sentry record showing something along the lines of:\r\n\r\n```\r\ncaptureException\r\nNon-Error exception captured with keys: message, name\r\n```","author":{"url":"https://github.com/theofidry","@type":"Person","name":"theofidry"},"datePublished":"2023-01-17T14:04:56Z","url":"https://github.com/getsentry/sentry-javascript/issues/6822"}
| 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:e50e64c3-2035-241d-442e-e79c061251c8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA36:1F9AE2:3D3D74:533211:6B044173 |
| html-safe-nonce | f98ff9652f1038acf1bfb13868261135fc2f08d2415daeb9b3c3116a350487fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTM2OjFGOUFFMjozRDNENzQ6NTMzMjExOjZCMDQ0MTczIiwidmlzaXRvcl9pZCI6IjUyNTI1NzI5MjI2NDM3NTk0NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 47d4031bba5d26c5ffe63ea3d8572add306c339e781627f68c66617a80b1bbf0 |
| hovercard-subject-tag | issue:1536436202 |
| 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/6822/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7ffc6646d5e66b8a4dfd8c311702269e221cd5cde9300b92b8912926e144e3a9/getsentry/sentry-javascript/issues/6822 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7ffc6646d5e66b8a4dfd8c311702269e221cd5cde9300b92b8912926e144e3a9/getsentry/sentry-javascript/issues/6822 |
| og:image:alt | This issue is a follow up of #6332. It has been close since at that time I thought this was an Angular package only issue, but it looks like the is also upstream. From what I can see, this is cause... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | theofidry |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| 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