lark_document failed to transform tool message #460

Closed
opened 2026-02-16 10:19:28 -05:00 by yindo · 1 comment
Owner

Originally created by @FatGhosta on GitHub (Jul 20, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

both in hosted 1.5.0 and online version 1.6.0

Plugin version

0.0.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I use the plugin of lark_document to get my lark wiki content, it must get error below:
Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for JsonMessage\njson_object\n Input should be a valid dictionary [type=dict_type, input_value='# xxxxxxxxxx。\n\n', input_type=str]\n For further information visit https://errors.pydantic.dev/2.11/v/dict_type"}

So I dig into the source code of the plugin, and find the bug (maybe):

Image

✔️ Error log

Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for JsonMessage\njson_object\n Input should be a valid dictionary [type=dict_type, input_value='# xxxxxxxxxx。\n\n', input_type=str]\n For further information visit https://errors.pydantic.dev/2.11/v/dict_type"}

Originally created by @FatGhosta on GitHub (Jul 20, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version both in hosted 1.5.0 and online version 1.6.0 ### Plugin version 0.0.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I use the plugin of lark_document to get my lark wiki content, it must get error below: Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for JsonMessage\njson_object\n Input should be a valid dictionary [type=dict_type, input_value='# xxxxxxxxxx。\\n\\n', input_type=str]\n For further information visit https://errors.pydantic.dev/2.11/v/dict_type"} So I dig into the source code of the plugin, and find the bug (maybe): <img width="1922" height="590" alt="Image" src="https://github.com/user-attachments/assets/d55817da-65de-44bf-a998-8488c2b3e328" /> ### ✔️ Error log Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for JsonMessage\njson_object\n Input should be a valid dictionary [type=dict_type, input_value='# xxxxxxxxxx。\\n\\n', input_type=str]\n For further information visit https://errors.pydantic.dev/2.11/v/dict_type"}
yindo added the bug label 2026-02-16 10:19:28 -05:00
yindo closed this issue 2026-02-16 10:19:28 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 19, 2025):

Hi, @FatGhosta. I'm Dosu (https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported a bug in the lark_document plugin for Dify versions 1.5.0 and 1.6.0 (self-hosted).
  • The issue involves tool message transformation failing due to a validation error expecting a dictionary but receiving a string.
  • You traced the problem to the plugin's source code causing JsonMessage validation to fail.
  • There have been no further comments or updates on this issue since your report.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If I do not hear back within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 19, 2025): Hi, @FatGhosta. I'm Dosu (https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. Issue Summary: - You reported a bug in the lark_document plugin for Dify versions 1.5.0 and 1.6.0 (self-hosted). - The issue involves tool message transformation failing due to a validation error expecting a dictionary but receiving a string. - You traced the problem to the plugin's source code causing JsonMessage validation to fail. - There have been no further comments or updates on this issue since your report. Next Steps: - Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If I do not hear back within 5 days, I will automatically close this issue. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#460