Lots of errors in Logs

I was curious and I enabled “Alert admins if errors per hour” = 25 errors per hour.
Now I know :frowning:

I’ve got tons of errors in logs

Most popular

502 x TypeError: Failed to construct ‘Notification’: Illegal constructor. Use ServiceWorkerRegistration.showNotification() instead.
76 x TypeError: Cannot read property ‘tagName’ of null
36 x TypeError: null is not an object (evaluating ‘r.tgt=t.outerHTML’)

And there are a lot of other errors (less frequent)
— Uncaught [object Object]
— TypeError: ‘undefined’ is not a function (evaluating ‘Ember.typeOf(String.prototype.w)’)
— Uncaught TypeError: Array.from is not a function
— Uncaught Error: Could not find module discourse-common/lib/raw-handlebars

How badly it is? How to fix it?

I do have
— DigitalOcean with 8GB
— [v2.3.0.beta9 +163]
(https://github.com/discourse/discourse/compare/99a2a769d4b030c6bcc759503b9fed774b4404f6...tests-passed)
— 10Gb free space
— Rebuild several times as well

Are you using third party plugins? If so, disable them and rebuild.

Updating to latest would fix some of them for sure.

If you can give me your forum URL I can have a look, some might be recent regressions, I could fix them quickly.

6 Likes

I’m having a similar problem. Is there any way to tell what plugins might be causing the problem? I have quite a few and it would be a painful process disabling them one by one, not to mention all the down time.

This is the most prevalent error:

TypeError: Object doesn't support property or method 'from'
   at t (https://community.naturephotographers.network/assets/markdown-it-bundle-f073c70a0d2ca47967a59723ea3876e9c19c6a2a9b34b69e3f17d44d3d9d5ac4.js:4:28560)
   at value (https://community.naturephotographers.network/assets/markdown-it-bundle-f073c70a0d2ca47967a59723ea3876e9c19c6a2a9b34b69e3f17d44d3d9d5ac4.js:4:30270)
   at u (https://community.naturephotographers.network/assets/markdown-it-bundle-f073c70a0d2ca47967a59723ea3876e9c19c6a2a9b34b69e3f17d44d3d9d5ac4.js:4:28825)
   at r (https://community.naturephotographers.network/assets/markdown-it-bundle-f073c70a0d2ca47967a59723ea3876e9c19c6a2a9b34b69e3f17d44d3d9d5ac4.js:4:29297)
   at t (https://community.naturephotographers.network/assets/markdown-it-bundle-f073c70a0d2ca47967a59723ea3876e9c19c6a2a9b34b69e3f17d44d3d9d5ac4.js:4:3)
   at Anonymous function (https://community.naturephotographers.network/assets/markdown-it-bundle-f073c70a0d2ca47967a59723ea3876e9c19c6a2a9b34b69e3f17d44d3d9d5ac4.js:4:29364)
   at n.prototype.process (https://community.naturephotographers.network/assets/markdown-it-bundle-f073c70a0d2ca47967a59723ea3876e9c19c6a2a9b34b69e3f17d44d3d9d5ac4.js:1:11415)
   at o.prototype.parse (https://community.naturephotographers.network/assets/markdown-it-bundle-f073c70a0d2ca47967a59723ea3876e9c19c6a2a9b34b69e3f17d44d3d9d5ac4.js:1:8585)
   at o.prototype.render (https://community.naturephotographers.network/assets/markdown-it-bundle-f073c70a0d2ca47967a59723ea3876e9c19c6a2a9b34b69e3f17d44d3d9d5ac4.js:1:8656)
   at p (https://community.naturephotographers.network/assets/pretty-text-bundle-69f10bf50c157b00d4ee9fce58900e53fa90f1176953113c2117ff6a9c40a6c5.js:3:27812)

and this:

TypeError: Unable to get property 'tagName' of undefined or null reference
   at scrolled (https://community.naturephotographers.network/assets/application-a9e71f1edd1c0c204e24171f735f84503eb20246e13b2899ef434c24d37d07c2.js:33:26513)
   at t.invoke (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:6925)
   at t.flush (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:5868)
   at t.flush (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:7971)
   at r._end (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:12650)
   at r.end (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:9312)
   at r._runExpiredTimers (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:13982)

and this:

s@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:9:7120
a@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:9:6977
o@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:9:6868
trigger@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:18:3641
pe</t._onError/<@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:18:5634
g</t.invoke@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:6925
g</t.flush@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:5930
y</t.flush@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:7978
z</r._end@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:12652
z</r.end@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:9312
z</r._run@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:13138
z</r.run@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:9920
l@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:12:441
e/i.error@https://community.naturephotographers.network/assets/application-a9e71f1edd1c0c204e24171f735f84503eb20246e13b2899ef434c24d37d07c2.js:7:30755
c@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:2:8216
fireWith@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:2:8970
r@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:3:12860
n/<@https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:3:17841

this:

TypeError: Failed to construct 'Notification': Illegal constructor. Use ServiceWorkerRegistration.showNotification() instead.
    at https://community.naturephotographers.network/assets/application-a9e71f1edd1c0c204e24171f735f84503eb20246e13b2899ef434c24d37d07c2.js:12:26448
    at f (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:17:29538)
    at T (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:17:30915)
    at https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:17:31429
    at t.invoke (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:6937)
    at e.t.flush (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:5930)
    at e.t.flush (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:7980)
    at e.r._end (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:12654)
    at MutationObserver._boundAutorunEnd (https://community.naturephotographers.network/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:8905)

and some others with no backtrace…

I have only one plugin enabled. discourse-vk-auth

Some JS bugs are legitimate ones, but 90% of what you see there is caused by broken browsers, broken extensions, etc.

Unless you can provide proper reproduction steps, pasting random JS errors here won’t give us much.

4 Likes

This one should be fixed by FIX: ensures we have an elementFromPoint before using it (#7583) · discourse/discourse@0ed1cfd · GitHub

7 Likes