[GH-ISSUE #4552] Cannot save ComfyUI integration, model list doesn't get populated #13651

Closed
opened 2026-04-19 20:19:02 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @hartmark on GitHub (Aug 13, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4552

Bug Report

Installation Method

  • latest docker images of ollama/ollama:rocm and ghcr.io/open-webui/open-webui:main
  • I have ComfyUI installed so it listens on localhost
  • I have in open-webui added a host entry host.docker.internal -> host-gateway so I can access ComfyUI
  • I have checked the box "Enable Dev mode Options" in ComfyUI

Environment

open-webui: v0.3.12

  • Operating System: arch linux
  • Browser (if applicable): firefox

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.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

I don't seem to be able to connect to ComfyUI

Actual Behavior:

I get no models populated so I cannot save my settings.

Description

Bug Summary:
Cannot save ComfyUI integration

Reproduction Details

Steps to Reproduce:

  1. I go to http://localhost:3122/admin/settings
  2. click images
  3. I select ComfyUI under Image Generation Engine
  4. I enter http://docker.host.internal under ComfyUI Base URL
  5. I click off to enable the connection
  6. I get this error message:
    image

Logs and Screenshots

Browser Console Logs:

Message received from iframe: 
Object { source: "react-devtools-content-script", hello: true }
[Chat.svelte:199:12](http://localhost:3122/src/lib/components/chat/Chat.svelte)
Message received from iframe: 
Object { source: "react-devtools-content-script", hello: true }
[Chat.svelte:199:12](http://localhost:3122/src/lib/components/chat/Chat.svelte)
XHRGET
http://localhost:3122/images/api/v1/models
[HTTP/1.1 400 Bad Request 4ms]

Object { detail: "Something went wrong :/\nInvalid URL '/object_info': No scheme supplied. Perhaps you meant [https:///object_info](https://object_info/)?" }
[index.ts:358:11](http://localhost:3122/src/lib/apis/images/index.ts)
Message received from iframe: 
Object { source: "react-devtools-content-script", hello: true }
[Chat.svelte:199:12](http://localhost:3122/src/lib/components/chat/Chat.svelte)
Message received from iframe: 
Object { source:

Docker Container Logs:
nothing is printed here

Screenshots/Screen Recordings (if applicable):
image

Originally created by @hartmark on GitHub (Aug 13, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/4552 # Bug Report ## Installation Method * latest docker images of ollama/ollama:rocm and ghcr.io/open-webui/open-webui:main * I have ComfyUI installed so it listens on localhost * I have in open-webui added a host entry host.docker.internal -> host-gateway so I can access ComfyUI * I have checked the box "Enable Dev mode Options" in ComfyUI ## Environment open-webui: v0.3.12 - **Operating System:** arch linux - **Browser (if applicable):** firefox **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. - [x] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: I don't seem to be able to connect to ComfyUI ## Actual Behavior: I get no models populated so I cannot save my settings. ## Description **Bug Summary:** Cannot save ComfyUI integration ## Reproduction Details **Steps to Reproduce:** 1. I go to http://localhost:3122/admin/settings 2. click **images** 3. I select `ComfyUI` under **Image Generation Engine** 4. I enter `http://docker.host.internal` under **ComfyUI Base URL** 5. I click **off** to enable the connection 6. I get this error message: ![image](https://github.com/user-attachments/assets/8f01e677-95db-4dbf-b6ba-73a9602fb67a) ## Logs and Screenshots **Browser Console Logs:** ``` Message received from iframe: Object { source: "react-devtools-content-script", hello: true } [Chat.svelte:199:12](http://localhost:3122/src/lib/components/chat/Chat.svelte) Message received from iframe: Object { source: "react-devtools-content-script", hello: true } [Chat.svelte:199:12](http://localhost:3122/src/lib/components/chat/Chat.svelte) XHRGET http://localhost:3122/images/api/v1/models [HTTP/1.1 400 Bad Request 4ms] Object { detail: "Something went wrong :/\nInvalid URL '/object_info': No scheme supplied. Perhaps you meant [https:///object_info](https://object_info/)?" } [index.ts:358:11](http://localhost:3122/src/lib/apis/images/index.ts) Message received from iframe: Object { source: "react-devtools-content-script", hello: true } [Chat.svelte:199:12](http://localhost:3122/src/lib/components/chat/Chat.svelte) Message received from iframe: Object { source: ``` **Docker Container Logs:** nothing is printed here **Screenshots/Screen Recordings (if applicable):** ![image](https://github.com/user-attachments/assets/1f5f12a9-3b37-4c08-86f0-2f5b09cf28c4)
Author
Owner

@silentoplayz commented on GitHub (Aug 13, 2024):

  1. In Open WebUI, navigate to the Image Generation Settings page.
  2. Set the Image Generation Engine option to ComfyUI.
  3. Enable the Image Generation (Experimental) toggle by setting it to On.
  4. Ensure that ComfyUI is running, as it is required to verify the connection.
  5. Verify the connection by checking the ComfyUI Base URL.
  6. Once the connection is verified, select a default model from the Select a model dropdown for the Set Default Model option. This option points to the /models/checkpoints directory of your running ComfyUI installation.
  7. Save your changes on the Image Generation Settings page to apply the new configuration.
<!-- gh-comment-id:2285173335 --> @silentoplayz commented on GitHub (Aug 13, 2024): 1. In Open WebUI, navigate to the Image Generation Settings page. 2. Set the `Image Generation Engine` option to `ComfyUI`. 3. Enable the `Image Generation (Experimental)` toggle by setting it to `On`. 4. Ensure that ComfyUI is running, as it is required to verify the connection. 5. Verify the connection by checking the `ComfyUI Base URL`. 6. Once the connection is verified, select a default model from the `Select a model` dropdown for the `Set Default Model` option. This option points to the `/models/checkpoints` directory of your running ComfyUI installation. 7. Save your changes on the Image Generation Settings page to apply the new configuration.
Author
Owner

@hartmark commented on GitHub (Aug 13, 2024):

It's step 6 I cannot do. I get the error above and cannot continue. What is the full API call it uses to access the list of models in comfyUI?

<!-- gh-comment-id:2285240819 --> @hartmark commented on GitHub (Aug 13, 2024): It's step 6 I cannot do. I get the error above and cannot continue. What is the full API call it uses to access the list of models in comfyUI?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#13651