Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix RangeError: Maximum call stack size exceeded #16595

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

marekrjpolak
Copy link
Contributor

Description

When Solana websocket disconnects, the thrown SolanaError has cyclic dependency in cause field, which caused an error when sending to Sentry (it's specific to @sentry/electron package and its dependency deepmerge):

...
  extra: { arguments: [ 'Solana subscription error:', [SolanaError] ] },
...

Dunno why Sentry serialization can't handle this e.g. by normalizeDepth setting, it may be a bug on their side, but the simplest solution is to remove one residual console.error.

Related Issue

Resolve #16530

@marekrjpolak marekrjpolak requested a review from mroz22 as a code owner January 24, 2025 15:28
@mroz22 mroz22 requested a review from martykan January 24, 2025 15:37
Copy link
Member

@martykan martykan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, easiest way to deal with this

@martykan martykan closed this Jan 27, 2025
@martykan martykan force-pushed the fix/sentry-call-stack branch from dc32220 to 70b9fdd Compare January 27, 2025 07:51
@martykan
Copy link
Member

I was expecting a conflict with 2b85a29
I rebased via GitHub, somehow it just dropped the commit in this PR...
I'll make a new one

@martykan martykan reopened this Jan 27, 2025
@martykan martykan merged commit 1709321 into develop Jan 27, 2025
51 of 62 checks passed
@martykan martykan deleted the fix/sentry-call-stack branch January 27, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RangeError: Maximum call stack size exceeded
2 participants