[bug] video generate crashes with "undefined is not an object (evaluating 'Dispatcher.prototype.compose.call')"
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- bun, typescript
研究方向
Start from the CLI's video generate command and trace the POST to the video synthesis endpoint, then inspect how the Bun-compiled executable bundles or invokes undici. Reproduce the crash with the provided command and compare it with the successful plain HTTPS request. Done means video generation submits and polls successfully in the compiled CLI without the Dispatcher compose error.
由索引模型根據 Issue 內容生成。
描述
Environment
- CLI: bl 2.3.1 (Bun-compiled single-file exe at
%LOCALAPPDATA%\bailian-cli\bin\bl.exe) - Skill: bailian-protocol / bailian-gen 2.3.1
- Node: v22.23.2 (not used by the compiled exe)
- OS: Windows 11 Home 10.0.26300 (Git Bash)
- Region: intl (Token Plan profile, base_url
https://token-plan.ap-southeast-1.maas.aliyuncs.com)
Reproduce
bl video generate --prompt "A cute orange cartoon cat runs to the right, jumps, then walks and turns around..." \
--duration 10 --resolution 720P --ratio 16:9 --watermark false --download cat_walk_cycle.mp4 --verbose
--verbose prints:
> POST https://token-plan.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis
> Auth: [REDACTED]
> x-dashscope-source-config: {"channel":"bailian-cli","tags":{"t1":"public","t2":"bl","t3":"2.3.1"}}
Error: undefined is not an object (evaluating 'Dispatcher.prototype.compose.call')
Expected
Async task submitted, polled until SUCCEEDED, video downloaded to cat_walk_cycle.mp4.
Actual
Immediate crash (exit 1) with a JavaScriptCore-style internal error mentioning Dispatcher.prototype.compose.call (undici internals). No HTTP status, no request id, no BailianError.
Already tried
- bl 2.3.1 == skill 2.3.1 == npm latest 2.3.1 (no version skew)
bl auth statushealthy (API key present);bl model list(public GET path) works fine- Retried with simplified prompt and
--verbose— identical crash - Same request via plain HTTPS POST works: identical body/headers sent with
curl/fetchto the same endpoint returned HTTP 200 withoutput.task_id(PENDING) — i.e. the API is fine, onlyblfails. Successful request ids for log tracing:a99f738b-2712-4c5b-9d02-3612a40b6622(task217d2397-…),915004b5-5b88-4f21-ba7f-e1ded07811c8(taske2c31ae1-4310-4deb-a53c-79bce17467da, SUCCEEDED) - No proxy env vars set
- Error message matches the known signature of a bundled-undici bug (calling a native method's
.calloff the prototype fails under JSC)
Notes
- Frequency: always (2/2 attempts, both with and without
--negative-prompt) - Invoked via: agent (Claude Code, non-TTY bash)
- Other POST-based commands (e.g.
bl text chat) not tested for this bug
- 主要語言
- TypeScript
- 星號
- 475
- 分支
- 34
- 平均合併
- 19 小時 34 分鐘
- 30 天內合併 PR
- 34
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
modelstudioai/cli 的其他 Issue
-
[bug] Local media upload is pinned to China endpoint; Singapore workspace API key fails getPolicy (401 InvalidApiKey)可能已有人在做 @Uddoo 於 2 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 54/100
modelstudioai/cli#267 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 4/5 1-2 天 新手友好度 48/100
modelstudioai/cli#264 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 57/100
modelstudioai/cli#239 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 35/100
modelstudioai/cli#202 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 55/100
modelstudioai/cli#195 · 2 則留言 ·
維護者通常 1 天內回覆
查看 modelstudioai/cli 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 68/100
cursor/community-plugins#465 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 66/100
vetro-protocol/vetro-monorepo#978 ·
維護者通常 1 天內回覆
-
ai-generated bug category:security effort:s priority:p3
難度 2/5 1-3 小時 新手友好度 67/100
LanternOps/breeze#9697 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
maniator/verticopolis#1303 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 73/100
components-web-app/docs#297 ·