https://discord.gg/botpress logo
Botpress Webchat v5 crashes with insertBefore erro...
# šŸ¤help
g
Hello Botpress Community! I'm using Botpress Vibe on the Free plan to build a virtual assistant for a massage therapy professional. Problem: The assistant works correctly in the internal Botpress preview. However, the public shareable Webchat v5.0 intermittently displays this error: "Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node." The first response usually appears correctly. When I send another message, the Webchat sometimes crashes. After reopening the public chat link, the previous responses are displayed correctly, so the agent appears to be processing and saving them. What I've tested: - Google Chrome and Microsoft Edge. - Incognito/private browsing mode. - Different questions and menu options. - Internal preview, which works normally. - Republishing the agent after configuration changes. Environment: - Botpress Vibe/Build - Free plan - Public Webchat v5.0 shareable link - Windows desktop Expected behavior: The public chat should display each response without crashing or requiring a page refresh. Could someone help me identify the cause and recommend a fix? Thank you very much!
n
This looks like a Webchat v5 rendering issue rather than a problem with your bot's logic, especially since the internal preview works and responses are saved correctly. I’d investigate a frontend rendering conflict and check the browser console for errors. I can help troubleshoot the public Webchat, isolate the cause, and identify a reliable fix. @green-wall-8773
g
Hello! I captured the browser console errors while the public Webchat was crashing. The main error is: NotFoundError: Failed to execute 'insertBefore' on 'Node' The console also shows: -
__VITE_PRELOAD__ is not defined
-
Unchecked runtime.lastError
The internal Botpress preview still works correctly, but the public Webchat intermittently fails while displaying messages. I've attached a screenshot showing the console errors and the Webchat failure. Could these errors indicate a frontend rendering issue in Webchat v5.0? Thank you for your help!
n
DM me @green-wall-8773
g
Hello! Thank you for your willingness to help. For security reasons, I would prefer to continue troubleshooting here in the public thread, if possible. Could you please let me know what information or tests you need to investigate the Webchat error? Thank you!
Hello! I'm following up on this Webchat v5 issue. The
insertBefore
error is still unresolved, and the public chat remains unreliable, although the internal preview works correctly. Could someone from the Botpress team or community recommend a safe troubleshooting step or confirm whether this is a known Webchat v5 issue? Thank you very much!