[GH-ISSUE #5078] Mermaid syntax error when clicking on review response buttons #29379

Closed
opened 2026-04-25 03:48:08 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @DadiAnas on GitHub (Sep 1, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5078

Bug Report

Installation Method

Docker image ghcr.io/open-webui/open-webui:cuda

Environment

  • Open WebUI Version: v0.3.16

  • Ollama (if applicable): 0.3.8

  • Operating System: all

  • Browser (if applicable): Firefox/Chrome

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • [] I have included the Docker container logs (no errors).
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

Give my review regarding the response

Actual Behavior:

Many mermaid syntax error appeared in the bottom of the page.

Description

Bug Summary:
Mermaid syntax error appeared in the bottom of the page after clicking on like or unlike review button while I asked before for mermaid diagram in my conversation (the geAI replied with syntax error diagram)

Reproduction Details

Steps to Reproduce:
Ask for mermaid diagram with syntax error -> try to give a review on the genAI reply

Logs and Screenshots

image

Browser Console Logs:

This is related to diagram syntax error in the console, that resolved after asking to remove it, but it is not the main issue:
Uncaught (in promise)
Object { str: Parse error on line 54:\n...FA07AclassDiagram C9E4CA, "Compute Ser\n---------------------^\nExpecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', got 'NODE_STRING', message: Parse error on line 54:\n...FA07AclassDiagram C9E4CA, "Compute Ser\n---------------------^\nExpecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', got 'NODE_STRING', hash: "Error", error: Error }
2

Originally created by @DadiAnas on GitHub (Sep 1, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/5078 # Bug Report ## Installation Method Docker image ghcr.io/open-webui/open-webui:cuda ## Environment - **Open WebUI Version:** v0.3.16 - **Ollama (if applicable):** 0.3.8 - **Operating System:** all - **Browser (if applicable):** Firefox/Chrome **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [x] I have included the browser console logs. - [] I have included the Docker container logs (no errors). - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: Give my review regarding the response ## Actual Behavior: Many mermaid syntax error appeared in the bottom of the page. ## Description **Bug Summary:** Mermaid syntax error appeared in the bottom of the page after clicking on like or unlike review button while I asked before for mermaid diagram in my conversation (the geAI replied with syntax error diagram) ## Reproduction Details **Steps to Reproduce:** Ask for mermaid diagram with syntax error -> try to give a review on the genAI reply ## Logs and Screenshots ![image](https://github.com/user-attachments/assets/a06e8153-c420-4115-922a-7bc16e771f8a) **Browser Console Logs:** This is related to diagram syntax error in the console, that resolved after asking to remove it, but it is not the main issue: Uncaught (in promise) Object { str: `Parse error on line 54:\n...FA07AclassDiagram C9E4CA, "Compute Ser\n---------------------^\nExpecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', got 'NODE_STRING'`, message: `Parse error on line 54:\n...FA07AclassDiagram C9E4CA, "Compute Ser\n---------------------^\nExpecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', got 'NODE_STRING'`, hash: "Error", error: Error } 2
Author
Owner

@svzi commented on GitHub (Sep 2, 2024):

Hi there!

Today I've played around with Mermaid as well, and I encountered the same, or at least a very similar issue::

Bildschirmfoto 2024-09-02 um 14 41 20

The Browser Console Log:
Bildschirmfoto 2024-09-02 um 14 46 54

I'm using Open WebUI Version: v0.3.16 (using this image: ghcr.io/open-webui/open-webui:main)

I use ChatGPT (gpt-4o-mini ) LLM.

Any help would be really much appreciated.

<!-- gh-comment-id:2324681528 --> @svzi commented on GitHub (Sep 2, 2024): Hi there! Today I've played around with Mermaid as well, and I encountered the same, or at least a very similar issue:: <img width="965" alt="Bildschirmfoto 2024-09-02 um 14 41 20" src="https://github.com/user-attachments/assets/b0132c23-f902-403b-93bb-ff246a501ef2"> The Browser Console Log: <img width="771" alt="Bildschirmfoto 2024-09-02 um 14 46 54" src="https://github.com/user-attachments/assets/db174298-a8eb-4a5b-82a1-45748711859a"> I'm using Open WebUI Version: v0.3.16 (using this image: ghcr.io/open-webui/open-webui:main) I use ChatGPT (gpt-4o-mini ) LLM. Any help would be really much appreciated.
Author
Owner

@tjbck commented on GitHub (Sep 3, 2024):

Fixed on dev!

<!-- gh-comment-id:2326556137 --> @tjbck commented on GitHub (Sep 3, 2024): Fixed on dev!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#29379