Skip to content

Extra errors in sentry which are due to 404s #9489

@Kobby-Bawuah

Description

@Kobby-Bawuah

Core or SDK?

Core Sentry product

Which part? Which one?

Remix, Manual setup

Description

Regarding this page, I have a user who has expressed that without a check like:
else if (!isRouteErrorResponse(error)) { in the code like:

export function handleError(
error: unknown,
{ request }: DataFunctionArgs
): void {
if (error instanceof Error) {
Sentry.captureRemixServerException(error, 'remix.server', request);
} else if (!isRouteErrorResponse(error)) {
Sentry.captureException(error);
}
}

The user gets extra errors in sentry which are due to 404s

Suggested Solution

Suggest the code snippet to address the extra errors thrown

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions