tongyi plugin: Error in stream reponse for plugin #615

Closed
opened 2026-02-16 10:19:55 -05:00 by yindo · 2 comments
Owner

Originally created by @itning on GitHub (Sep 3, 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

1.8.1

Plugin version

0.0.44

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image Image

✔️ Error log

plugin_daemon-1  | [GIN] 2025/09/03 - 15:38:55 | 200 |    32.58038ms |      172.21.0.9 | GET      "/plugin/9df0f4a1-e432-4bf9-a89b-172b2ca380d1/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/09/03 - 15:38:55 | 200 |    4.875041ms |      172.21.0.9 | POST     "/plugin/9df0f4a1-e432-4bf9-a89b-172b2ca380d1/dispatch/model/schema"
plugin_daemon-1  | [GIN] 2025/09/03 - 15:38:56 | 200 |    4.186759ms |      172.21.0.9 | POST     "/plugin/9df0f4a1-e432-4bf9-a89b-172b2ca380d1/dispatch/llm/invoke"
api-1            | 2025-09-03 15:38:56.193 ERROR [Thread-54 (_generate_worker)] [base.py:211] - Error in stream reponse for plugin {'code': -500, 'message': '{"message":"{\\"args\\":{\\"description\\":\\"[models] Error: \'description\'\\"},\\"error_type\\":\\"InvokeError\\",\\"message\\":\\"[models] Error: \'description\'\\"}","error_type":"PluginInvokeError","args":null}', 'data': None}
nginx-1          | 172.21.0.1 - - [03/Sep/2025:15:38:56 +0000] "POST /console/api/apps/2a00fec5-842d-440c-bd20-7351813b6763/chat-messages HTTP/1.1" 200 423 "https://dify.itning.cn/app/2a00fec5-842d-440c-bd20-7351813b6763/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36" "192.168.10.171"

Originally created by @itning on GitHub (Sep 3, 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 1.8.1 ### Plugin version 0.0.44 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="739" height="283" alt="Image" src="https://github.com/user-attachments/assets/ea4a4c21-d0fb-431b-b02d-3b9d78fb5eb5" /> <img width="1098" height="484" alt="Image" src="https://github.com/user-attachments/assets/4ae0bc93-3b70-4f90-9207-d418654969b9" /> ### ✔️ Error log ``` plugin_daemon-1 | [GIN] 2025/09/03 - 15:38:55 | 200 | 32.58038ms | 172.21.0.9 | GET "/plugin/9df0f4a1-e432-4bf9-a89b-172b2ca380d1/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/09/03 - 15:38:55 | 200 | 4.875041ms | 172.21.0.9 | POST "/plugin/9df0f4a1-e432-4bf9-a89b-172b2ca380d1/dispatch/model/schema" plugin_daemon-1 | [GIN] 2025/09/03 - 15:38:56 | 200 | 4.186759ms | 172.21.0.9 | POST "/plugin/9df0f4a1-e432-4bf9-a89b-172b2ca380d1/dispatch/llm/invoke" api-1 | 2025-09-03 15:38:56.193 ERROR [Thread-54 (_generate_worker)] [base.py:211] - Error in stream reponse for plugin {'code': -500, 'message': '{"message":"{\\"args\\":{\\"description\\":\\"[models] Error: \'description\'\\"},\\"error_type\\":\\"InvokeError\\",\\"message\\":\\"[models] Error: \'description\'\\"}","error_type":"PluginInvokeError","args":null}', 'data': None} nginx-1 | 172.21.0.1 - - [03/Sep/2025:15:38:56 +0000] "POST /console/api/apps/2a00fec5-842d-440c-bd20-7351813b6763/chat-messages HTTP/1.1" 200 423 "https://dify.itning.cn/app/2a00fec5-842d-440c-bd20-7351813b6763/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36" "192.168.10.171" ```
yindo added the bug label 2026-02-16 10:19:55 -05:00
yindo closed this issue 2026-02-16 10:19:55 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 3, 2025):

This error happens because the Tongyi plugin expects a description field in each property when running in function calling mode, but the MCP server doesn't provide it. This leads to a PluginInvokeError during model invocation. It's a compatibility issue specific to the Tongyi plugin—other plugins like OpenAI API work fine with MCP in the same setup.

You can avoid the error by switching the agent strategy from function calling to ReAct mode, which users have confirmed works. Alternatively, if you need to use Tongyi in function calling mode, make sure all required configuration fields, especially description, are present in your model config. If that's not possible, using the OpenAI API plugin instead is a reliable workaround. More details and user experiences are discussed here and here.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Sep 3, 2025): <!-- Answer --> This error happens because the Tongyi plugin expects a `description` field in each property when running in function calling mode, but the MCP server doesn't provide it. This leads to a `PluginInvokeError` during model invocation. It's a compatibility issue specific to the Tongyi plugin—other plugins like OpenAI API work fine with MCP in the same setup. You can avoid the error by switching the agent strategy from function calling to ReAct mode, which users have confirmed works. Alternatively, if you need to use Tongyi in function calling mode, make sure all required configuration fields, especially `description`, are present in your model config. If that's not possible, using the OpenAI API plugin instead is a reliable workaround. More details and user experiences are discussed [here](https://github.com/langgenius/dify/issues/20946) and [here](https://github.com/langgenius/dify/discussions/23923). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1644)
Author
Owner

@itning commented on GitHub (Sep 3, 2025):

This error happens because the Tongyi plugin expects a description field in each property when running in function calling mode, but the MCP server doesn't provide it. This leads to a PluginInvokeError during model invocation. It's a compatibility issue specific to the Tongyi plugin—other plugins like OpenAI API work fine with MCP in the same setup.

You can avoid the error by switching the agent strategy from function calling to ReAct mode, which users have confirmed works. Alternatively, if you need to use Tongyi in function calling mode, make sure all required configuration fields, especially description, are present in your model config. If that's not possible, using the OpenAI API plugin instead is a reliable workaround. More details and user experiences are discussed here and here.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosu Is this a new restriction? My last version still works normally.

@itning commented on GitHub (Sep 3, 2025): > <!-- Answer --> > This error happens because the Tongyi plugin expects a `description` field in each property when running in function calling mode, but the MCP server doesn't provide it. This leads to a `PluginInvokeError` during model invocation. It's a compatibility issue specific to the Tongyi plugin—other plugins like OpenAI API work fine with MCP in the same setup. > > You can avoid the error by switching the agent strategy from function calling to ReAct mode, which users have confirmed works. Alternatively, if you need to use Tongyi in function calling mode, make sure all required configuration fields, especially `description`, are present in your model config. If that's not possible, using the OpenAI API plugin instead is a reliable workaround. More details and user experiences are discussed [here](https://github.com/langgenius/dify/issues/20946) and [here](https://github.com/langgenius/dify/discussions/23923). > > > <!-- Dosu Comment Footer --> > *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* > > --- > <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/6fd53981-dcc2-4bdc-ba87-13be05d6c368?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1644) @dosu Is this a new restriction? My last version still works normally.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#615