Why is the Searxng tool not working? It is possible in 0.15.3, but it cannot be used in 1.1.3 #195

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

Originally created by @lichao4Java on GitHub (Apr 13, 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.1.13

Plugin version

0.0.4

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

请求
{"searxng_search": {"query": "今日最新新闻 今天发生了什么"}}
响应
{"searxng_search": "tool invoke error: PluginInvokeError: {"args":{},"error_type":"Exception","message":"Error 403: \u003c!doctype html\u003e\n\u003chtml lang=en\u003e\n\u003ctitle\u003e403 Forbidden\u003c/title\u003e\n\u003ch1\u003eForbidden\u003c/h1\u003e\n\u003cp\u003eYou don\u0026#39;t have the permission to access the requested resource. It is either read-protected or not readable by the server.\u003c/p\u003e\n"}"}

PluginInvokeError .... what happend?

i always use self host searxng_search , when i upgrade 1.1.3 then it dot not work now ?

I also tried the plugin by following the steps and restarting searxng_dearch, but the result was the same error
https://marketplace.dify.ai/plugins/langgenius/searxng

✔️ Error log

{"searxng_search": "tool invoke error: PluginInvokeError: {"args":{},"error_type":"Exception","message":"Error 403: \u003c!doctype html\u003e\n\u003chtml lang=en\u003e\n\u003ctitle\u003e403 Forbidden\u003c/title\u003e\n\u003ch1\u003eForbidden\u003c/h1\u003e\n\u003cp\u003eYou don\u0026#39;t have the permission to access the requested resource. It is either read-protected or not readable by the server.\u003c/p\u003e\n"}"}

Originally created by @lichao4Java on GitHub (Apr 13, 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.1.13 ### Plugin version 0.0.4 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/7175aea3-386d-450b-80af-ebf2b2eeb0d1) 请求 {"searxng_search": {"query": "今日最新新闻 今天发生了什么"}} 响应 {"searxng_search": "tool invoke error: PluginInvokeError: {"args":{},"error_type":"Exception","message":"Error 403: \u003c!doctype html\u003e\n\u003chtml lang=en\u003e\n\u003ctitle\u003e403 Forbidden\u003c/title\u003e\n\u003ch1\u003eForbidden\u003c/h1\u003e\n\u003cp\u003eYou don\u0026#39;t have the permission to access the requested resource. It is either read-protected or not readable by the server.\u003c/p\u003e\n"}"} PluginInvokeError .... what happend? i always use self host searxng_search , when i upgrade 1.1.3 then it dot not work now ? I also tried the plugin by following the steps and restarting searxng_dearch, but the result was the same error https://marketplace.dify.ai/plugins/langgenius/searxng ### ✔️ Error log {"searxng_search": "tool invoke error: PluginInvokeError: {"args":{},"error_type":"Exception","message":"Error 403: \u003c!doctype html\u003e\n\u003chtml lang=en\u003e\n\u003ctitle\u003e403 Forbidden\u003c/title\u003e\n\u003ch1\u003eForbidden\u003c/h1\u003e\n\u003cp\u003eYou don\u0026#39;t have the permission to access the requested resource. It is either read-protected or not readable by the server.\u003c/p\u003e\n"}"}
yindo added the bug label 2026-02-16 10:18:24 -05:00
yindo closed this issue 2026-02-16 10:18:24 -05:00
Author
Owner

@liguochuan00 commented on GitHub (Apr 13, 2025):

This is a very serious problem, please fix it as soon as possible.

@liguochuan00 commented on GitHub (Apr 13, 2025): This is a very serious problem, please fix it as soon as possible.
Author
Owner

@quchenchen commented on GitHub (Apr 14, 2025):

dify 1.2.0 the same problem.

@quchenchen commented on GitHub (Apr 14, 2025): dify 1.2.0 the same problem.
Author
Owner

@caiyuanhangDicp commented on GitHub (Apr 15, 2025):

dify 1.2.0 the same problem.
SearXNG 0.0.4

@caiyuanhangDicp commented on GitHub (Apr 15, 2025): dify 1.2.0 the same problem. SearXNG 0.0.4
Author
Owner

@jiandanfeng commented on GitHub (Apr 18, 2025):

dify 1.2.0 no problem.
Could it be dify-plugin_daemon or dify-sandbox has not been upgraded?

Image

@jiandanfeng commented on GitHub (Apr 18, 2025): dify 1.2.0 no problem. Could it be dify-plugin_daemon or dify-sandbox has not been upgraded? ![Image](https://github.com/user-attachments/assets/85a3912e-dd02-4c31-915f-f96311f9a593)
Author
Owner

@hjlarry commented on GitHub (Apr 23, 2025):

This error might be caused by an incorrect setting of the searXNG json format. To check this, open your searXNG URL and add the parameter &format=json, if it not works, modify the setting of searXNG

@hjlarry commented on GitHub (Apr 23, 2025): This error might be caused by an incorrect setting of the searXNG `json` format. To check this, open your searXNG URL and add the parameter `&format=json`, if it not works, modify the setting of searXNG
Author
Owner

@dosubot[bot] commented on GitHub (Aug 20, 2025):

Hi, @lichao4Java. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported that the Searxng plugin worked in Dify 0.15.3 but returns a 403 Forbidden error after upgrading to 1.1.13, indicating a permission issue with your self-hosted Searxng server.
  • Other users (liguochuan00, quchenchen, caiyuanhangDicp) have confirmed the problem persists in Dify 1.2.0.
  • Suggestions include verifying that related components like dify-plugin_daemon or dify-sandbox were upgraded properly.
  • Another recommendation is to check if the SearxNG URL supports the &format=json parameter, as an incorrect JSON format setting might cause the error.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here to keep the discussion open.
  • If I do not hear back within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 20, 2025): Hi, @lichao4Java. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported that the Searxng plugin worked in Dify 0.15.3 but returns a 403 Forbidden error after upgrading to 1.1.13, indicating a permission issue with your self-hosted Searxng server. - Other users (liguochuan00, quchenchen, caiyuanhangDicp) have confirmed the problem persists in Dify 1.2.0. - Suggestions include verifying that related components like dify-plugin_daemon or dify-sandbox were upgraded properly. - Another recommendation is to check if the SearxNG URL supports the `&format=json` parameter, as an incorrect JSON format setting might cause the error. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here to keep the discussion open. - If I do not hear back within 5 days, I will automatically close this issue. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#195