cloudflare / cloudflare/cloudflared
🐛Playback of any video file over Cloudflare Tunnel (via Immich) causes stream to be canceled
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When accessing Immich hosted on my local network via a Cloudflare Tunnel I run into the following error any time I attempt to interact with any video file:
```
2025-08-15T19:00:25Z ERR error="stream 109 canceled by remote with error code 0" connIndex=1 event=1 ingressRule=6 originService=http://{removed}
2025-08-15T19:00:25Z ERR Request failed error="stream 109 canceled by remote with error code 0" connIndex=1 dest=https://immich.{removed}/api/assets/{removed}/video/playback?c={removed} event=0 ip={removed} type=http
```
To be clear - Immich loads completely fine, I can navigate and use the app perfectly fine for photos, making configuration changes, etc. But the second I even mouse over the thumbnail of a video (which would normally start playing a preview) it hangs in the UI and the above error is thrown in the Cloudflare logs.
This is a 100% repro.
I've see multiple other related bugs (#1105 and #1300 ) but in those ingressRule is 0 and in mine it is 6. I don't know if that helps identify anything specific to debug.
**To Reproduce**
Steps to reproduce the behavior:
1. Access Immich through a Cloudflare Tunnel
2. Try and play back a video file of any kind
If it's an issue with Cloudflare Tunnel:
4. Tunnel ID : aa57fc79-c207-419b-a614-9bff2255d1a1
5. cloudflared config:
**Expected behavior**
The video would start playing back.
**Environment and versions**
- OS: Any/all
- Architecture: Any/all
- Version: Any/all
**Logs and errors**
```
2025-08-15T19:00:25Z ERR error="stream 109 canceled by remote with error code 0" connIndex=1 event=1 ingressRule=6 originService=http://{removed}
2025-08-15T19:00:25Z ERR Request failed error="stream 109 canceled by remote with error code 0" connIndex=1 dest=https://immich.{removed}/api/assets/{removed}/video/playback?c={removed} event=0 ip={removed} type=http
```
**Additional context**
N/A
Contributor guide
Assessment
This issue has not been assessed yet.