Просмотр исходного кода

Merge pull request #3036 from overleaf/as-silence-sentry-errors

Silence some more expected/spurious frontend errors in Sentry

GitOrigin-RevId: e2ad049e83e53806b9233b51ae88288d16b36053
Alasdair Smith 6 лет назад
Родитель
Сommit
4e18a81944
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      services/web/frontend/js/utils/sentry.js

+ 8 - 1
services/web/frontend/js/utils/sentry.js

@@ -17,7 +17,14 @@ if (window.ExposedSettings.sentryDsn) {
 
       ignoreErrors: [
         // Ignore very noisy error
-        'SecurityError: Permission denied to access property "pathname" on cross-origin object'
+        'SecurityError: Permission denied to access property "pathname" on cross-origin object',
+        // Ignore unhandled error that is "expected" - see https://github.com/overleaf/issues/issues/3321
+        /^Missing PDF/,
+        // Ignore "expected" error from aborted fetch - see https://github.com/overleaf/issues/issues/3321
+        /^AbortError/,
+        // Ignore spurious error from Ace internals - see https://github.com/overleaf/issues/issues/3321
+        'ResizeObserver loop limit exceeded',
+        'ResizeObserver loop completed with undelivered notifications.'
       ],
 
       beforeSend(event) {