mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #14034] issue: Notes long audio upload / transcription timeout with Cloudflare proxy #32644
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 @JobDoesburg on GitHub (May 19, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14034
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.10
Ollama Version (if applicable)
v0.7.0
Operating System
Ubuntu 24.04
Browser (if applicable)
Safari 18.5
Confirmation
README.md.Expected Behavior
After uploading a long
.m4aor.mp3audio file to a note, it is properly attached to my noteActual Behavior
When upload is complete and transcription is processing, but before transcription finishes, a timeout occurs and the file disappears from the note.
Steps to Reproduce
Logs & Screenshots
Docker logs:
Notice that the last lines (
save_docs_to_vector_dband even later theBatches: 100%) only appear after a long time. In the meantime, the browser already received a524: A timeout occurredand the file disappears.Browser logs:
First when uploading:

Then after a while when the upload completes, it just disappears:
Additional Information
We're running open-webui behind a Cloudflare proxy. This proxy has a timeout of 100 seconds. Transcription often takes longer than this, in which case Cloudflare decides to send a 524 timeout occurred.
See https://community.cloudflare.com/t/community-tip-fixing-error-524-a-timeout-occurred/42342
Somehow, this also results in the file being completely dropped even when later transcription on the server still succeeds. Preferably, transcription would happen in the background and open-webui would just respond with a processing status until transcription is completed.
@tjbck commented on GitHub (May 19, 2025):
This is not an Open WebUI issue, and must be resolved from the proxy-end. With that being said, will investigate ways to support Cloudflare.
@JobDoesburg commented on GitHub (May 19, 2025):
I don't fully agree with that. Yes, Cloudflare throws the timeout and would be able to mitigate this specific bug (though you can't in Cloudflare for good reasons). But the underlying problem is in the way Open Web UI processes the audio file.
Even when a timeout occurs, I wouldn't expect Open WebUI to completely drop the file / transcription results. I would expect that transcription goes on in the background (which currently does happen) and when finished, the results are properly stored. Right now, the result of transcription is returned to a broken connection and hence dropped.
Especially with audio files that may take multiple minutes to process, it is not good UX to require users to keep their connection alive all the time while transcription is happening in the background. As a user I should just be able to upload my audio file, close the browser window or move my laptop (break my internet connection) and come back minutes later without losing my audio file.
This is a problem regardless of whether Open WebUI is running behind a proxy or not. Should I reformulate the problem @tjbck ?
@JobDoesburg commented on GitHub (May 21, 2025):
Is this similar to #13027 ?