Title: @sentry/serverless · Issue #7421 · getsentry/sentry-javascript · GitHub
Open Graph Title: @sentry/serverless · Issue #7421 · getsentry/sentry-javascript
X Title: @sentry/serverless · Issue #7421 · 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/7421
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry/serverless ","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? If you use the CDN bundles, please specify the exact bundle (e.g. `bundle.tracing.min.js`) in your SDK setup.\n\n@sentry/serverless\n\n### SDK Version\n\n7.42.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n```ts\r\nimport { AWSLambda } from '@sentry/serverless';\r\nimport { Handler } from 'aws-lambda';\r\nimport { getSstStage } from 'common';\r\n\r\nif (process.env['_HANDLER']) {\r\n AWSLambda.init({\r\n environment: getSstStage(),\r\n maxBreadcrumbs: 30,\r\n debug: false,\r\n });\r\n}\r\n\r\nexport function wrapSentry(fn: Handler) {\r\n return AWSLambda.wrapHandler(fn);\r\n}\r\n\r\nconst handler = middy(wrapSentry(resolverFunc))\r\n\r\n```\n\n### Steps to Reproduce\n\nWrap a handler in the latest sentry/serverless AWSLambda.wrapHandler\r\nI'm using appSync resolver lambda functions\n\n### Expected Result\n\nDon't throw this error 👇🏻 when I invoke the function\n\n### Actual Result\n\n```\r\nTypeError: Cannot assign to read only property 'get' of object '[object Module]'\r\n at fill (/node_modules/.pnpm/@sentry+utils@7.42.0/node_modules/@sentry/src/object.ts:39:1)\r\n at Http.setupOnce (/node_modules/.pnpm/@sentry+node@7.42.0/node_modules/@sentry/src/integrations/http.ts:105:1)\r\n at setupIntegration (/node_modules/.pnpm/@sentry+core@7.42.0/node_modules/@sentry/src/integration.ts:105:1)\r\n at \u003canonymous> (/node_modules/.pnpm/@sentry+core@7.42.0/node_modules/@sentry/src/integration.ts:93:1)\r\n at Array.forEach (\u003canonymous>)\r\n at setupIntegrations (/node_modules/.pnpm/@sentry+core@7.42.0/node_modules/@sentry/src/integration.ts:90:1)\r\n at NodeClient.setupIntegrations (/node_modules/.pnpm/@sentry+core@7.42.0/node_modules/@sentry/src/baseclient.ts:273:1)\r\n at Hub.bindClient (/node_modules/.pnpm/@sentry+core@7.42.0/node_modules/@sentry/src/hub.ts:124:1)\r\n at initAndBind (/node_modules/.pnpm/@sentry+core@7.42.0/node_modules/@sentry/src/sdk.ts:36:1)\r\n at init (/node_modules/.pnpm/@sentry+node@7.42.0/node_modules/@sentry/src/sdk.ts:170:1)\r\n```","author":{"url":"https://github.com/revmischa","@type":"Person","name":"revmischa"},"datePublished":"2023-03-11T05:03:18Z","url":"https://github.com/getsentry/sentry-javascript/issues/7421"}
| 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:7d52d54d-2475-eec3-0345-f221638c70ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99B6:265693:17E9B1:1FA6C2:6B04CBA6 |
| html-safe-nonce | 0caadd6446ceed505c6cd424f4d8f16f731e43aecadd73b8b3cd39dccc125e3c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUI2OjI2NTY5MzoxN0U5QjE6MUZBNkMyOjZCMDRDQkE2IiwidmlzaXRvcl9pZCI6IjYyNjIwMjM1MDE0NDkwNTUxNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d8c5980d2ca2ef93ee21448022bc7959230701e1a7c8d9e85b79d01e57a4a73a |
| hovercard-subject-tag | issue:1619884903 |
| 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/7421/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c7ba43f4a97b382687ec628d35ec58cc153c2bb95454e42cf9cbb1af7cd24a15/getsentry/sentry-javascript/issues/7421 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7ba43f4a97b382687ec628d35ec58cc153c2bb95454e42cf9cbb1af7cd24a15/getsentry/sentry-javascript/issues/7421 |
| 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 | revmischa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27ed421e5c2dac040a37529b5b9191edcc4a3de70521471e81fb4b4d9dc2aa7d |
| 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 | 63dc19014c621c67306d7899c04c78dcd0d95803 |
| ui-target | canary-2 |
| 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