Skip to content

[Bug] Page crash when using Google Translate on https://e2b.dev/docs #860

@yixin629

Description

@yixin629

Describe the bug
When I visit https://e2b.dev/docs and use Google Translate (either via right-click menu or Chrome's auto-translate prompt), the page crashes and becomes blank. This only happens after using the translation feature.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://e2b.dev/docs using Google Chrome
  2. Use Google Translate to translate the page (right-click and select "Translate to Chinese" or use the automatic translation bar)
  3. The page reloads and then becomes blank/unusable
  4. See error in the browser console

Expected behavior
The documentation page should remain usable and display correctly after translation.

Browser console output

42257-9af3e39355ee7f00.js:14 Vector identify called with duplicate external ID
42257-9af3e39355ee7f00.js:14 Visitor ID expired due to 30-day sync timeout, regenerating...
42257-9af3e39355ee7f00.js:14 NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at aZ (bd4cbb64-e18687ae53f3c536.js:1:76190)
    ...

Terminal commands & output
No terminal commands used. This bug occurs when browsing the live documentation page.

Screenshots
If applicable, add screenshots to help explain your problem.
screenshot showing blank page after translation

Desktop (please complete the following information):

  • OS: [e.g. Windows 10]
  • Browser: [e.g. Chrome]
  • Version: [e.g. 116.0.5845.111]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone 14]
  • OS: [e.g. iOS 16.6]
  • Browser: [e.g. Safari]
  • Version: [e.g. 16.6]
    (如与手机无关可写N/A)

Additional context
This issue happens every time the Google Translate feature is used on the docs page. No such issue occurs without using translation.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions