mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-09 10:50:35 -06:00
[GH-ISSUE #15848] issue: debug logging of streamed responses fails with TypeError: not all arguments converted during string formatting #33220
Reference in New Issue
Block a user
Originally created by @kalebwalton on GitHub (Jul 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15848
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.16
Ollama Version (if applicable)
No response
Operating System
MacOS Sequoia
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
I should be able to see debug logs even when streaming responses.
Actual Behavior
When I stream responses (which is default behavior) it throws errors and doesn't process the full response.
Steps to Reproduce
docker run -d --name openwebui -p 3000:8080 -e GLOBAL_LOG_LEVEL=debug -v openwebui-data:/app/backend/data --restart unless-stopped ghcr.io/open-webui/open-webui:latestLogs & Screenshots
Additional Information
I noticed that this line in middleware.py is not like the other debug log lines, and it needs to be adjusted to use the 'f' formatter:
https://github.com/open-webui/open-webui/blob/2470da833679f61619f2275862185259fe7f5168/backend/open_webui/utils/middleware.py#L2042
Should be:
Note that this bug is masking other bugs.
@tjbck commented on GitHub (Jul 19, 2025):
Addressed with ea18ffdadee764408bc72e3ea96a41e655727ed3!