-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
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/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
9.2.0
Framework Version
No response
Link to Sentry event
Reproduction Example/SDK Setup
No response
Steps to Reproduce
Report an error which contains a property that is an object with a custom prototype like Header from effect: https://github.com/Effect-TS/effect/blob/main/packages/platform/src/Headers.ts#L44
Object.getPrototypeOf(Object.create({})) has no constructor
the problem in the SDK is here is a constructor assumed:
return prototype ? prototype.constructor.name : 'null prototype';
In EventBuilder you silently catch errors on that instead
Expected Result
no error inside Contexts cause.defect.response.headers
Actual Result
error
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
No status