dify icon indicating copy to clipboard operation
dify copied to clipboard

DuckDuckGo Search returns "subsection not found"

Open yhpku opened this issue 1 year ago • 2 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

✔️ Expected Behavior

Using DuckDuckGo to retrieve latest information about dify and output results.

❌ Actual Behavior

DuckDuckGo get nothing and return error.

yhpku avatar Feb 10 '25 03:02 yhpku

Hello, @yhpku! I'm here to help you with any bugs, questions, or contributions you may have. Let's tackle this issue together!

I found a similar closed issue regarding the DuckDuckGo search not working. The issue was resolved by a pull request that fixed the problem [1].

For your specific case with Dify version 0.15.3, the "subsection not found" error can be resolved by installing a compatible version of the DuckDuckGo search package. You should install duckduckgo-search version 7.2.1. Here are the steps to fix the error:

  1. Access the Docker container:
    docker exec -it docker-api-1 /bin/bash
    
  2. Navigate to the Python packages directory:
    cd /app/api/.venv/lib/python3.12/site-packages
    
  3. Install duckduckgo-search version 7.2.1:
    pip install duckduckgo-search==7.2.1
    
  4. Restart the docker-api-1 container.

This should address the error by ensuring compatibility with the DuckDuckGo search package [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

dosubot[bot] avatar Feb 10 '25 03:02 dosubot[bot]

same problem

lackoxy avatar Feb 14 '25 02:02 lackoxy