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

[bug] video generate crashes with "undefined is not an object (evaluating 'Dispatcher.prototype.compose.call')"

已關閉
#263 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 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 status healthy (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/fetch to the same endpoint returned HTTP 200 with output.task_id (PENDING) — i.e. the API is fine, only bl fails. Successful request ids for log tracing: a99f738b-2712-4c5b-9d02-3612a40b6622 (task 217d2397-…), 915004b5-5b88-4f21-ba7f-e1ded07811c8 (task e2c31ae1-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 .call off 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 範本
  • 閱讀貢獻指南

從這裡開始

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

modelstudioai/cli 的其他 Issue

查看 modelstudioai/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

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

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