Self-hosted: "Failed to queue transcription" logged for every video when no transcription provider is configured
維護者通常 1 天內回覆
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
- 技術堆疊
- nextjs, typescript
- 領域
- backend
研究方向
Start by reading apps/web/lib/queue-video-transcription.ts, apps/web/workflows/process-video.ts, and apps/web/workflows/edit-video.ts; compare their queueing behavior with queueFinalizedRecordingTranscription in apps/web/workflows/finalize-desktop-recording.ts. The issue reports an open linked pull request, so the work appears to be underway. Done means the listed entry points skip transcription when ASSEMBLY_API_KEY is absent, with the reported tests passing.
由索引模型根據 Issue 內容生成。
描述
Description
On a self-hosted install without ASSEMBLY_API_KEY, every processed video logs a transcription failure, e.g.:
[media-server-webhook] Failed to queue transcription … Missing necessary environment variables
Nothing is actually broken: transcription just isn't set up. I'd expect Cap to skip transcription quietly when no provider is configured, the way queueFinalizedRecordingTranscription in apps/web/workflows/finalize-desktop-recording.ts already does (if (!serverEnv().ASSEMBLY_API_KEY) return true;).
The other entry points don't have that check:
queueVideoTranscriptioninapps/web/lib/queue-video-transcription.ts(media-server webhook, multipart complete, segment finalization)queueProcessedVideoTranscriptioninapps/web/workflows/process-video.tsqueueTranscriptionRegenerationinapps/web/workflows/edit-video.ts
Reproduction
- Self-host cap-web + cap-media-server without
ASSEMBLY_API_KEY. - Record or upload a video.
- The web logs show the transcription failure (twice per video in our case).
Additional Context
- Cap version:
ghcr.io/capsoftware/cap-webbuilt 2026-09-07 from c5f22d7; the same code paths are on main as of 4e2377f61 - Operating system, version: Kubernetes, MySQL 8.0, S3-compatible storage
I have a small fix with unit tests (same early return in the three places, 9 lines + 2 tests that fail on main and pass with the fix) and am happy to open a PR if that's welcome.
- 主要語言
- Rust
- 星號
- 23.7k
- 分支
- 2.1k
- 平均合併
- 1 天 55 分鐘
- 30 天內合併 PR
- 697
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CapSoftware/Cap 的其他 Issue
-
Web player intercepts ⌘⇧M and blocks Chrome profile-menu shortcut可能已有人在做 @AatmanAJ 於 14 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 80/100
CapSoftware/Cap#2596 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
CapSoftware/Cap#2384 · 2 則留言 ·
維護者通常 1 天內回覆
-
Dashboard pagination causes full page reloads on self-hosted Cap可能已有人在做 @Dewin 於 42 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 88/100
CapSoftware/Cap#2305 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
CapSoftware/Cap#1714 · 3 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 48/100
CapSoftware/Cap#3578 · 1 則留言 ·
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
compiler P4 perf
難度 2/5 1-3 小時 新手友好度 78/100
HerringtonDarkholme/hd-lang#1044 ·
維護者通常 1 天內回覆
-
good first issue help wanted r-docs
難度 2/5 1-3 小時 新手友好度 72/100
servo/rust-smallvec#824 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 90/100
akitaonrails/ai-usagebar#552 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100