Title: Sentry when running over capacitor as hybrid app stackrace is not having any information · Issue #1863 · getsentry/sentry-javascript · GitHub
Open Graph Title: Sentry when running over capacitor as hybrid app stackrace is not having any information · Issue #1863 · getsentry/sentry-javascript
X Title: Sentry when running over capacitor as hybrid app stackrace is not having any information · Issue #1863 · getsentry/sentry-javascript
Description: [*] Review the documentation: https://docs.sentry.io/ [*] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues [*] Use the latest release: https://github.com/getsentry/sentry-javascript/releases Package + Ver...
Open Graph Description: [*] Review the documentation: https://docs.sentry.io/ [*] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues [*] Use the latest release: https://github.com/getsentry/...
X Description: [*] Review the documentation: https://docs.sentry.io/ [*] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues [*] Use the latest release: https://github.com/getsentry/...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/1863
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry when running over capacitor as hybrid app stackrace is not having any information","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [*] Review the documentation: https://docs.sentry.io/\r\n- [*] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [*] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n\r\n## Package + Version\r\n\r\n- [ ] `@sentry/browser`\r\n- [ ] `@sentry/node`\r\n- [*] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [ ] other:\r\n\r\n### Version:\r\n\r\n```\r\n\"raven-js\": \"3.27.0\",\r\n```\r\n\r\n## Description\r\n\r\nCode to install\r\n```\r\nRaven\r\n .config(dsnToUse, {\r\n release: \"WSVue-\" + AppConst.application.version + \"-\" + AppConst.application.bundleVersion,\r\n environment: bootstrapAppService.getEnvironment(),\r\n ignoreErrors: content.ignoreErrorsList,\r\n tags: {appversion: appInfo.applicationVersion},\r\n dataCallback: function (data) {\r\n // do something to data\r\n data.extra.localStorageData = getLocalStorageData();\r\n return data;\r\n }\r\n })\r\n .addPlugin(RavenVue, Vue)\r\n .install();\r\n```\r\n\r\nWith website environment it is working awesome. But I have same codebase as hybrid app using Capacitor.\r\n\r\nCapacitor: https://capacitor.ionicframework.com/\r\n\r\nError infor logged is not having ang stack information.\r\n\r\nError data logged looks like this\r\n```\r\n{\r\n \"project\": \"181355\",\r\n \"logger\": \"javascript\",\r\n \"platform\": \"javascript\",\r\n \"request\": {\r\n \"headers\": {\r\n \"User-Agent\": \"Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16B91\"\r\n },\r\n \"url\": \"capacitor://localhost#/app/developer\"\r\n },\r\n \"exception\": {\r\n \"values\": [\r\n {\r\n \"type\": \"Error\",\r\n \"value\": \"Forcing error fooboo tester\",\r\n \"stacktrace\": {\r\n \"frames\": [\r\n {\r\n \"filename\": \"[native code]\",\r\n \"lineno\": null,\r\n \"colno\": null,\r\n \"function\": \"Promise\",\r\n \"in_app\": true\r\n },\r\n {\r\n \"filename\": \"[native code]\",\r\n \"lineno\": null,\r\n \"colno\": null,\r\n \"function\": \"initializePromise\",\r\n \"in_app\": true\r\n },\r\n {\r\n \"filename\": \"[native code]\",\r\n \"lineno\": null,\r\n \"colno\": null,\r\n \"function\": \"Promise\",\r\n \"in_app\": true\r\n },\r\n {\r\n \"filename\": \"[native code]\",\r\n \"lineno\": null,\r\n \"colno\": null,\r\n \"function\": \"initializePromise\",\r\n \"in_app\": true\r\n },\r\n {\r\n \"filename\": \"[native code]\",\r\n \"lineno\": null,\r\n \"colno\": null,\r\n \"function\": \"forceError\",\r\n \"in_app\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"mechanism\": {\r\n \"type\": \"generic\",\r\n \"handled\": true\r\n }\r\n },\r\n \"transaction\": \"[native code]\",\r\n \"trimHeadFrames\": 0,\r\n \"extra\": {\r\n \"message\": \"Forcing error fooboo tester\",\r\n \"code\": \"Forcing error fooboo tester.\",\r\n \"emailTried\": \"Forcing error fooboo. tester\",\r\n \"name\": \"Forcing error fooboo tester.\",\r\n \"session:duration\": 66618\r\n },\r\n \"tags\": {\r\n \"appversion\": \"4.4.6\"\r\n },\r\n \"breadcrumbs\": {\r\n \"values\": [\r\n {\r\n \"timestamp\": 1549015935.474,\r\n \"message\": \"Input: enableInputBlurring\",\r\n \"level\": \"debug\",\r\n \"category\": \"console\"\r\n },\r\n {\r\n \"timestamp\": 1549015935.474,\r\n \"message\": \"Input: enableScrollPadding\",\r\n \"level\": \"debug\",\r\n \"category\": \"console\"\r\n },\r\n {\r\n \"timestamp\": 1549015935.481,\r\n \"type\": \"http\",\r\n \"category\": \"xhr\",\r\n \"data\": {\r\n \"method\": \"GET\",\r\n \"url\": \"static/json/airports.json\",\r\n \"status_code\": 200\r\n }\r\n },\r\n {\r\n \"timestamp\": 1549015935.745,\r\n \"type\": \"http\",\r\n \"category\": \"xhr\",\r\n \"data\": {\r\n \"method\": \"GET\",\r\n \"url\": \"static/json/wx.json\",\r\n \"status_code\": 200\r\n }\r\n },\r\n {\r\n \"timestamp\": 1549015935.759,\r\n \"message\": \"checkUserAuthenticated\",\r\n \"level\": \"log\",\r\n \"category\": \"console\"\r\n },\r\n {\r\n \"timestamp\": 1549015935.783,\r\n \"message\": \"checkUserAuthenticated:Refreshing session\",\r\n \"level\": \"log\",\r\n \"category\": \"console\"\r\n },\r\n {\r\n \"timestamp\": 1549015937.922,\r\n \"type\": \"http\",\r\n \"category\": \"fetch\",\r\n \"data\": {\r\n \"method\": \"POST\",\r\n \"url\": \"https://cognito-idp.us-east-1.amazonaws.com/\",\r\n \"status_code\": 200\r\n }\r\n },\r\n {\r\n \"timestamp\": 1549015938.318,\r\n \"type\": \"http\",\r\n \"category\": \"fetch\",\r\n \"data\": {\r\n \"method\": \"POST\",\r\n \"url\": \"https://cognito-idp.us-east-1.amazonaws.com/\",\r\n \"status_code\": 200\r\n }\r\n },\r\n {\r\n \"timestamp\": 1549015939.911,\r\n \"type\": \"http\",\r\n \"category\": \"xhr\",\r\n \"data\": {\r\n \"method\": \"POST\",\r\n \"url\": \"https://cognito-identity.us-east-1.amazonaws.com/\",\r\n \"status_code\": 200\r\n }\r\n }\r\n ]\r\n },\r\n \"user\": {\r\n \"email\": \"********@gmail.com\"\r\n },\r\n \"environment\": \"DEV:CORDOVA:TFXC\",\r\n \"release\": \"WSVue-4.4.6-0.19.02.01.04.07\",\r\n \"event_id\": \"f137e408f8114bdcbc013be0b04f1f6a\"\r\n}\r\n\r\n```\r\n\r\nStack information looks like this on sentry\r\n\u003cimg width=\"692\" alt=\"screenshot 2019-02-01 at 6 01 19 pm\" src=\"https://user-images.githubusercontent.com/8480351/52123220-6fb44a80-264b-11e9-86ae-2f774959df99.png\">\r\n\r\n\r\n\r\n### **Same error logged on website looks very nice**\r\n\r\n\r\n\r\n\r\n\u003cimg width=\"596\" alt=\"52032491-2975c300-2547-11e9-8800-2e0b23bc69f6\" src=\"https://user-images.githubusercontent.com/8480351/52123293-aab67e00-264b-11e9-9682-5b98a289efe6.png\">\r\n","author":{"url":"https://github.com/stripathix","@type":"Person","name":"stripathix"},"datePublished":"2019-02-01T14:37:59Z","url":"https://github.com/getsentry/sentry-javascript/issues/1863"}
| 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:a1a5f131-c865-9741-f6e6-e9c297c8e530 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6C8:1C8FCC:377CA0:4B0972:6B043F3A |
| html-safe-nonce | a4055efb3b542952079c806b0641f20425242c6e91a136c9c334a18a6a333de4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkM4OjFDOEZDQzozNzdDQTA6NEIwOTcyOjZCMDQzRjNBIiwidmlzaXRvcl9pZCI6IjY1MjA3MTM0NTMzMTYwOTU4MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b3cd299fb2bbd1c8a1d808898e573eac690546923de660e1bc573d0e356bd1aa |
| hovercard-subject-tag | issue:405727975 |
| 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/1863/issue_layout |
| twitter:image | https://opengraph.githubassets.com/54452261a06ffadca677ec34cd5a0394b99383fe39b2f384e2e406206ef00026/getsentry/sentry-javascript/issues/1863 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/54452261a06ffadca677ec34cd5a0394b99383fe39b2f384e2e406206ef00026/getsentry/sentry-javascript/issues/1863 |
| og:image:alt | [*] Review the documentation: https://docs.sentry.io/ [*] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues [*] Use the latest release: https://github.com/getsentry/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stripathix |
| 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