You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrap a handler in the latest sentry/serverless AWSLambda.wrapHandler
I'm using appSync resolver lambda functions
Expected Result
Don't throw this error 👇🏻 when I invoke the function
Actual Result
TypeError: Cannot assign to read only property 'get' of object '[object Module]'
at fill (/node_modules/.pnpm/@[email protected]/node_modules/@sentry/src/object.ts:39:1)
at Http.setupOnce (/node_modules/.pnpm/@[email protected]/node_modules/@sentry/src/integrations/http.ts:105:1)
at setupIntegration (/node_modules/.pnpm/@[email protected]/node_modules/@sentry/src/integration.ts:105:1)
at <anonymous> (/node_modules/.pnpm/@[email protected]/node_modules/@sentry/src/integration.ts:93:1)
at Array.forEach (<anonymous>)
at setupIntegrations (/node_modules/.pnpm/@[email protected]/node_modules/@sentry/src/integration.ts:90:1)
at NodeClient.setupIntegrations (/node_modules/.pnpm/@[email protected]/node_modules/@sentry/src/baseclient.ts:273:1)
at Hub.bindClient (/node_modules/.pnpm/@[email protected]/node_modules/@sentry/src/hub.ts:124:1)
at initAndBind (/node_modules/.pnpm/@[email protected]/node_modules/@sentry/src/sdk.ts:36:1)
at init (/node_modules/.pnpm/@[email protected]/node_modules/@sentry/src/sdk.ts:170:1)
The text was updated successfully, but these errors were encountered:
Hi @revmischa thanks for reporting! This is likely caused by #7377 which we included in 7.42.0. It was also reported in #7425 . We're working on a fix which we'll release in the next version.
…7430)
Partially revert #7377 which caused monkey patching errors when patching the native `http` and `https` modules in the Node SDK (#7425). Similarly, also our Serverless SDK was subjected to the same problem (#7421).
The problem is that `import` doesn't permit monkey patching of the imported (`http(s)`) module, producing this error:
```bash
TypeError: Cannot assign to read only property 'get' of object '[object Module]'
```
I tried using a dynamic import instead but got the same result. So it seems like we can only use `require` here :(
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
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.@sentry/serverless
SDK Version
7.42.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
Wrap a handler in the latest sentry/serverless AWSLambda.wrapHandler
I'm using appSync resolver lambda functions
Expected Result
Don't throw this error 👇🏻 when I invoke the function
Actual Result
The text was updated successfully, but these errors were encountered: