mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Dify does not work with SearXNG version 0.0.3 #186
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 @JasonBeiJing on GitHub (Apr 9, 2025).
Originally assigned to: @crazywoola on GitHub.
Self Checks
Dify version
1.1.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
The Dify Tool Marketplace has released a new version 0.0.3 of SearXNG. After installing this version, authorization fails with the following error message:
{
"code": "invalid_param",
"message": "PluginInvokeError: {"args":{},"error_type":"ToolProviderCredentialValidationError","message":"Error 400: {"error": "Invalid value \"all\" for parameter time_range"}"}",
"status": 400
}
The same URL works fine in SearXNG version 0.0.2.
please check, thank
✔️ Expected Behavior
same url, it should work in version 0.0.3
❌ Actual Behavior
error occured
@dosubot[bot] commented on GitHub (Apr 9, 2025):
你好 @JasonBeiJing!我是一个可以帮助你解决bug、回答问题并成为贡献者的机器人。很高兴为你提供帮助,同时等待人类维护者的回复。
The error you're encountering indicates that the
time_rangeparameter is not being accepted in SearXNG version 0.0.3, whereas it worked in version 0.0.2. This suggests that there might have been changes in the waytime_rangeis handled or validated in the new version of SearXNG.To address this issue, you can:
Check the SearXNG Documentation: Look for any changes in the documentation of SearXNG version 0.0.3 that might explain the new expected format or valid values for the
time_rangeparameter.Review the Dify Integration: Ensure that the Dify integration with SearXNG is updated to accommodate any changes in the parameter requirements. This might involve modifying how the
time_rangeparameter is set or validated within Dify.Validate Parameter Values: Verify that the value being passed to
time_rangeis valid according to the new version's requirements. If "all" is no longer a valid value, you may need to adjust it to a supported value.If these steps do not resolve the issue, further investigation into the specific changes in SearXNG version 0.0.3 might be necessary to understand how to adapt the integration.
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
@crazywoola commented on GitHub (Apr 9, 2025):
From the api documentation, this can be resolved by selecting a value. https://docs.searxng.org/dev/search_api.html.
Can you take a look at this @AGIMaster