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

Closed
opened 2026-02-16 10:18:38 -05:00 by yindo · 4 comments
Owner

Originally created by @ZionCheung on GitHub (May 7, 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 search for existing issues, 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

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

Originally created by @ZionCheung on GitHub (May 7, 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 [search for existing issues](https://github.com/langgenius/dify/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 1.3.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <!-- Failed to upload "image.png" --> 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_
yindo closed this issue 2026-02-16 10:18:38 -05:00
Author
Owner

@ZionCheung commented on GitHub (May 7, 2025):

Image Error screenshot
@ZionCheung commented on GitHub (May 7, 2025): <img width="1297" alt="Image" src="https://github.com/user-attachments/assets/f4d3adb5-e80b-4900-8806-2973bb58c406" /> Error screenshot
Author
Owner

@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:

  1. 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.

  2. Debug Mode: Enable debug mode by setting DEBUG=true and FLASK_DEBUG=true in your environment variables to get more detailed error logs. This can help identify the source of the JSON parsing errors.

  3. 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.

  4. 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

@dosubot[bot] commented on GitHub (May 7, 2025): <!-- Answer --> 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](https://github.com/langgenius/dify-official-plugins/issues/861)" 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: 1. **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. 2. **Debug Mode**: Enable debug mode by setting `DEBUG=true` and `FLASK_DEBUG=true` in your environment variables to get more detailed error logs. This can help identify the source of the JSON parsing errors. 3. **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. 4. **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 <sup>[[1]](https://github.com/langgenius/dify-official-plugins/issues/861)</sup>. These steps might help you resolve the issue with the Tongyi Qianwen plugin version 0.0.21. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/7215c3b9-26d6-441e-8d4d-48d27450be8b?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/7215c3b9-26d6-441e-8d4d-48d27450be8b?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/7215c3b9-26d6-441e-8d4d-48d27450be8b?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/7215c3b9-26d6-441e-8d4d-48d27450be8b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/7215c3b9-26d6-441e-8d4d-48d27450be8b?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/7215c3b9-26d6-441e-8d4d-48d27450be8b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/7215c3b9-26d6-441e-8d4d-48d27450be8b?feedback_type=other)</sup>
Author
Owner

@kiym6 commented on GitHub (May 7, 2025):

I have the same problem

@kiym6 commented on GitHub (May 7, 2025): I have the same problem
Author
Owner

@ZionCheung commented on GitHub (Nov 7, 2025):

????????(??)??????????????????????????????????????????????????????????? !?????????????????????:http://ulaej.cn

@ZionCheung commented on GitHub (Nov 7, 2025): ????????(??)??????????????????????????????????????????????????????????? !?????????????????????:http://ulaej.cn
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#261