Skip to content

Maximum call stack exceeded with sentry node (comes from sentry/integrations) #9332

@derrandz

Description

@derrandz

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

7.74.1

Framework Version

Nuxt 2.15.7

Link to Sentry event

No response

SDK Setup

// Setup by nuxt

Steps to Reproduce

call process.sentry.captureMessage

Expected Result

To work fine

Actual Result



"RangeError: Maximum call stack size exceeded at Transaction.processEvent (/home/user/nuxt/good-version/node_modules/@sentry/integrations/cjs/transaction.js:27:17) at Transaction.processEvent (/home/user/Kitchen/nuxt/good-version/node_modules/@sentry/integrations/cjs/transaction.js:27:17
....

Upon checking on the code, this jumped at me:

public processEvent(event: Event): Event {

  /** @inheritDoc */
  public processEvent(event: Event): Event {
    return this.processEvent(event);
  }

Which is indeed an infinite recursive call. I am quite confused, am I missing something too obvious? This shouldn't be here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nodeIssues related to the Sentry Node SDK

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions