Skip to content

issue: Infinite loading screen when MCP tool is enabled. #20207

@ppeterka

Description

@ppeterka

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

0.6.42, 0.6.43

Ollama Version (if applicable)

N/A

Operating System

N/A

Browser (if applicable)

N/A

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Opening the URL, frontend should load.

Actual Behavior

Only sidebar loads, loading animation stays in place, error in browser console:

Steps to Reproduce

Log in to Open WebUI, create an External Tool connection, like this:

Image

Save it, enable it.

---> Frontend still works at this point flawlessly!

Hit Ctrl-F5 in browser, frontend stuck in loading state, with error on console:

Image

Use Settings to disable the External tool:

Image

Hit Ctrl-F5 again - frontend works correctly again.

Logs & Screenshots

Open WebUI JS error when External tool MCP definition active:

Uncaught (in promise) TypeError: Cannot convert undefined or null to object
    at Object.entries (<anonymous>)
    at d1 (index.ts:1253:39)
    at index.ts:388:15
    at Array.map (<anonymous>)
    at Ss (index.ts:349:6)
    at Q (+layout.svelte:119:31)
    at +layout.svelte:159:37
    at te (+layout.svelte:105:10)
    at async Promise.all (:3000/index 3)
    at async +layout.svelte:154:9

Frontend in permanent loading state:

Image

Additional Information

Tested in 0.6.42 and 0.6.43 too.

Frontend does work if the External tools are not enabled when the browser starts the session, and stuff breaks with a Ctrl-F5.

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