mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Failed to transform tool message: PluginInvokeError: {"error_type":"unmarshal_error","message":"unmarshal json failed: Key: 'ToolResponseChunk.Type' Error:Field validation for 'Type' failed on the 'required' tag"} #161
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hades-plus-github on GitHub (Mar 31, 2025).
Self Checks
Dify version
1.00
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Failed to transform tool message: PluginInvokeError: {"error_type":"unmarshal_error","message":"unmarshal json failed: Key: 'ToolResponseChunk.Type' Error:Field validation for 'Type' failed on the 'required' tag"}
I get an error after running a custom tool. What does this error mean?
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Mar 31, 2025):
Hey there, @hades-plus-github! 👋 I'm here to assist you with bug fixes, answer your questions, and even help you become a contributor. While you're waiting for a human maintainer, feel free to ask me anything!
There is a similar unsolved discussion regarding the error you're encountering: Failed to transform tool message: PluginInvokeError: {"error_type":"unmarshal_error","message":"unmarshal json failed: Key: 'ToolResponseChunk.Type' Error:Field validation for 'Type' failed on the 'required' tag"} [1].
The error message indicates that there is a problem with the JSON unmarshalling process, specifically related to the 'Type' field in the 'ToolResponseChunk' structure. This field is required, and the error suggests that it might be missing or incorrectly formatted in the JSON data being processed.
A common cause of 'unmarshal_error' in the Dify codebase is a data type mismatch issue. This has been noted in previous issues, particularly when using certain embeddings. It is recommended to ensure that your Dify installation and any related plugins are up to date, as updates may have addressed similar issues [2][3][4][5].
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@hades-plus-github commented on GitHub (Apr 1, 2025):
It's ok