PluginInvokeError #704

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

Originally created by @luoMonkeyKing on GitHub (Oct 11, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When I use the knowledge base to search, I get the following error

Image

api logs:

ERROR [GraphWorker-1] [base.py:211] - Error in stream reponse for plugin {'code': -500, 'message': '{"message":"{\\"args\\":{\\"description\\":\\"[models] Error: Client error \'400 Bad Request\' for url \'https://api.siliconflow.cn/v1/rerank\'\\\\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400\\"},\\"error_type\\":\\"InvokeError\\",\\"message\\":\\"[models] Error: Client error \'400 Bad Request\' for url \'https://api.siliconflow.cn/v1/rerank\'\\\\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400\\"}","error_type":"PluginInvokeError","args":null}', 'data': None}
2025-10-11 10:32:33.750 ERROR [GraphDispatcher] [error_handler.py:101] - Node 1760170605661 failed with ABORT strategy: [siliconflow] Error: req_id: 7983c96287 PluginInvokeError: {"args":{"description":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"},"error_type":"InvokeError","message":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"}
2025-10-11 10:32:33.852 ERROR [GraphDispatcher] [error_handler.py:101] - Node 1760005340410 failed with ABORT strategy: [siliconflow] Error: req_id: 7983c96287 PluginInvokeError: {"args":{"description":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"},"error_type":"InvokeError","message":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"}
2025-10-11 10:32:34.053 ERROR [Thread-99 (_generate_worker)] [workflow_entry.py:110] - Unknown Error when workflow entry running
Traceback (most recent call last):
  File "/app/api/core/workflow/workflow_entry.py", line 106, in run
    yield from generator
  File "/app/api/core/workflow/graph_engine/graph_engine.py", line 262, in run
    raise self._graph_execution.error
RuntimeError: [siliconflow] Error: req_id: 7983c96287 PluginInvokeError: {"args":{"description":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"},"error_type":"InvokeError","message":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"}
Image

✔️ Expected Behavior

The knowledge base is in normal use

Actual Behavior

No response

Originally created by @luoMonkeyKing on GitHub (Oct 11, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.9.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When I use the knowledge base to search, I get the following error <img width="846" height="566" alt="Image" src="https://github.com/user-attachments/assets/c445a9ba-13ff-4494-acea-634f2599797e" /> api logs: ``` ERROR [GraphWorker-1] [base.py:211] - Error in stream reponse for plugin {'code': -500, 'message': '{"message":"{\\"args\\":{\\"description\\":\\"[models] Error: Client error \'400 Bad Request\' for url \'https://api.siliconflow.cn/v1/rerank\'\\\\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400\\"},\\"error_type\\":\\"InvokeError\\",\\"message\\":\\"[models] Error: Client error \'400 Bad Request\' for url \'https://api.siliconflow.cn/v1/rerank\'\\\\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400\\"}","error_type":"PluginInvokeError","args":null}', 'data': None} 2025-10-11 10:32:33.750 ERROR [GraphDispatcher] [error_handler.py:101] - Node 1760170605661 failed with ABORT strategy: [siliconflow] Error: req_id: 7983c96287 PluginInvokeError: {"args":{"description":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"},"error_type":"InvokeError","message":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"} 2025-10-11 10:32:33.852 ERROR [GraphDispatcher] [error_handler.py:101] - Node 1760005340410 failed with ABORT strategy: [siliconflow] Error: req_id: 7983c96287 PluginInvokeError: {"args":{"description":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"},"error_type":"InvokeError","message":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"} 2025-10-11 10:32:34.053 ERROR [Thread-99 (_generate_worker)] [workflow_entry.py:110] - Unknown Error when workflow entry running Traceback (most recent call last): File "/app/api/core/workflow/workflow_entry.py", line 106, in run yield from generator File "/app/api/core/workflow/graph_engine/graph_engine.py", line 262, in run raise self._graph_execution.error RuntimeError: [siliconflow] Error: req_id: 7983c96287 PluginInvokeError: {"args":{"description":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"},"error_type":"InvokeError","message":"[models] Error: Client error '400 Bad Request' for url 'https://api.siliconflow.cn/v1/rerank'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"} ``` <img width="706" height="436" alt="Image" src="https://github.com/user-attachments/assets/c511fb5f-e249-47d0-b46d-35d61abda4e0" /> ### ✔️ Expected Behavior The knowledge base is in normal use ### ❌ Actual Behavior _No response_
yindo added the bug label 2026-02-16 10:20:14 -05:00
yindo closed this issue 2026-02-16 10:20:14 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 11, 2025):

The 400 Bad Request PluginInvokeError from the Siliconflow rerank API is likely caused by a mismatch or missing parameters in the request payload. Recent changes in Dify's knowledge base workflow updated how reranking configuration is handled, including renaming the hybridSearchMode parameter to reranking_mode and adding stricter validation for reranking model and provider names when reranking is enabled. If your configuration is missing these fields or uses outdated parameter names, the Siliconflow API may reject the request with a 400 error.

To resolve this, double-check that your knowledge base node configuration includes the correct reranking_mode, reranking_model, and provider/model names as required by the latest Dify version. If possible, enable debug logging to inspect the outgoing payload and ensure it matches the Siliconflow API's expectations. If you are running an older version, consider updating to the latest release, as recent fixes address related issues with retrieval and reranking configuration (see PR langgenius/dify#26380, see PR langgenius/dify#25789).

To reply, just mention @dosu.


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

@dosubot[bot] commented on GitHub (Oct 11, 2025): <!-- Answer --> The 400 Bad Request PluginInvokeError from the Siliconflow rerank API is likely caused by a mismatch or missing parameters in the request payload. Recent changes in Dify's knowledge base workflow updated how reranking configuration is handled, including renaming the `hybridSearchMode` parameter to `reranking_mode` and adding stricter validation for reranking model and provider names when reranking is enabled. If your configuration is missing these fields or uses outdated parameter names, the Siliconflow API may reject the request with a 400 error. To resolve this, double-check that your knowledge base node configuration includes the correct `reranking_mode`, `reranking_model`, and provider/model names as required by the latest Dify version. If possible, enable debug logging to inspect the outgoing payload and ensure it matches the Siliconflow API's expectations. If you are running an older version, consider updating to the latest release, as recent fixes address related issues with retrieval and reranking configuration ([see PR langgenius/dify#26380](https://github.com/langgenius/dify/pull/26380), [see PR langgenius/dify#25789](https://github.com/langgenius/dify/pull/25789)). <!-- 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/d70c7d90-d45c-48f4-a7cb-cb409c1fb4fa?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d70c7d90-d45c-48f4-a7cb-cb409c1fb4fa?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d70c7d90-d45c-48f4-a7cb-cb409c1fb4fa?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d70c7d90-d45c-48f4-a7cb-cb409c1fb4fa?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d70c7d90-d45c-48f4-a7cb-cb409c1fb4fa?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/d70c7d90-d45c-48f4-a7cb-cb409c1fb4fa?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d70c7d90-d45c-48f4-a7cb-cb409c1fb4fa?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&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/issues/26776)
Author
Owner

@dosubot[bot] commented on GitHub (Oct 11, 2025):

The 400 Bad Request (PluginInvokeError) from the siliconflow.cn rerank API is likely caused by a malformed or incomplete request payload, often due to missing or misconfigured reranking model settings in your knowledge base configuration. Recent updates require that when reranking is enabled, you must specify both the reranking provider name and model name. If these fields are missing, the request sent to the siliconflow API will be invalid and trigger this error. Double-check your knowledge base node settings to ensure all required reranking fields are filled out, especially after recent changes that renamed configuration properties (e.g., from hybridSearchMode to reranking_mode) and added stricter validation for reranking models. Misalignment between your configuration and these requirements is a common cause of this error.

For more details, see the relevant code and configuration changes:

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 (Oct 11, 2025): <!-- Answer --> The 400 Bad Request (PluginInvokeError) from the siliconflow.cn rerank API is likely caused by a malformed or incomplete request payload, often due to missing or misconfigured reranking model settings in your knowledge base configuration. Recent updates require that when reranking is enabled, you must specify both the reranking provider name and model name. If these fields are missing, the request sent to the siliconflow API will be invalid and trigger this error. Double-check your knowledge base node settings to ensure all required reranking fields are filled out, especially after recent changes that renamed configuration properties (e.g., from `hybridSearchMode` to `reranking_mode`) and added stricter validation for reranking models. Misalignment between your configuration and these requirements is a common cause of this error. For more details, see the relevant code and configuration changes: - [Knowledge base node validation for reranking model](https://github.com/langgenius/dify/pull/26380) - [Property renaming and reranking config changes](https://github.com/langgenius/dify/pull/25789) <!-- 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/3956d42b-3173-45c7-95e5-5a4be102a122?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/3956d42b-3173-45c7-95e5-5a4be102a122?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/3956d42b-3173-45c7-95e5-5a4be102a122?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/3956d42b-3173-45c7-95e5-5a4be102a122?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3956d42b-3173-45c7-95e5-5a4be102a122?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/3956d42b-3173-45c7-95e5-5a4be102a122?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3956d42b-3173-45c7-95e5-5a4be102a122?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/1835)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#704