mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
[GH-ISSUE #10302] bug: ValueError: Chunk too big when streaming large files from pipelines #15847
Reference in New Issue
Block a user
Originally created by @lalanikarim on GitHub (Feb 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10302
Installation Method
Kubernetes using helm charts - https://artifacthub.io/packages/helm/open-webui/open-webui
Behind Cloudflare Tunnel
Environment
Open WebUI Version: v0.5.14
Ollama (if applicable): 0.5.11 (not applicable)
Open WebUI Pipelines
Operating System: Ubuntu 22.04.5 LTS
Browser (if applicable): 134.0.2 (64-bit)
Confirmation:
Expected Behavior:
Open WebUI handles large files correctly
Actual Behavior:
Open WebUI chat stalls and server logs have the following trace:
Description
Bug Summary:
When receiving large files in content as base64 encoded strings from pipelines, Open WebUI middleware throws "ValueError: Chunk too big" exception.
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
Open WebUI container logs
Pipeline container logs
Screenshots/Screen Recordings (if applicable):
Additional Information
From what I gather, the content size exceeds the asyncio's buffer settings something along those lines.
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@tjbck commented on GitHub (Feb 18, 2025):
Sending
base64data directly is not a best practice, however I'd be open to PRs addressing this!