Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Self-hosted: "Failed to queue transcription" logged for every video when no transcription provider is configured

未關閉
#3,517 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@prosomoalexd 已經在處理了。

開始於 2026年10月28日。

  • #3520 來自 @prosomoalexd —— 未關閉

評估

難度
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 內容生成。

描述

bug
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:

  • queueVideoTranscription in apps/web/lib/queue-video-transcription.ts (media-server webhook, multipart complete, segment finalization)
  • queueProcessedVideoTranscription in apps/web/workflows/process-video.ts
  • queueTranscriptionRegeneration in apps/web/workflows/edit-video.ts
Reproduction
  1. Self-host cap-web + cap-media-server without ASSEMBLY_API_KEY.
  2. Record or upload a video.
  3. The web logs show the transcription failure (twice per video in our case).
Additional Context
  • Cap version: ghcr.io/capsoftware/cap-web built 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 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CapSoftware/Cap 的其他 Issue

查看 CapSoftware/Cap 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。