opensupplyhub / open-apparel-registry

An application for searching, matching, uploading factories.
MIT License
32 stars 13 forks source link

Unhandled exception raised while initializing the Google translate menu #427

Open jwalgran opened 5 years ago

jwalgran commented 5 years ago

Overview

An unhandled exception is raised while initializing the Google translate menu on what appears to be a small number of requests

Expected Behavior

No unhandled exceptions are raised while initializing the Google translate menu

Actual Behavior

An unhandled exception is raised while initializing the Google translate menu on what appears to be a small number of requests

Steps to Reproduce

We only have Rollbar telemetry

Additional context

Possibly related to #414

View details in Rollbar: https://rollbar.com/OpenApparelRegistry/OpenApparelRegistry/items/36/


TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'.
  File "https://openapparel.org/", line 1, in googleTranslateElementInit
  File "https://translate.googleapis.com/element/TE_20181015_01/e/js/element/element_main.js", line 476, in e
TaiWilkin commented 2 years ago

Opening each of the page URLs for the most recent Rollbar exceptions (which are all embedded maps) shows this error in the console: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'. at googleTranslateElementInit. This might be because we don't render the header, which is where the Google Translate element is stored, in embed mode, but still are attempting to set an observer on the translate element.