Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "refactor",
"message": "Filter out unactionable AxiosErrors from sentry",
"issue_origin": "github",
"issue_number": 5008,
"domain": "database",
"bullet_points": [],
"created_at": "2026-03-19"
}
7 changes: 7 additions & 0 deletions web-frontend/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ if (dsn && dsn !== '') {
beforeSend(event, hint) {
const err = hint?.originalException
if (err?.fatal === false || err?.response?.status === 401) return null

// Filter out axios errors without a response like
// network error, timeout, aborted, cancelled requests
if (err?.name === 'AxiosError' && !err?.response) {
return null
}

if (isDev) {
console.error('[Sentry captured error]', `${err}`)
return null
Expand Down
Loading