Open web-ui Image generation causes crash in ComfyUI #3691

Closed
opened 2025-11-11 15:37:01 -06:00 by GiteaMirror · 1 comment
Owner

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.

Image

Here is a image of comfyui working:

Image

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. ![Image](https://github.com/user-attachments/assets/b2af257a-a258-4683-a93f-bbdc3c35d6d4) Here is a image of comfyui working: ![Image](https://github.com/user-attachments/assets/81e1ab29-753d-4b04-a471-bdb750352ad0)
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#3691