Skip to content

Remix backend errors captured but code is not shown (missing context-line) #11635

Closed as not planned

Description

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/remix

SDK Version

7.110.1

Framework Version

Remix 7.110.1

Link to Sentry event

https://alhona.sentry.io/share/issue/e0a215fdaaf44b5bbf7bff7641264eb9/

SDK Setup

In entry.server.tsx

Sentry.init({
    environment: process.env.NODE_ENV,
    release: process.env.LAST_COMMIT_ID,
    dsn: process.env.SENTRY_DSN,
    tracesSampleRate: 1.0,
    debug: true,
  });

Steps to Reproduce

  1. Follow Manual Setup instructions to integrate Remix both in frontend and backend
  2. Generate a backend error in an action function
export async function action() {
  throw new Error("Remix BFF error");
}

Expected Result

We would like to see an Issue with the code snippet that generated the error

Actual Result

The error is captured, and the file and line that generated the error is shown but not the code snippet
image

context-line is missing for the last frame
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

Projects

  • Status

    Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions