Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.76k stars 878 forks source link

bug when using the Edge browser translation plug-in at streaming output #1112

Open spttt opened 2 months ago

spttt commented 2 months ago

Describe the bug When using Edge and enabling the browser translation plug-in, an error will be reported in the foreground during streaming output: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

To Reproduce Steps to reproduce the behavior:

  1. Use edge browser.
  2. Use stream output.
  3. The browser automatically detects that the current page language does not match the browser, pops up a translation, click Translate.
  4. Enter the content and click Send.
  5. The reply content flashes quickly, and then reports an error Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node

Screenshots

PixPin_2024-07-03_00-35-41

Desktop (please complete the following information):

Additional context The webpage works fine without translation enabled.

Another perspective I am using it in a Chinese environment, I have configured the translation file, and the interface translation works well. But when the webpage is opened with Edge, the translation plug-in will mistakenly detect that the webpage is in English, not Chinese.

If it is detected as Chinese normally, the above problems will be solved.

HoMi264 commented 1 month ago

I have the same error with Edge and Chrome Browser but not with Safari.

WBS-MichaelMeyer commented 1 month ago

Hi, I have the same issue in German across multiple browsers. This is causing numerous unnecessary user complaints in production.