mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[GH-ISSUE #12398] issue: Image Generation not working with Temporary Chat #32113
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 @Davixk on GitHub (Apr 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12398
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.0
Ollama Version (if applicable)
No response
Operating System
docker
Browser (if applicable)
Chrome for Android
Confirmation
README.md.Expected Behavior
Image is generated without errors
Actual Behavior
Image generation takes a few seconds (normal), then the image briefly shows up and then an error is generated and the image disappears from the webpage, and an error message is generated by the LLM.
This only happens with a certain user and other users can use it no problem.
Steps to Reproduce
Logs & Screenshots
https://github.com/user-attachments/assets/16678b16-16f1-4548-b2fc-b7fb65707c6b
2025-04-03 11:16:30.937110+00:002025-04-03 04:16:30.932 | ERROR | open_webui.routers.tasks:generate_image_prompt:384 - Exception occurred - {}
2025-04-03 11:16:30.937124+00:00Traceback (most recent call last):
2025-04-03 11:16:30.937134+00:002025-04-03T11:16:30.937134986Z
2025-04-03 11:16:30.937144+00:00File "/usr/local/bin/uvicorn", line 10, in
2025-04-03 11:16:30.937155+00:00sys.exit(main())
2025-04-03 11:16:30.937165+00:00│ │ └
2025-04-03 11:16:30.937176+00:00│ └
2025-04-03 11:16:30.937186+00:00└ <module 'sys' (built-in)>
2025-04-03 11:16:30.937196+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1161, in call
2025-04-03 11:16:30.937206+00:00return self.main(args, **kwargs)
2025-04-03 11:16:30.937217+00:00│ │ │ └ {}
2025-04-03 11:16:30.937227+00:00│ │ └ ()
2025-04-03 11:16:30.937237+00:00│ └ <function BaseCommand.main at 0x7fcbd9a6dda0>
2025-04-03 11:16:30.937247+00:00└
2025-04-03 11:16:30.937258+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1082, in main
2025-04-03 11:16:30.937269+00:00rv = self.invoke(ctx)
2025-04-03 11:16:30.937278+00:00│ │ └ <click.core.Context object at 0x7fcbda7c4490>
2025-04-03 11:16:30.937289+00:00│ └ <function Command.invoke at 0x7fcbd9a6e980>
2025-04-03 11:16:30.937298+00:00└
2025-04-03 11:16:30.937308+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
2025-04-03 11:16:30.937318+00:00return ctx.invoke(self.callback, **ctx.params)
2025-04-03 11:16:30.937328+00:00│ │ │ │ │ └ {'host': '0.0.0.0', 'port': 31028, 'forwarded_allow_ips': '', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload...
2025-04-03 11:16:30.937340+00:00│ │ │ │ └ <click.core.Context object at 0x7fcbda7c4490>
2025-04-03 11:16:30.937350+00:00│ │ │ └ <function main at 0x7fcbd96d94e0>
2025-04-03 11:16:30.937360+00:00│ │ └
2025-04-03 11:16:30.937370+00:00│ └ <function Context.invoke at 0x7fcbd9a6d300>
2025-04-03 11:16:30.937380+00:00└ <click.core.Context object at 0x7fcbda7c4490>
2025-04-03 11:16:30.937390+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
2025-04-03 11:16:30.937400+00:00return __callback(args, **kwargs)
2025-04-03 11:16:30.937411+00:00│ └ {'host': '0.0.0.0', 'port': 31028, 'forwarded_allow_ips': '', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload...
2025-04-03 11:16:30.937422+00:00└ ()
2025-04-03 11:16:30.937434+00:00File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main
2025-04-03 11:16:30.937444+00:00run(
2025-04-03 11:16:30.937453+00:00└ <function run at 0x7fcbd9aefe20>
2025-04-03 11:16:30.937463+00:00File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
2025-04-03 11:16:30.937473+00:00server.run()
2025-04-03 11:16:30.937483+00:00│ └ <function Server.run at 0x7fcbd994d260>
2025-04-03 11:16:30.937493+00:00└ <uvicorn.server.Server object at 0x7fcbd99a1710>
2025-04-03 11:16:30.937503+00:00File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
2025-04-03 11:16:30.937513+00:00return asyncio.run(self.serve(sockets=sockets))
2025-04-03 11:16:30.937523+00:00│ │ │ │ └ None
2025-04-03 11:16:30.937534+00:00│ │ │ └ <function Server.serve at 0x7fcbd994d300>
2025-04-03 11:16:30.937544+00:00│ │ └ <uvicorn.server.Server object at 0x7fcbd99a1710>
2025-04-03 11:16:30.937554+00:00│ └ <function run at 0x7fcbd9e74b80>
2025-04-03 11:16:30.937564+00:00└ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
2025-04-03 11:16:30.937573+00:00File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
2025-04-03 11:16:30.937583+00:00return runner.run(main)
2025-04-03 11:16:30.937593+00:00│ │ └ <coroutine object Server.serve at 0x7fcbd98926b0>
2025-04-03 11:16:30.937603+00:00│ └ <function Runner.run at 0x7fcbd9cc0720>
2025-04-03 11:16:30.937613+00:00└ <asyncio.runners.Runner object at 0x7fcbd96e35d0>
2025-04-03 11:16:30.937622+00:00File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
2025-04-03 11:16:30.937632+00:00return self._loop.run_until_complete(task)
2025-04-03 11:16:30.937642+00:00│ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.11/site-packages/uvicorn/server.py:70> wai...
2025-04-03 11:16:30.937653+00:00│ │ └ <cyfunction Loop.run_until_complete at 0x7fcbd97192f0>
2025-04-03 11:16:30.937663+00:00│ └ <uvloop.Loop running=True closed=False debug=False>
2025-04-03 11:16:30.937673+00:00└ <asyncio.runners.Runner object at 0x7fcbd96e35d0>
2025-04-03 11:16:30.937683+00:00File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
2025-04-03 11:16:30.937692+00:00await self.app(scope, receive_or_disconnect, send_no_error)
2025-04-03 11:16:30.937702+00:00│ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7fcb9b183ce0>
2025-04-03 11:16:30.937714+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.937724+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.937734+00:00│ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7fcba05e6450>
2025-04-03 11:16:30.937745+00:00└ <open_webui.main.RedirectMiddleware object at 0x7fcba111a090>
2025-04-03 11:16:30.937755+00:00File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
2025-04-03 11:16:30.937765+00:00await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2025-04-03 11:16:30.937775+00:00│ │ │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7fcb9b183ce0>
2025-04-03 11:16:30.937785+00:00│ │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.937796+00:00│ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.937806+00:00│ │ │ └ <starlette.requests.Request object at 0x7fcb9aefdfd0>
2025-04-03 11:16:30.937816+00:00│ │ └ <fastapi.routing.APIRouter object at 0x7fcba1111610>
2025-04-03 11:16:30.937826+00:00│ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7fcba05e6450>
2025-04-03 11:16:30.937837+00:00└ <function wrap_app_handling_exceptions at 0x7fcbd6d6b2e0>
2025-04-03 11:16:30.937847+00:00File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-03 11:16:30.937857+00:00await app(scope, receive, sender)
2025-04-03 11:16:30.937867+00:00│ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:30.937878+00:00│ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.937889+00:00│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.937899+00:00└ <fastapi.routing.APIRouter object at 0x7fcba1111610>
2025-04-03 11:16:30.937909+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in call
2025-04-03 11:16:30.937918+00:00await self.middleware_stack(scope, receive, send)
2025-04-03 11:16:30.937928+00:00│ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:30.937938+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.937948+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.937958+00:00│ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7fcba1111610>>
2025-04-03 11:16:30.937968+00:00└ <fastapi.routing.APIRouter object at 0x7fcba1111610>
2025-04-03 11:16:30.937978+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
2025-04-03 11:16:30.937988+00:00await route.handle(scope, receive, send)
2025-04-03 11:16:30.937997+00:00│ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:30.938008+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.938018+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.938029+00:00│ └ <function Route.handle at 0x7fcbd6ca89a0>
2025-04-03 11:16:30.938038+00:00└ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
2025-04-03 11:16:30.938048+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
2025-04-03 11:16:30.938059+00:00await self.app(scope, receive, send)
2025-04-03 11:16:30.938069+00:00│ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:30.938079+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.938089+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.938100+00:00│ └ <function request_response..app at 0x7fcb9fda3ec0>
2025-04-03 11:16:30.938110+00:00└ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
2025-04-03 11:16:30.938121+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
2025-04-03 11:16:30.938132+00:00await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2025-04-03 11:16:30.938143+00:00│ │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:30.938154+00:00│ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.938164+00:00│ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.938174+00:00│ │ └ <starlette.requests.Request object at 0x7fcb9aeffed0>
2025-04-03 11:16:30.938184+00:00│ └ <function request_response..app..app at 0x7fcb9b181e40>
2025-04-03 11:16:30.938194+00:00└ <function wrap_app_handling_exceptions at 0x7fcbd6d6b2e0>
2025-04-03 11:16:30.938203+00:00File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-03 11:16:30.938213+00:00await app(scope, receive, sender)
2025-04-03 11:16:30.938222+00:00│ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b180b80>
2025-04-03 11:16:30.938232+00:00│ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.938243+00:00│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.938253+00:00└ <function request_response..app..app at 0x7fcb9b181e40>
2025-04-03 11:16:30.938263+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
2025-04-03 11:16:30.938273+00:00response = await f(request)
2025-04-03 11:16:30.938283+00:00│ └ <starlette.requests.Request object at 0x7fcb9aeffed0>
2025-04-03 11:16:30.938293+00:00└ <function get_request_handler..app at 0x7fcb9fda3b00>
2025-04-03 11:16:30.938303+00:00File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
2025-04-03 11:16:30.938313+00:00raw_response = await run_endpoint_function(
2025-04-03 11:16:30.938322+00:00└ <function run_endpoint_function at 0x7fcbd6caa7a0>
2025-04-03 11:16:30.938332+00:00File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
2025-04-03 11:16:30.938342+00:00return await dependant.call(**values)
2025-04-03 11:16:30.938352+00:00│ │ └ {'user': UserModel(id='[REDACTED]', name='[REDACTED]', email='[REDACTED]', role='user', profile_i...
2025-04-03 11:16:30.938362+00:00│ └ <function chat_completion at 0x7fcb9fda0220>
2025-04-03 11:16:30.938372+00:00└ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant...
2025-04-03 11:16:30.938382+00:002025-04-03T11:16:30.938382687Z
2025-04-03 11:16:30.938392+00:00File "/app/backend/open_webui/main.py", line 1087, in chat_completion
2025-04-03 11:16:30.938402+00:00form_data, metadata, events = await process_chat_payload(
2025-04-03 11:16:30.938412+00:00│ │ └ <function process_chat_payload at 0x7fcba11865c0>
2025-04-03 11:16:30.938425+00:00│ └ {'user_id': '[REDACTED]', 'chat_id': 'local', 'message_id': '[REDACTED]',...
2025-04-03 11:16:30.938435+00:00└ {'stream': True, 'model': 'gpt-4o-mini', 'messages': [{'role': 'system', 'content': '\n\nUser Context:\n1. [2025-03-29]. User...
2025-04-03 11:16:30.938445+00:002025-04-03T11:16:30.938445482Z
2025-04-03 11:16:30.938454+00:00File "/app/backend/open_webui/utils/middleware.py", line 775, in process_chat_payload
2025-04-03 11:16:30.938464+00:00form_data = await chat_image_generation_handler(
2025-04-03 11:16:30.938474+00:00└ <function chat_image_generation_handler at 0x7fcba1186340>
2025-04-03 11:16:30.938483+00:002025-04-03T11:16:30.938483824Z
2025-04-03 11:16:30.938493+00:00File "/app/backend/open_webui/utils/middleware.py", line 475, in chat_image_generation_handler
2025-04-03 11:16:30.938503+00:00res = await generate_image_prompt(
2025-04-03 11:16:30.938513+00:00└ <function generate_image_prompt at 0x7fcba86328e0>
2025-04-03 11:16:30.938522+00:002025-04-03T11:16:30.938522778Z
2025-04-03 11:16:30.938532+00:00> File "/app/backend/open_webui/routers/tasks.py", line 382, in generate_image_prompt
2025-04-03 11:16:30.938541+00:00return await generate_chat_completion(request, form_data=payload, user=user)
2025-04-03 11:16:30.938551+00:00│ │ │ └ UserModel(id='[REDACTED]', name='[REDACTED]', email='[REDACTED]', role='user', profile_image_url=...
2025-04-03 11:16:30.938562+00:00│ │ └ {'model': 'accounts/fireworks/models/llama-v3p2-90b-vision-instruct', 'messages': [{'role': 'user', 'content': '### Task:\nGe...
2025-04-03 11:16:30.938573+00:00│ └ <starlette.requests.Request object at 0x7fcb9aeffed0>
2025-04-03 11:16:30.938583+00:00└ <function generate_chat_completion at 0x7fcba8631940>
2025-04-03 11:16:30.938593+00:002025-04-03T11:16:30.938593348Z
2025-04-03 11:16:30.938602+00:00File "/app/backend/open_webui/utils/chat.py", line 201, in generate_chat_completion
2025-04-03 11:16:30.938612+00:00raise e
2025-04-03 11:16:30.938623+00:002025-04-03T11:16:30.938623285Z
2025-04-03 11:16:30.938633+00:00File "/app/backend/open_webui/utils/chat.py", line 199, in generate_chat_completion
2025-04-03 11:16:30.938643+00:00check_model_access(user, model)
2025-04-03 11:16:30.938653+00:00│ │ └ {'id': 'accounts/fireworks/models/llama-v3p2-90b-vision-instruct', 'object': 'model', 'owned_by': 'openai', 'created': 172713...
2025-04-03 11:16:30.938663+00:00│ └ UserModel(id='[REDACTED]', name='[REDACTED]', email='[REDACTED]', role='user', profile_image_url=...
2025-04-03 11:16:30.938673+00:00└ <function check_model_access at 0x7fcba8631620>
2025-04-03 11:16:30.938683+00:002025-04-03T11:16:30.938683919Z
2025-04-03 11:16:30.938693+00:00File "/app/backend/open_webui/utils/models.py", line 247, in check_model_access
2025-04-03 11:16:30.938703+00:00raise Exception("Model not found")
2025-04-03 11:16:30.938713+00:002025-04-03T11:16:30.938713661Z
2025-04-03 11:16:30.938724+00:00Exception: Model not found
2025-04-03 11:16:30.940631+00:002025-04-03 04:16:30.936 | ERROR | open_webui.utils.middleware:chat_image_generation_handler:500 - 'JSONResponse' object is not subscriptable - {}
2025-04-03 11:16:30.940675+00:00Traceback (most recent call last):
2025-04-03 11:16:30.940688+00:002025-04-03T11:16:30.940688765Z
2025-04-03 11:16:30.940698+00:00File "/usr/local/bin/uvicorn", line 10, in
2025-04-03 11:16:30.940709+00:00sys.exit(main())
2025-04-03 11:16:30.940719+00:00│ │ └
2025-04-03 11:16:30.940730+00:00│ └
2025-04-03 11:16:30.940740+00:00└ <module 'sys' (built-in)>
2025-04-03 11:16:30.940751+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1161, in call
2025-04-03 11:16:30.940776+00:00return self.main(args, **kwargs)
2025-04-03 11:16:30.940809+00:00│ │ │ └ {}
2025-04-03 11:16:30.940833+00:00│ │ └ ()
2025-04-03 11:16:30.940855+00:00│ └ <function BaseCommand.main at 0x7fcbd9a6dda0>
2025-04-03 11:16:30.940885+00:00└
2025-04-03 11:16:30.940909+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1082, in main
2025-04-03 11:16:30.940932+00:00rv = self.invoke(ctx)
2025-04-03 11:16:30.940956+00:00│ │ └ <click.core.Context object at 0x7fcbda7c4490>
2025-04-03 11:16:30.940974+00:00│ └ <function Command.invoke at 0x7fcbd9a6e980>
2025-04-03 11:16:30.941061+00:00└
2025-04-03 11:16:30.941079+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
2025-04-03 11:16:30.941105+00:00return ctx.invoke(self.callback, **ctx.params)
2025-04-03 11:16:30.941117+00:00│ │ │ │ │ └ {'host': '0.0.0.0', 'port': 31028, 'forwarded_allow_ips': '', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload...
2025-04-03 11:16:30.941127+00:00│ │ │ │ └ <click.core.Context object at 0x7fcbda7c4490>
2025-04-03 11:16:30.941138+00:00│ │ │ └ <function main at 0x7fcbd96d94e0>
2025-04-03 11:16:30.941148+00:00│ │ └
2025-04-03 11:16:30.941158+00:00│ └ <function Context.invoke at 0x7fcbd9a6d300>
2025-04-03 11:16:30.941168+00:00└ <click.core.Context object at 0x7fcbda7c4490>
2025-04-03 11:16:30.941178+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
2025-04-03 11:16:30.941189+00:00return __callback(args, **kwargs)
2025-04-03 11:16:30.941199+00:00│ └ {'host': '0.0.0.0', 'port': 31028, 'forwarded_allow_ips': '', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload...
2025-04-03 11:16:30.941210+00:00└ ()
2025-04-03 11:16:30.941220+00:00File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main
2025-04-03 11:16:30.941231+00:00run(
2025-04-03 11:16:30.941246+00:00└ <function run at 0x7fcbd9aefe20>
2025-04-03 11:16:30.941256+00:00File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
2025-04-03 11:16:30.941266+00:00server.run()
2025-04-03 11:16:30.941275+00:00│ └ <function Server.run at 0x7fcbd994d260>
2025-04-03 11:16:30.941285+00:00└ <uvicorn.server.Server object at 0x7fcbd99a1710>
2025-04-03 11:16:30.941296+00:00File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
2025-04-03 11:16:30.941305+00:00return asyncio.run(self.serve(sockets=sockets))
2025-04-03 11:16:30.941315+00:00│ │ │ │ └ None
2025-04-03 11:16:30.941325+00:00│ │ │ └ <function Server.serve at 0x7fcbd994d300>
2025-04-03 11:16:30.941335+00:00│ │ └ <uvicorn.server.Server object at 0x7fcbd99a1710>
2025-04-03 11:16:30.941345+00:00│ └ <function run at 0x7fcbd9e74b80>
2025-04-03 11:16:30.941355+00:00└ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
2025-04-03 11:16:30.941365+00:00File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
2025-04-03 11:16:30.941376+00:00return runner.run(main)
2025-04-03 11:16:30.941385+00:00│ │ └ <coroutine object Server.serve at 0x7fcbd98926b0>
2025-04-03 11:16:30.941396+00:00│ └ <function Runner.run at 0x7fcbd9cc0720>
2025-04-03 11:16:30.941406+00:00└ <asyncio.runners.Runner object at 0x7fcbd96e35d0>
2025-04-03 11:16:30.941417+00:00File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
2025-04-03 11:16:30.941427+00:00return self._loop.run_until_complete(task)
2025-04-03 11:16:30.941436+00:00│ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.11/site-packages/uvicorn/server.py:70> wai...
2025-04-03 11:16:30.941447+00:00│ │ └ <cyfunction Loop.run_until_complete at 0x7fcbd97192f0>
2025-04-03 11:16:30.941457+00:00│ └ <uvloop.Loop running=True closed=False debug=False>
2025-04-03 11:16:30.941466+00:00└ <asyncio.runners.Runner object at 0x7fcbd96e35d0>
2025-04-03 11:16:30.941476+00:00File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
2025-04-03 11:16:30.941486+00:00await self.app(scope, receive_or_disconnect, send_no_error)
2025-04-03 11:16:30.941496+00:00│ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7fcb9b183ce0>
2025-04-03 11:16:30.941507+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.941517+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.941527+00:00│ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7fcba05e6450>
2025-04-03 11:16:30.941538+00:00└ <open_webui.main.RedirectMiddleware object at 0x7fcba111a090>
2025-04-03 11:16:30.941548+00:00File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
2025-04-03 11:16:30.941558+00:00await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2025-04-03 11:16:30.941568+00:00│ │ │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7fcb9b183ce0>
2025-04-03 11:16:30.941579+00:00│ │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.941710+00:00│ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.941723+00:00│ │ │ └ <starlette.requests.Request object at 0x7fcb9aefdfd0>
2025-04-03 11:16:30.941733+00:00│ │ └ <fastapi.routing.APIRouter object at 0x7fcba1111610>
2025-04-03 11:16:30.941743+00:00│ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7fcba05e6450>
2025-04-03 11:16:30.941753+00:00└ <function wrap_app_handling_exceptions at 0x7fcbd6d6b2e0>
2025-04-03 11:16:30.941762+00:00File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-03 11:16:30.941773+00:00await app(scope, receive, sender)
2025-04-03 11:16:30.941783+00:00│ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:30.941793+00:00│ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.941803+00:00│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.941814+00:00└ <fastapi.routing.APIRouter object at 0x7fcba1111610>
2025-04-03 11:16:30.941825+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in call
2025-04-03 11:16:30.941834+00:00await self.middleware_stack(scope, receive, send)
2025-04-03 11:16:30.941844+00:00│ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:30.941854+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.941865+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.941876+00:00│ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7fcba1111610>>
2025-04-03 11:16:30.941886+00:00└ <fastapi.routing.APIRouter object at 0x7fcba1111610>
2025-04-03 11:16:30.941896+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
2025-04-03 11:16:30.941906+00:00await route.handle(scope, receive, send)
2025-04-03 11:16:30.941916+00:00│ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:30.941928+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.941938+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.941949+00:00│ └ <function Route.handle at 0x7fcbd6ca89a0>
2025-04-03 11:16:30.941958+00:00└ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
2025-04-03 11:16:30.941968+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
2025-04-03 11:16:30.941978+00:00await self.app(scope, receive, send)
2025-04-03 11:16:30.941987+00:00│ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:30.941997+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.942007+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.942017+00:00│ └ <function request_response..app at 0x7fcb9fda3ec0>
2025-04-03 11:16:30.942028+00:00└ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
2025-04-03 11:16:30.942038+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
2025-04-03 11:16:30.942048+00:00await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2025-04-03 11:16:30.942058+00:00│ │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:30.942069+00:00│ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.942080+00:00│ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.942090+00:00│ │ └ <starlette.requests.Request object at 0x7fcb9aeffed0>
2025-04-03 11:16:30.942100+00:00│ └ <function request_response..app..app at 0x7fcb9b181e40>
2025-04-03 11:16:30.942112+00:00└ <function wrap_app_handling_exceptions at 0x7fcbd6d6b2e0>
2025-04-03 11:16:30.942122+00:00File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-03 11:16:30.942132+00:00await app(scope, receive, sender)
2025-04-03 11:16:30.942142+00:00│ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b180b80>
2025-04-03 11:16:30.942153+00:00│ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:30.942163+00:00│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:30.942174+00:00└ <function request_response..app..app at 0x7fcb9b181e40>
2025-04-03 11:16:30.942185+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
2025-04-03 11:16:30.942196+00:00response = await f(request)
2025-04-03 11:16:30.942206+00:00│ └ <starlette.requests.Request object at 0x7fcb9aeffed0>
2025-04-03 11:16:30.942218+00:00└ <function get_request_handler..app at 0x7fcb9fda3b00>
2025-04-03 11:16:30.942228+00:00File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
2025-04-03 11:16:30.942238+00:00raw_response = await run_endpoint_function(
2025-04-03 11:16:30.942248+00:00└ <function run_endpoint_function at 0x7fcbd6caa7a0>
2025-04-03 11:16:30.942257+00:00File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
2025-04-03 11:16:30.942267+00:00return await dependant.call(**values)
2025-04-03 11:16:30.942276+00:00│ │ └ {'user': UserModel(id='[REDACTED]', name='[REDACTED]', email='[REDACTED]', role='user', profile_i...
2025-04-03 11:16:30.942287+00:00│ └ <function chat_completion at 0x7fcb9fda0220>
2025-04-03 11:16:30.942296+00:00└ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant...
2025-04-03 11:16:30.942306+00:002025-04-03T11:16:30.942306613Z
2025-04-03 11:16:30.942315+00:00File "/app/backend/open_webui/main.py", line 1087, in chat_completion
2025-04-03 11:16:30.942325+00:00form_data, metadata, events = await process_chat_payload(
2025-04-03 11:16:30.942334+00:00│ │ └ <function process_chat_payload at 0x7fcba11865c0>
2025-04-03 11:16:30.942344+00:00│ └ {'user_id': '[REDACTED]', 'chat_id': 'local', 'message_id': '[REDACTED]',...
2025-04-03 11:16:30.942355+00:00└ {'stream': True, 'model': 'gpt-4o-mini', 'messages': [{'role': 'system', 'content': '\n\nUser Context:\n1. [2025-03-29]. User...
2025-04-03 11:16:30.942365+00:002025-04-03T11:16:30.942365324Z
2025-04-03 11:16:30.942374+00:00File "/app/backend/open_webui/utils/middleware.py", line 775, in process_chat_payload
2025-04-03 11:16:30.942384+00:00form_data = await chat_image_generation_handler(
2025-04-03 11:16:30.942394+00:00└ <function chat_image_generation_handler at 0x7fcba1186340>
2025-04-03 11:16:30.942405+00:002025-04-03T11:16:30.942405141Z
2025-04-03 11:16:30.942414+00:00> File "/app/backend/open_webui/utils/middleware.py", line 484, in chat_image_generation_handler
2025-04-03 11:16:30.942424+00:00response = res["choices"][0]["message"]["content"]
2025-04-03 11:16:30.942460+00:00└ <starlette.responses.JSONResponse object at 0x7fcb9b1c12d0>
2025-04-03 11:16:30.942472+00:002025-04-03T11:16:30.942472983Z
2025-04-03 11:16:30.942483+00:00TypeError: 'JSONResponse' object is not subscriptable
2025-04-03 11:16:49.054308+00:002025-04-03 04:16:49.054 | INFO | open_webui.routers.files:upload_file:88 - file.content_type: image/png - {}
2025-04-03 11:16:49.123337+00:002025-04-03 04:16:49.117 | ERROR | open_webui.utils.middleware:chat_image_generation_handler:529 - 'NoneType' object has no attribute 'get' - {}
2025-04-03 11:16:49.123399+00:00Traceback (most recent call last):
2025-04-03 11:16:49.123419+00:002025-04-03T11:16:49.123419505Z
2025-04-03 11:16:49.123434+00:00File "/usr/local/bin/uvicorn", line 10, in
2025-04-03 11:16:49.123450+00:00sys.exit(main())
2025-04-03 11:16:49.123466+00:00│ │ └
2025-04-03 11:16:49.123482+00:00│ └
2025-04-03 11:16:49.123497+00:00└ <module 'sys' (built-in)>
2025-04-03 11:16:49.123513+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1161, in call
2025-04-03 11:16:49.123529+00:00return self.main(args, **kwargs)
2025-04-03 11:16:49.123544+00:00│ │ │ └ {}
2025-04-03 11:16:49.123559+00:00│ │ └ ()
2025-04-03 11:16:49.123575+00:00│ └ <function BaseCommand.main at 0x7fcbd9a6dda0>
2025-04-03 11:16:49.123591+00:00└
2025-04-03 11:16:49.123606+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1082, in main
2025-04-03 11:16:49.123622+00:00rv = self.invoke(ctx)
2025-04-03 11:16:49.123637+00:00│ │ └ <click.core.Context object at 0x7fcbda7c4490>
2025-04-03 11:16:49.123653+00:00│ └ <function Command.invoke at 0x7fcbd9a6e980>
2025-04-03 11:16:49.123669+00:00└
2025-04-03 11:16:49.123684+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
2025-04-03 11:16:49.123700+00:00return ctx.invoke(self.callback, **ctx.params)
2025-04-03 11:16:49.123716+00:00│ │ │ │ │ └ {'host': '0.0.0.0', 'port': 31028, 'forwarded_allow_ips': '', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload...
2025-04-03 11:16:49.123732+00:00│ │ │ │ └ <click.core.Context object at 0x7fcbda7c4490>
2025-04-03 11:16:49.123749+00:00│ │ │ └ <function main at 0x7fcbd96d94e0>
2025-04-03 11:16:49.123765+00:00│ │ └
2025-04-03 11:16:49.123781+00:00│ └ <function Context.invoke at 0x7fcbd9a6d300>
2025-04-03 11:16:49.123797+00:00└ <click.core.Context object at 0x7fcbda7c4490>
2025-04-03 11:16:49.123813+00:00File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
2025-04-03 11:16:49.123831+00:00return __callback(args, **kwargs)
2025-04-03 11:16:49.123847+00:00│ └ {'host': '0.0.0.0', 'port': 31028, 'forwarded_allow_ips': '', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload...
2025-04-03 11:16:49.123862+00:00└ ()
2025-04-03 11:16:49.123877+00:00File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main
2025-04-03 11:16:49.123892+00:00run(
2025-04-03 11:16:49.123909+00:00└ <function run at 0x7fcbd9aefe20>
2025-04-03 11:16:49.123925+00:00File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
2025-04-03 11:16:49.123940+00:00server.run()
2025-04-03 11:16:49.123955+00:00│ └ <function Server.run at 0x7fcbd994d260>
2025-04-03 11:16:49.123971+00:00└ <uvicorn.server.Server object at 0x7fcbd99a1710>
2025-04-03 11:16:49.123986+00:00File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
2025-04-03 11:16:49.124001+00:00return asyncio.run(self.serve(sockets=sockets))
2025-04-03 11:16:49.124017+00:00│ │ │ │ └ None
2025-04-03 11:16:49.124032+00:00│ │ │ └ <function Server.serve at 0x7fcbd994d300>
2025-04-03 11:16:49.124048+00:00│ │ └ <uvicorn.server.Server object at 0x7fcbd99a1710>
2025-04-03 11:16:49.124065+00:00│ └ <function run at 0x7fcbd9e74b80>
2025-04-03 11:16:49.124081+00:00└ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
2025-04-03 11:16:49.124098+00:00File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
2025-04-03 11:16:49.124114+00:00return runner.run(main)
2025-04-03 11:16:49.124130+00:00│ │ └ <coroutine object Server.serve at 0x7fcbd98926b0>
2025-04-03 11:16:49.124146+00:00│ └ <function Runner.run at 0x7fcbd9cc0720>
2025-04-03 11:16:49.124163+00:00└ <asyncio.runners.Runner object at 0x7fcbd96e35d0>
2025-04-03 11:16:49.124180+00:00File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
2025-04-03 11:16:49.124195+00:00return self._loop.run_until_complete(task)
2025-04-03 11:16:49.124211+00:00│ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.11/site-packages/uvicorn/server.py:70> wai...
2025-04-03 11:16:49.124226+00:00│ │ └ <cyfunction Loop.run_until_complete at 0x7fcbd97192f0>
2025-04-03 11:16:49.124242+00:00│ └ <uvloop.Loop running=True closed=False debug=False>
2025-04-03 11:16:49.124257+00:00└ <asyncio.runners.Runner object at 0x7fcbd96e35d0>
2025-04-03 11:16:49.124273+00:00File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
2025-04-03 11:16:49.124288+00:00await self.app(scope, receive_or_disconnect, send_no_error)
2025-04-03 11:16:49.124304+00:00│ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7fcb9b183ce0>
2025-04-03 11:16:49.124321+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:49.124338+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:49.124354+00:00│ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7fcba05e6450>
2025-04-03 11:16:49.124370+00:00└ <open_webui.main.RedirectMiddleware object at 0x7fcba111a090>
2025-04-03 11:16:49.124385+00:00File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
2025-04-03 11:16:49.124401+00:00await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2025-04-03 11:16:49.124419+00:00│ │ │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7fcb9b183ce0>
2025-04-03 11:16:49.124436+00:00│ │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:49.124453+00:00│ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:49.124470+00:00│ │ │ └ <starlette.requests.Request object at 0x7fcb9aefdfd0>
2025-04-03 11:16:49.124485+00:00│ │ └ <fastapi.routing.APIRouter object at 0x7fcba1111610>
2025-04-03 11:16:49.124501+00:00│ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7fcba05e6450>
2025-04-03 11:16:49.124516+00:00└ <function wrap_app_handling_exceptions at 0x7fcbd6d6b2e0>
2025-04-03 11:16:49.124532+00:00File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-03 11:16:49.124548+00:00await app(scope, receive, sender)
2025-04-03 11:16:49.124564+00:00│ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:49.124580+00:00│ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:49.124597+00:00│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:49.124613+00:00└ <fastapi.routing.APIRouter object at 0x7fcba1111610>
2025-04-03 11:16:49.124629+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in call
2025-04-03 11:16:49.124645+00:00await self.middleware_stack(scope, receive, send)
2025-04-03 11:16:49.124662+00:00│ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:49.124678+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:49.124696+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:49.124713+00:00│ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7fcba1111610>>
2025-04-03 11:16:49.124729+00:00└ <fastapi.routing.APIRouter object at 0x7fcba1111610>
2025-04-03 11:16:49.124746+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
2025-04-03 11:16:49.124763+00:00await route.handle(scope, receive, send)
2025-04-03 11:16:49.124779+00:00│ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:49.124796+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:49.124815+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:49.124831+00:00│ └ <function Route.handle at 0x7fcbd6ca89a0>
2025-04-03 11:16:49.124848+00:00└ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
2025-04-03 11:16:49.124863+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
2025-04-03 11:16:49.124881+00:00await self.app(scope, receive, send)
2025-04-03 11:16:49.124896+00:00│ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:49.124913+00:00│ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:49.124931+00:00│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:49.124948+00:00│ └ <function request_response..app at 0x7fcb9fda3ec0>
2025-04-03 11:16:49.124964+00:00└ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
2025-04-03 11:16:49.124979+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
2025-04-03 11:16:49.124995+00:00await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2025-04-03 11:16:49.125011+00:00│ │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b183ba0>
2025-04-03 11:16:49.125028+00:00│ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:49.125045+00:00│ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:49.125062+00:00│ │ └ <starlette.requests.Request object at 0x7fcb9aeffed0>
2025-04-03 11:16:49.125079+00:00│ └ <function request_response..app..app at 0x7fcb9b181e40>
2025-04-03 11:16:49.125116+00:00└ <function wrap_app_handling_exceptions at 0x7fcbd6d6b2e0>
2025-04-03 11:16:49.125135+00:00File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-03 11:16:49.125155+00:00await app(scope, receive, sender)
2025-04-03 11:16:49.125171+00:00│ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7fcb9b180b80>
2025-04-03 11:16:49.125187+00:00│ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7fcb9b1807c0>
2025-04-03 11:16:49.125203+00:00│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('192.168.1.180', 31028)...
2025-04-03 11:16:49.125219+00:00└ <function request_response..app..app at 0x7fcb9b181e40>
2025-04-03 11:16:49.125236+00:00File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
2025-04-03 11:16:49.125252+00:00response = await f(request)
2025-04-03 11:16:49.125267+00:00│ └ <starlette.requests.Request object at 0x7fcb9aeffed0>
2025-04-03 11:16:49.125284+00:00└ <function get_request_handler..app at 0x7fcb9fda3b00>
2025-04-03 11:16:49.125299+00:00File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
2025-04-03 11:16:49.125314+00:00raw_response = await run_endpoint_function(
2025-04-03 11:16:49.125330+00:00└ <function run_endpoint_function at 0x7fcbd6caa7a0>
2025-04-03 11:16:49.125345+00:00File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
2025-04-03 11:16:49.125360+00:00return await dependant.call(**values)
2025-04-03 11:16:49.125376+00:00│ │ └ {'user': UserModel(id='[REDACTED]', name='[REDACTED]', email='[REDACTED]', role='user', profile_i...
2025-04-03 11:16:49.125392+00:00│ └ <function chat_completion at 0x7fcb9fda0220>
2025-04-03 11:16:49.125408+00:00└ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant...
2025-04-03 11:16:49.125423+00:002025-04-03T11:16:49.125423845Z
2025-04-03 11:16:49.125439+00:00File "/app/backend/open_webui/main.py", line 1087, in chat_completion
2025-04-03 11:16:49.125455+00:00form_data, metadata, events = await process_chat_payload(
2025-04-03 11:16:49.125471+00:00│ │ └ <function process_chat_payload at 0x7fcba11865c0>
2025-04-03 11:16:49.125488+00:00│ └ {'user_id': '[REDACTED]', 'chat_id': 'local', 'message_id': '[REDACTED]',...
2025-04-03 11:16:49.125504+00:00└ {'stream': True, 'model': 'gpt-4o-mini', 'messages': [{'role': 'system', 'content': '\n\nUser Context:\n1. [2025-03-29]. User...
2025-04-03 11:16:49.125520+00:002025-04-03T11:16:49.125520344Z
2025-04-03 11:16:49.125535+00:00File "/app/backend/open_webui/utils/middleware.py", line 775, in process_chat_payload
2025-04-03 11:16:49.125550+00:00form_data = await chat_image_generation_handler(
2025-04-03 11:16:49.125565+00:00└ <function chat_image_generation_handler at 0x7fcba1186340>
2025-04-03 11:16:49.125581+00:002025-04-03T11:16:49.125581269Z
2025-04-03 11:16:49.125596+00:00> File "/app/backend/open_webui/utils/middleware.py", line 520, in chat_image_generation_handler
2025-04-03 11:16:49.125612+00:00await event_emitter(
2025-04-03 11:16:49.125628+00:00└ <function get_event_emitter..event_emitter at 0x7fcb9ad34d60>
2025-04-03 11:16:49.125644+00:002025-04-03T11:16:49.125644291Z
2025-04-03 11:16:49.125659+00:00File "/app/backend/open_webui/socket/main.py", line 348, in event_emitter
2025-04-03 11:16:49.125674+00:00content = message.get("content", "")
2025-04-03 11:16:49.125691+00:00└ None
2025-04-03 11:16:49.125707+00:002025-04-03T11:16:49.125707677Z
2025-04-03 11:16:49.125722+00:00AttributeError: 'NoneType' object has no attribute 'get'
Additional Information
Only happens for specific users so far. Any insights help!
@frenzybiscuit commented on GitHub (Apr 3, 2025):
Is there anything in common with the users?
@rgaricano commented on GitHub (Apr 3, 2025):
web server size limits? https://github.com/open-webui/open-webui/discussions/8221#discussioncomment-11732751
@Davixk commented on GitHub (Apr 3, 2025):
Nothing that I can spot.
This wouln't make sense, as works no problem for most users using the same models and image sizes. Also, 50MB is way larger than the size of the requests.
@rgaricano commented on GitHub (Apr 4, 2025):
the problem seem clear, it's a timeout on socket connection with that user, it you checked web server and are correctly config ask that user to revise he own system &| internet provider
@simguy commented on GitHub (Apr 4, 2025):
I had an issue that looked the exact same, but it was happening for the same user from the same machine. When I toggled the chat to Temporary it would break just like how you showed in the video, but with Temporary toggled off and in the normal/remembered chat it generates images fine.
@Davixk commented on GitHub (Apr 5, 2025):
@simguy You are correct!
I can confirm Image generation does not work on Chrome for Android when temporary chats are on. From any user that is.
Great find.
@Davixk commented on GitHub (Apr 6, 2025):
Update - They seem to not be working on any browser, any device, as long as Temporary Chat is enabled.
@FooleanBool commented on GitHub (Apr 7, 2025):
Brave (prompt in chat, image gen action button) - works.
Brave (image-gen button enabled) - produces image, shows it, then reports error and removes it.
Chrome - (prompt in chat, image gen action button) - works.
Chrome (image-gen button enabled) - produces image, shows it, then reports error and removes it.
Vanadium (chromium based, android) - as above for both situations.
It seems that temp chat interferes with the auto-image-gen button (next to web-search/code interpreter) but plays nicely with the standard 'generate image' action button.
@tjbck commented on GitHub (Apr 14, 2025):
Addressed in dev.