[Bug] docs +create / docs +update consistently fail with code 5000000 (Document engine internal error) on v1.0.100
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 47/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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, Build26B131) - Identity tested: Freshly re-authenticated
user(lark-cli auth login --domain docs,drive) andbot - Scopes granted: Full
docs,drivedomain 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 parsesucceeds (assessment.status: "passed").lark-cli docs +fetchsucceeds.- Uploading & importing a
.docxfile 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.
- Ngôn ngữ chính
- Go
- Star
- 18.2k
- Fork
- 1.4k
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 18
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của larksuite/cli
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
domain/im
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug domain/doc
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
mail: all-ASCII draft bodies are hard-wrapped every 998 bytes, inserting newlines inside words and tagsCó thể đã có người làm @linye157 đã nhận 26 ngày trước. Đang mởdomain/mail
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
auth: a 429 from the Token Endpoint during refresh deletes a still-valid loginCó thể đã có người làm @linye157 đã nhận 26 ngày trước. Đang mởbug domain/auth domain/im
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
larksuite/cli#2869 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của larksuite/cli
Issue tương tự
-
Add Alice&BotĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
【文章自荐】本地 LLM 实测:GPU 推理速度与测量条件Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
eryajf/learning-weekly#235 ·
-
test_archive_is_downloaded_after_logout_login doesn't wait for the storage client after loginĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
github/github-mcp-server#3960 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày