mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #9276] Unhandled Promise Rejection: Error: Token with "inlineKatex" type was not found. #54108
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @samuelhe52 on GitHub (Feb 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9276
Installation Method
Installed via pip, server running on Ubuntu 24.04.1
Environment
Open WebUI Version: v.0.5.7
Ollama (if applicable): Not using Ollama
Operating System: macOS 15.3
Browser (if applicable): Safari 18.3 & Chrome 132.0
Confirmation:
Actual Behavior:
After switching to a previous chat, then switching to New Chat, and then clicking on the model selection button, the web page becomes unresponsive.
Description
Bug Summary:
The page becomes unresponsive after switching to a previous chat, then switching to New Chat, and then clicking on the model selection button, and the console prints out an error message: "Unhandled Promise Rejection: Error: Token with "inlineKatex" type was not found."
Reproduction Details
Steps to Reproduce:
Switch to a previous chat, then switch to new chat, and then click on the model selection button would trigger the issue. Reproducible on Safari & Chrome on my mac and also Firefox on Ubuntu. Reloading the page resolves the problem.
Logs and Screenshots
Browser Console Logs:
Server Side Logs:
@conner-replogle commented on GitHub (Feb 4, 2025):
I am also experiencing this issue
@tjbck commented on GitHub (Feb 4, 2025):
We'll need a more reliable way to reproduce this issue consistently!
@samuelhe52 commented on GitHub (Feb 4, 2025):
A fresh installation using Docker doesn't have this issue, but after I replaced the webui.db file with the one from my pip installation and restarted the service, the issue shows up again. For me, this bug can be triggered 100% on every launch.
@conner-replogle commented on GitHub (Feb 4, 2025):
The issue I encountered was caused by the markdown formatting of the model descriptions in the model dropdown. I had been using the symbols “
”, “”, and “$$” to denote prices in my descriptions of each model. Removing these symbols from my descriptions resolved this problem.@samuelhe52 commented on GitHub (Feb 4, 2025):
I just found this out as well. Here is the exported model file, importing it in the model page should trigger the problem. In my case, I'm using "$$" to denote markdown-styled latex block.
models-export-1738638855312.json
@silentoplayz commented on GitHub (Feb 13, 2025):
@samuelhe52 Is the models-export.json file you provided a custom model from a base model that is to be imported in the
Modelssection of theWorkspace? I did get the same error that this issue suggests upon importing it there:Then after refreshing the page, I saw the model on that page, so I started a new chat, clicked the model selector, and also witnessed a different, but similar browser console error again. This triggered the page to become unresponsive.
Once the model is deleted, the issue resolves itself. This has been tested on Mozilla Firefox v135.0 (64-bit).
@samuelhe52 commented on GitHub (Feb 14, 2025):
Yes, that's exactly what I mean, importing the model file in the
Modelssection would trigger the issue.@tjbck commented on GitHub (Feb 20, 2025):
Potentially addressed with the latest dev, testing wanted after 0.5.15 release!
@silentoplayz commented on GitHub (Feb 21, 2025):
This appears addressed on my end!