Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Receiving "**non-serializable** (TypeError: Cannot read properties of undefined (reading 'name'))" for an error property #15538

Open
3 tasks done
patroza opened this issue Feb 28, 2025 · 0 comments
Labels
Package: browser Issues related to the Sentry Browser SDK Waiting for: Product Owner

Comments

@patroza
Copy link

patroza commented Feb 28, 2025

Is there an existing issue for this?

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

https://macs-holding.sentry.io/issues/6218488847/events/039f7b826c3d4864bbf132089ea3f611?project=4504671195299840&referrer=alert-rule-issue-list

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

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Feb 28, 2025
@github-actions github-actions bot added the Package: browser Issues related to the Sentry Browser SDK label Feb 28, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Package: browser Issues related to the Sentry Browser SDK Waiting for: Product Owner
Projects
Status: Waiting for: Product Owner
Development

No branches or pull requests

1 participant