-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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
-
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)
-
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).