Title: Sentry.captureException is not a function · Issue #7441 · getsentry/sentry-javascript · GitHub
Open Graph Title: Sentry.captureException is not a function · Issue #7441 · getsentry/sentry-javascript
X Title: Sentry.captureException is not a function · Issue #7441 · 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/7441
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry.captureException is not a function","articleBody":"### 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 SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. `bundle.tracing.min.js`) in your SDK setup.\r\n\r\n@sentry/serverless\r\n\r\n### SDK Version\r\n\r\n7.43.0\r\n\r\n### Framework Version\r\n\r\n_No response_\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n```typescript\r\nimport * as Sentry from '@sentry/serverless'\r\n\r\nSentry.GCPFunction.init({\r\n\tdsn: '',\r\n\tenvironment: process.env.NODE_ENV,\r\n})\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\nSentry.captureException(new Error('test'))\r\n\r\n### Expected Result\r\n\r\nDon't crash\r\n\r\n### Actual Result\r\n\r\nCrash\r\n\r\n```\r\nTypeError: Sentry.captureException is not a function\r\n at file:///Users/maxpain/dev/gptaskbot/src/index.ts:64:8\r\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\r\n```","author":{"url":"https://github.com/maxpain","@type":"Person","name":"maxpain"},"datePublished":"2023-03-13T17:04:25Z","url":"https://github.com/getsentry/sentry-javascript/issues/7441"}
| 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:cbbcbff6-e768-89c6-de11-869ddd0635fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9706:1204FD:10B047:16393B:6B04B11C |
| html-safe-nonce | 6a8ef8d4938f8af56dd7ab67b931716b577c83f363135234f0173608f70fa59c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzA2OjEyMDRGRDoxMEIwNDc6MTYzOTNCOjZCMDRCMTFDIiwidmlzaXRvcl9pZCI6IjY1Njc5NTA5MjY5Mjk1Mzg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5094b6e17c4cfa769f3f2acd69eaac0e299da5dfa63947eb717e387fd243e75a |
| hovercard-subject-tag | issue:1621898539 |
| 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/7441/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c142b9d442e76f31ebe4bb730624ec92f8def44584dbe9f0716bc646d886704a/getsentry/sentry-javascript/issues/7441 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c142b9d442e76f31ebe4bb730624ec92f8def44584dbe9f0716bc646d886704a/getsentry/sentry-javascript/issues/7441 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxpain |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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