Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Wrong exception name (Object.captureException) when a 500 with Remix json response #5958

Locked Unanswered
jorisre asked this question in Q&A
Discussion options

When I throw a 500 json response with Remix, the exception name is incorrect.

throw json(
 { data: {} },
 {
 status: 500,
 statusText: "My error"
 }
);

Result in:

image

How I can set myself the exception name for Sentry ?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

This is something we can improve.

Transferring to an issue so we can backlog, but PRs are welcome!

captureException(isResponse(err) ? extractData(err) : err, scope => {
scope.addEventProcessor(event => {
addExceptionMechanism(event, {
type: 'instrument',
handled: true,
data: {
function: name,
},
});
return event;
});
return scope;
});
You must be logged in to vote
1 reply
Comment options

Issue is here: #5963

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /