Skip to content

Commit

Permalink
Merge pull request #1477 from argos-ci/fix-ARGOS-BROWSER-AM
Browse files Browse the repository at this point in the history
chore: ignore "invalid_grant" error in Sentry
  • Loading branch information
gregberge authored Dec 21, 2024
2 parents 1516b81 + 60ff7dd commit c71ba6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/frontend/src/pages/AuthCallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ export function Component() {

return (
<Sentry.ErrorBoundary
beforeCapture={(scope, error) => {
// Invalid grant errors are not errors that should be reported.
// See https://stackoverflow.com/a/38433986
if (error instanceof APIError && error.message === "invalid_grant") {
scope.setLevel("info");
}
}}
fallback={({ error }) => (
<ErrorFallback error={error} provider={provider} />
)}
Expand Down

0 comments on commit c71ba6e

Please sign in to comment.