larksuite / larksuite/cli

[Base] 无法读取/修改多维表格内置「应用」的页面(/base/<base_token>?table=wbpXXXX,app-* 报 internal error code=1 / NOTEXIST)

Open
#2,724 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug domain/auth domain/base domain/core
Dominant language
Go
Stars
17.3k
Forks
1.4k
Avg merge
2d 4h
Merged PRs (30d)
105

Description

环境

  • lark-cli 1.0.95(1.0.94 同样复现;已 lark-cli update 升级 + 更新官方 skills 后仍复现)
  • 身份:--as user(本人为该多维表格创建者,用户身份 token 有效)
  • 已授权 scope:base:appmode:readbase:appmode_page:read/update/createbase:appmode_block:read/update/create

现象

用户提供的页面链接形如:

https://<domain>/base/<base_token>?table=wbpXXXXXX

?table= 参数指向多维表格内置「应用」里的一个页面(前缀 wbp,不是 tbl / vew / blk / ldx / wkf)。当前 CLI 没有任何命令能读到或改到这个页面。

复现步骤与实际返回

  1. lark-cli base +url-resolve --url 'https://<domain>/base/<base_token>?table=wbpXXXXXX'
    resource_type=bitablebase_token=<base_token>block_id=wbpXXXXXX

  2. lark-cli base +base-block-list --base-token <base_token>
    → 只返回 folder / table 类型块,不包含 wbpXXXXXX(该 ID 不在 BP 资源树里)

  3. lark-cli base +app-get --app-token <base_token>
    {"type":"api","subtype":"unknown","code":1,"message":"App OpenAPI request failed","hint":"内部错误,请稍后重试"}

  4. lark-cli base +app-page-list --app-token <base_token>
    → 同上,code 1(非 NOTEXIST)

  5. lark-cli base +app-get --app-token wbpXXXXXX / +app-page-list --app-token wbpXXXXXX
    code 91402 NOTEXIST

  6. lark-cli base +dashboard-get --base-token <base_token> --dashboard-id wbpXXXXXX
    "wbpXXXXXX" is not a valid dashboard in base "<base_token>"(确认不是仪表盘;+dashboard-list 也为空)

  7. lark-cli base +url-resolve --url 'https://<domain>/app/<base_token>'
    input_type=baseapp_urlapp_token=<base_token>(即把 base token 当作 BaseApp token)

  8. lark-cli base +workspace-entity-list --workspace-token <workspace_token>(该 base 所属 workspace)
    → 只列出该 base 以及一个无关的模板 baseapp,未列出该「应用」,因此无法从 workspace 侧拿到真实 app_token

期望

三选一即可:

  1. 提供获取「多维表格内置应用」app_token 的官方方法(文档说明),使 +app-get / +app-page-list / +app-block-* 可用;或
  2. 支持直接用 base_token 访问该内置应用的页面与组件;或
  3. 在 skill 文档中明确:/base/<base_token>?table=wbp... 这类页面当前不在 OpenAPI 支持范围内,并给出可行的替代路径(例如改做仪表盘 / 独立 BaseApp)。

影响

用户希望 Agent 优化该查询页的字段展示与样式,目前 Agent 完全无法读取或写入该页面配置,只能建议在 UI 内手工修改或另建等价页面。

备注

  • 未提供截图;上述所有 token / ID 均已用占位符隐去,不含租户与业务数据。
  • 相关但不覆盖本问题的历史条目:#1141(embedded doc token 的 internal error code=1,已关闭)、PR #2231 / #2307(BaseApp 应用模式支持)、PR #2436(document app default page reuse)。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the base +url-resolve, +app-get, +app-page-list, +app-block-*, +base-block-list, and +workspace-entity-list entry points for wbp-prefixed IDs. Determine whether the embedded application's token can be resolved or supported; done means either the page is accessible through a supported command or the skill documentation clearly states the limitation and an alternative path.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, cli
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.