mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #24271] issue: Image generation with ComfyUI failing in 0.9.2 #58918
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 @jpbreda on GitHub (Apr 30, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24271
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.9.2
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
Safari 26.4
Confirmation
README.md.Expected Behavior
Prior to 0.9.2 Open WebUI would generate an image when prompted "create an image of an apple." This no longer works.
Expected
Actual Behavior
AttributeError: 'coroutine' object has no attribute 'id'400: [ERROR: 400: [ERROR: Error uploading file]]Steps to Reproduce
Logs & Screenshots
ComfyUI generates the image successfully (confirmed in ComfyUI logs and output directory), but OpenWebUI shows error "400: [ERROR: 400: [ERROR: Error uploading file]]" and the image never appears in chat. OpenWebUI logs:
2026-04-30 21:26:03.350 | ERROR | open_webui.routers.files:upload_file_handler:319 - 'coroutine' object has no attribute 'id' Traceback (most recent call last): File "/app/backend/open_webui/routers/files.py", line 259, in upload_file_handler user.id, └ <coroutine object UsersTable.get_user_by_id at 0xe7cf946e7940> AttributeError: 'coroutine' object has no attribute 'id'Additional Information
Appears to fix:
At the beginning of the upload_file_handler function, add:
user_obj = await user
Then replace all user.* references with user_obj.* within that function.
@wvffle commented on GitHub (May 3, 2026):
For me the error appeared in 0.9.1 and still persists in 0.9.2