mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-10 12:01:29 -05:00
Open web-ui Image generation causes crash in ComfyUI #3691
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 @chaoscode on GitHub (Feb 7, 2025).
Installation Method
I am running the docker image from github using tag v0.5.10
Environment
Open WebUI Version: v0.5.10 - Container
ComfyUI: ComfyUI v0.3.14 - Container
Ollama: Latest tag - Container
Operating System: Its a mix and depends on if you are asking about the container OS or the host OS
Expected Behavior:
I would have expected a image get generated
Actual Behavior:
I get the an error in the console output from the container for ComfyUI
Description
Bug Summary:
Crash in ComfyUI
2025-02-07 15:24:13 got prompt
2025-02-07 15:24:13 Error handling request
2025-02-07 15:24:13 Traceback (most recent call last):
2025-02-07 15:24:13 File "/opt/conda/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request
2025-02-07 15:24:13 resp = await request_handler(request)
2025-02-07 15:24:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-07 15:24:13 File "/opt/conda/lib/python3.11/site-packages/aiohttp/web_app.py", line 569, in _handle
2025-02-07 15:24:13 return await handler(request)
2025-02-07 15:24:13 ^^^^^^^^^^^^^^^^^^^^^^
2025-02-07 15:24:13 File "/opt/conda/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
2025-02-07 15:24:13 return await handler(request)
2025-02-07 15:24:13 ^^^^^^^^^^^^^^^^^^^^^^
2025-02-07 15:24:13 File "/opt/comfyui/server.py", line 62, in cache_control
2025-02-07 15:24:13 response: web.Response = await handler(request)
2025-02-07 15:24:13 ^^^^^^^^^^^^^^^^^^^^^^
2025-02-07 15:24:13 File "/opt/comfyui/server.py", line 140, in origin_only_middleware
2025-02-07 15:24:13 response = await handler(request)
2025-02-07 15:24:13 ^^^^^^^^^^^^^^^^^^^^^^
2025-02-07 15:24:13 File "/opt/comfyui/server.py", line 74, in cors_middleware
2025-02-07 15:24:13 response = await handler(request)
2025-02-07 15:24:13 ^^^^^^^^^^^^^^^^^^^^^^
2025-02-07 15:24:13 File "/opt/comfyui/server.py", line 617, in post_prompt
2025-02-07 15:24:13 valid = execution.validate_prompt(prompt)
2025-02-07 15:24:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-07 15:24:13 File "/opt/comfyui/execution.py", line 761, in validate_prompt
2025-02-07 15:24:13 if 'class_type' not in prompt[x]:
2025-02-07 15:24:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-07 15:24:13 TypeError: argument of type 'int' is not iterable
Reproduction Details
ComfyUI works fine from its web interface.
Steps to Reproduce:
Click the image icon on the response from a model
Additional Information
Seems to be the way the request is being made to comfyui and the API signature doesnt match.
Here is a screen shot of the open web-ui configuration of comfyui.
Here is a image of comfyui working:
@pkeffect commented on GitHub (Feb 7, 2025):
You first need to make sure you specifically exported your comfyui workflow as workflow api. There are 2 options to export. Second, you need to fill the values in for your nodes to match the nodes listed in your workflow.
https://imgur.com/WjZFCSK