Skip to content

Feishu error 200340 persists in v0.15.2 - PR #10256 needs merge #38305

@kjsolo

Description

@kjsolo

Summary

The Feishu error 200340 when clicking command approval buttons still occurs in the latest release v0.15.2. PR #10256 provides the correct fix but remains unmerged.

Current Status

Evidence

  1. Code inspection shows gateway/platforms/feishu.py line 2623:

    card.data = self._build_resolved_approval_card(choice=choice, user_name=user_name)

    _build_resolved_approval_card() returns a dict, but Feishu API expects JSON string.

  2. PR fix(feishu): serialize approval callback card data to JSON string #10256 correctly fixes this with:

    card.data = json.dumps(
        self._build_resolved_approval_card(choice=choice, user_name=user_name),
        ensure_ascii=False,
    )
  3. Issue [Bug]: Feishu approval card fails to update after button click (error 200340) #10154 was closed after PR fix(feishu): resolve approval cards inline from callback path #9871 merged, but that PR only fixed async→sync callback flow, not the serialization issue.

Why This Matters

Requested Actions

  1. Merge PR fix(feishu): serialize approval callback card data to JSON string #10256 to fix the serialization issue
  2. Close duplicate issues (Feishu command approval card buttons fail with error code 200340 #10251, [Bug]: [Feishu Mobile] Command approval card returns error code:200340 on any option click despite card.action.trigger being configured #10073, [Bug]: 飞书中进行审核,出现200340错误 #8246, Feishu: Command Approval buttons return "出错了,请稍后再试 code: 220340" when clicked #13924) after merge
  3. Consider a patch release (v0.15.3) to address this recurring bug

Additional Context

Labels: type/bug, platform/feishu, P2

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existsplatform/feishuFeishu / Lark adaptertype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions