[Bug] docs +create / docs +update consistently fail with code 5000000 (Document engine internal error) on v1.0.100

オープン
#2,935 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
47/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go

調査の方向性

Start by locating the Go implementation for docs +create and docs +update, then trace how each sends document content to the Feishu API. Compare the failing write paths with the successful parse and fetch paths, using the minimal XML and Markdown reproductions in the issue. Done means create and overwrite writes succeed without code 5000000 or a degraded result.

索引モデルが issue の本文から書いたものです。

説明

bug domain/auth domain/core domain/doc

Description

On lark-cli v1.0.100, calling lark-cli docs +create or lark-cli docs +update (both XML and Markdown formats, and with both user and bot identities) consistently fails or degrades with Feishu error code 5000000 (Document operation failed: Document engine internal error).

Even minimal smoke tests (<p>Health check</p> or # Hello) reproduce the same 5000000 error, while local XML parsing (docs +script --command parse) and Drive .docx import (job_status=0) succeed normally under the exact same freshly authenticated user account.

Environment

  • lark-cli version: 1.0.100 (skills notice: 1.0.89 out of sync with binary 1.0.100)
  • OS: macOS (27.2.1, Build 26B131)
  • Identity tested: Freshly re-authenticated user (lark-cli auth login --domain docs,drive) and bot
  • Scopes granted: Full docs,drive domain scopes (docx:document:create, docx:document:write_only, docx:document:readonly, docs:document.media:upload, etc.)

Minimal Reproduction Steps

Case 1: Minimal XML via docs +create
lark-cli docs +create \
  --title "Health check" \
  --content "<p>Health check</p>" \
  --as user \
  --format json

Actual output:

{
  "ok": false,
  "identity": "user",
  "error": {
    "type": "api",
    "subtype": "unknown",
    "code": 5000000,
    "message": "Document operation failed: Document engine internal error. Retry later; if the error persists, contact the document platform for investigation",
    "log_id": "202611261507371F80A81BDB003074F9A7",
    "troubleshooter": "https://open.feishu.cn/search?from=openapi&log_id=202611261507371F80A81BDB003074F9A7&code=5000000&method_id=7624117956138666945"
  }
}
Case 2: Minimal Markdown via docs +create --doc-format markdown
lark-cli docs +create \
  --title "Test MD Smoke" \
  --content "# Hello" \
  --doc-format markdown \
  --as user \
  --format json

Actual output (document created empty / body write degraded with 5000000):

{
  "ok": true,
  "identity": "user",
  "data": {
    "document": {
      "revision_id": 2
    },
    "warnings": [
      "degrade_code=5000000,msg=Document operation failed: Document engine internal error. Retry later; if the error persists, contact the document platform for investigation"
    ]
  }
}
Case 3: Minimal docs +update --command overwrite
lark-cli docs +update \
  --doc "<doc_token>" \
  --command overwrite \
  --content "<title>Test</title><p>Hello world</p>" \
  --as user \
  --format json

Also fails with result: "failed" and warnings: ["degrade_code=5000000,msg=Document operation failed: Document engine internal error..."].

Additional Log IDs

  • 20261126150512F62D5A3A4C094D7EAE00 (method_id=7624117956138666945)
  • 202611261507371F80A81BDB003074F9A7 (method_id=7624117956138666945)
  • 2026112615145592400799E595EDEECE86 (method_id=7624117956138666945)

What Still Works (Control Checks)

  • lark-cli docs +script --command parse succeeds (assessment.status: "passed").
  • lark-cli docs +fetch succeeds.
  • Uploading & importing a .docx file via Drive import (job_status=0, ready=true) succeeds under the same user token.

Expected Behavior

docs +create and docs +update should create and write valid DocxXML / Markdown content without returning 5000000 / degrade_code=5000000.

主要言語
Go
スター
18.2k
フォーク
1.4k
平均マージ
1日 3時間
マージ済み PR(30日)
18

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

larksuite/cli のほかの issue

larksuite/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。