Page MenuHomePhabricator

NotFoundError: Node.removeChild: The node to be removed is not a child of this node
Closed, ResolvedPublicBUG REPORT

Description

This error has been happening at a concerning rate, mostly on commonswiki since 10th May.
12,980 errors in wmf8, only 171 in the deploy before.
https://logstash.wikimedia.org/goto/6add4368db2f472c55cbb79e6ff60141

Stack trace suggests an issue on page load or inside a callback of a JSONP request:
at HTMLScriptElement.onComplete https://commons.wikimedia.org/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:9:242

The error is occurring for anonymous users

The error seems limited to file pages.

Screenshot 2023-05-16 at 8.08.05 AM.png (802×2 px, 180 KB)

I am unable to replicate it on page load but I do see an error Error: View mediainfoview does not exist in the JS console which suggest some kind of race condition.
What features are enabled on these pages that might have bugs in them?

Event Timeline

I've added StructuredData as the most likely team to know about this page and where the bug could be happening.

The bug also occurs as "NotFoundError: Node.removeChild: The node to be removed is not a child of this node" and some of the error stack traces contain calls to DDGRuntimeChecks.dispatch which I can't find in any code search.

The bug also occurs as "NotFoundError: Node.removeChild: The node to be removed is not a child of this node" and some of the error stack traces contain calls to DDGRuntimeChecks.dispatch which I can't find in any code search.

Searched DDGRuntimeChecks on github: duckduckgo/content-scope-scripts/src/features/runtime-checks.js#L68

Maybe related: https://github.com/duckduckgo/content-scope-scripts/pull/485/files

TheDJ assigned this task to Jdlrobson.
TheDJ subscribed.

While other variants of this error message still occur (53 times in 4 weeks), they are not the one that was triggered by duckduckgo, so I think this should be closed.