Skip to content

Error logs are muted when using wrapRemixHandleError as a handleError function in Remix #11615

Closed
@thomasverleye

Description

@thomasverleye

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

@sentry/remix

SDK Version

7.110.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

Sentry.init({
  dsn: process.env.SENTRY_REMIX_DSN,
  environment: process.env.APP_ENV,
  release: `itsme-b2b-portal-fe@${process.env.APP_VERSION}`,
  tracesSampleRate: Number(process.env.SENTRY_SAMPLE_RATE),
  initialScope: {
    tags: {
      'app.version': process.env.APP_VERSION,
      'portal.version': process.env.B2B_PORTAL_VERSION,
    },
  },
});

Steps to Reproduce

  1. Add export const handleError = Sentry.wrapRemixHandleError to your entry.server.tsx
  2. Throw a random server error (for instance throw new Error('foo'); in a loader function)
  3. Check the terminal console and find no message foo in console.

Expected Result

I expect the node console to log foo

Actual Result

no foo message

Metadata

Metadata

Assignees

Labels

Package: remixIssues related to the Sentry Remix SDK

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions