diff --git a/web/pages/tier-list/mode/_mode/map/_map.vue b/web/pages/tier-list/mode/_mode/map/_map.vue index b606d60b..6213667a 100644 --- a/web/pages/tier-list/mode/_mode/map/_map.vue +++ b/web/pages/tier-list/mode/_mode/map/_map.vue @@ -188,11 +188,11 @@ export default defineComponent({ const lightboxOpen = ref(false) - const aiReport = useAsync(async () => await $api.report.byModeMap.query({ + const aiReport = useAsync(() => $api.report.byModeMap.query({ localeIso: i18n.locale.value, mode: mode.value, map: map.value, - }), computed(() => `ai-report-${i18n.locale.value}-${mode.value}-${map.value}`)) + }).catch(() => null), computed(() => `ai-report-${i18n.locale.value}-${mode.value}-${map.value}`)) const { trackInteraction } = useTrackScroll('map') diff --git a/web/renderer/sentry.ts b/web/renderer/sentry.ts index 359501e7..7d83abc3 100644 --- a/web/renderer/sentry.ts +++ b/web/renderer/sentry.ts @@ -44,6 +44,9 @@ export function initSentry(dsn: string, app: App, router?: Router) { 'SYNC.JS', 'ox_esp', 'Tyche blocked', + // ignore errors that are not actionable + 'Already on path:', + 'Unable to preload CSS', ], allowUrls: [/https?:\/\/brawltime\.ninja/], replaysSessionSampleRate: 0.0005, diff --git a/web/server/index.ts b/web/server/index.ts index 190edef5..371ca7d0 100644 --- a/web/server/index.ts +++ b/web/server/index.ts @@ -31,6 +31,15 @@ async function startServer() { levels: ['error', 'assert'], }), ], + ignoreErrors: [ + // ignore errors that are not actionable + 'HeadersTimeoutError', + 'TimeoutError', + "it didn't finish after 30 seconds", // vike timeout + 'You stumbled upon a bug in Vike', + 'No such label', // console.time + 'mraid.js', // triggered by ads + ], beforeSend(event, hint) { const error = hint.originalException as any