mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Using the Tongyi Qianwen 0.0.21 version plugin, the agent calls the method with an error message [Extra data: line 1 column 5 (char 4)] #261
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 @ZionCheung on GitHub (May 7, 2025).
Self Checks
Dify version
1.3.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When I need to call a method in an agent application, this error occurs. The method is customized and published through the DIY workflow application. I have tried customizing the tool and encountered the same error. The plugin version for Tongyi Qianwen is 0.0.21.
When I changed the version of the Tongyi Qianwen plugin to 0.0.18, this problem no longer exists, but I cannot be a Tongyi 3 related model.
Error message: Extra data: line 1 column 5 (char 4)
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@ZionCheung commented on GitHub (May 7, 2025):
@dosubot[bot] commented on GitHub (May 7, 2025):
I found a similar open issue titled "Breaking Error in New Tongyi Plugin 0.0.21: 'Extra data: line 1 column 20 (char 19)' When Calling Tools" which might be related to the error you're experiencing. This issue has no comments or references, but a closed issue suggested the following solutions:
Check JSON Structure: Ensure that the JSON data being processed is correctly formatted. The error message "Extra data" often indicates that there is unexpected data after a valid JSON object or array.
Debug Mode: Enable debug mode by setting
DEBUG=trueandFLASK_DEBUG=truein your environment variables to get more detailed error logs. This can help identify the source of the JSON parsing errors.Environment Variables: If you have configured HTTP_PROXY, ensure that the NO_PROXY environment variable is set with the necessary values to maintain proper communication between Docker containers.
JSON Schema: Use JSON Schema to ensure that the LLM outputs adhere to defined data structures. This can help in maintaining consistency and accuracy in the data processed by the platform [1].
These steps might help you resolve the issue with the Tongyi Qianwen plugin version 0.0.21.
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
@kiym6 commented on GitHub (May 7, 2025):
I have the same problem
@ZionCheung commented on GitHub (Nov 7, 2025):
????????(??)??????????????????????????????????????????????????????????? !?????????????????????:http://ulaej.cn