Skip to content

Remix - No URL included with issues #6139

@alexblack

Description

@alexblack

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/remix

SDK Version

7.17.4

Framework Version

7.17.4

Link to Sentry event

https://sentry.io/organizations/syncwith/issues/3721867878/?project=5880196&referrer=issue-stream

Steps to Reproduce

  1. We've integrated Sentry into our remix application, on the server and the client, and with express, as indicated in your instructions (hopefully we didn't make any mistakes)

  2. When errors are reported in Sentry, I expected to be able to see the URL that the user was on when the error occured, and the user agent, and other information about the request, like we can with our node Sentry integrations.

See attached screenshot of a remix sentry error with no URL mentioned, and one from our node integration where we get the URL.

I believe we've integrated the express request handler as specified:

const { createRequestHandler } = require('@remix-run/express');
const { wrapExpressCreateRequestHandler } = require('@sentry/remix');

const createSentryRequestHandler =
  wrapExpressCreateRequestHandler(createRequestHandler);
 
  
app.all(
  '*',
  isProduction
    ? createSentryRequestHandler({ build: require('./build') })
    : (req, res, next) => {
        purgeRequireCache();
        const build = require('./build');
        return createSentryRequestHandler({ build, mode: MODE })(
          req,
          res,
          next
        );
      }
);

Expected Result

I expected that sentry would grab the URL and other relevant info from the current request and include it in the error. Note this error occured on the server (node) not client (react).

Screen Shot 2022-11-05 at 4 27 38 PM

Actual Result

Screen Shot 2022-11-05 at 4 27 08 PM

Metadata

Metadata

Assignees

Labels

Package: remixIssues related to the Sentry Remix SDK

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions