content-scope-scripts icon indicating copy to clipboard operation
content-scope-scripts copied to clipboard

Impacting Wikimedia sites: NotFoundError: Node.removeChild: The node to be removed is not a child of this node

Open jdlrobson opened this issue 2 years ago • 4 comments

Hi there! I work at the Wikimedia Foundation and we've been seeing about 20k errors a week due to a mysterious bug that we believe might relate to your code. The issue is tricky for us to filter out as the file URI associated with the errors does not correspond with any browser extension URL so I was wondering if you could help us by finding a way to either fix the problem or allow us to filter it more successfully.

The bug appears as NotFoundError: Node.removeChild: The node to be removed is not a child of this node or NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. and the stack trace if often empty or if we're lucky:

at remove
at jQuery.fn.init.remove
at DDGRuntimeChecks.callback 
at DDGRuntimeChecks.dispatch at elemData.handle 

The issue mostly impacts commons.wikimedia.org file pages e.g. https://commons.wikimedia.org/wiki/File:Rectangle_%28plain%29.svg or https://commons.wikimedia.org/wiki/File:Mistelbach_Brunnen-20230514-RM-161753.jpg

Any idea what could be happening here?

jdlrobson avatar May 25 '23 20:05 jdlrobson

Hey @jdlrobson, thanks for the report! Sorry about the noise. We've debugged the issue and we're working on a proper fix. In the meantime I'm going to go ahead and turn the feature causing the errors off for wikimedia.org (see referenced PR above), so you should stop seeing these errors shortly.

dharb avatar May 26 '23 18:05 dharb

That seems to have done the trick! Thanks for the speedy response!

On Fri, May 26, 2023, 9:49 PM David Harbage @.***> wrote:

Hey @jdlrobson https://github.com/jdlrobson, thanks for the report! Sorry about the noise. We've debugged the issue and we're working on a proper fix. In the meantime I'm going to go ahead and turn the feature causing the errors off for wikimedia.org (see referenced PR above), so you should stop seeing these errors shortly.

— Reply to this email directly, view it on GitHub https://github.com/duckduckgo/content-scope-scripts/issues/540#issuecomment-1564793360, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEKEFIYFQIXZO4Z75LY5DXID3NJANCNFSM6AAAAAAYPLRKXA . You are receiving this because you were mentioned.Message ID: @.***>

jdlrobson avatar May 27 '23 04:05 jdlrobson

/

sa-ko4969 avatar Oct 25 '23 07:10 sa-ko4969

https://github.com/duckduckgo/content-scope-scripts/issues/540#issue-1726469086

sa-ko4969 avatar Oct 25 '23 07:10 sa-ko4969