mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #17058] issue: Response cannot be stopped after the tool is called #18157
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 @EntropyYue on GitHub (Aug 30, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17058
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.6.26
Ollama Version (if applicable)
No response
Operating System
Windows 10
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The response should stop normally
Actual Behavior
Although the frontend response has stopped, the backend connection has not been closed
Steps to Reproduce
Logs & Screenshots
2025-08-31 05:33:23.985 | WARNING | open_webui.utils.middleware:response_handler:2620 - Task was cancelled!
2025-08-31 05:33:23.998 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:63005 - "POST /api/tasks/stop/d2248229-dec7-44e9-87f8-8e73a36846dc HTTP/1.1" 200
2025-08-31 05:33:24.975 | ERROR | asyncio.base_events:default_exception_handler:1785 - Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x0000016702081850>
2025-08-31 05:33:24.976 | ERROR | asyncio.base_events:default_exception_handler:1785 - Unclosed connector
connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at 0x0000016703F42CF0>, 391185.718)])']
connector: <aiohttp.connector.TCPConnector object at 0x0000016703E9BF10>
Additional Information
d6f709574edid not solve the problem@silentoplayz commented on GitHub (Dec 6, 2025):
I can confirm this issue, as I was able to reproduce it on my first attempt on the latest
devcommit with the provided reproduction steps.Here's the error reproduced from my logs:
@Classic298 commented on GitHub (Feb 12, 2026):
https://github.com/open-webui/open-webui/pull/20889