Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: yacy images engine #3671

Open
Dalethium opened this issue Jul 23, 2024 · 2 comments
Open

Bug: yacy images engine #3671

Dalethium opened this issue Jul 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Dalethium
Copy link

Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG
Repository: https://github.com/searxng/searxng
Branch: master
Version: 2024.7.20 657dcb973

How did you install SearXNG?

docker

What happened?

Using the !yai Start string with the yacy back-end setup only returns page 1. Page 2 does not work.

How To Reproduce

Go to page two of any Yacy image search.

Expected behavior

Page 2 shows Instead of a parsing error.

Technical report

Error

  • Error: json.decoder.JSONDecodeError
  • Percentage: 50
  • Parameters: ('Expecting value',)
  • File name: searx/engines/yacy.py:152
  • Function: response
  • Code: raw_search_results = loads(resp.text)
@Dalethium Dalethium added the bug Something isn't working label Jul 23, 2024
@return42
Copy link
Member

I often have timeout issues, but I can't reproduce a json.decoder.JSONDecodeError with the default settings:

searxng/searx/settings.yml

Lines 2137 to 2163 in 319afe0

- name: yacy
# https://docs.searxng.org/dev/engines/online/yacy.html
engine: yacy
categories: general
search_type: text
base_url:
- https://yacy.searchlab.eu
# see https://github.com/searxng/searxng/pull/3631#issuecomment-2240903027
# - https://search.kyun.li
# - https://yacy.securecomcorp.eu
# - https://yacy.myserv.ca
# - https://yacy.nsupdate.info
# - https://yacy.electroncash.de
shortcut: ya
disabled: true
# if you aren't using HTTPS for your local yacy instance disable https
# enable_http: false
search_mode: 'global'
# timeout can be reduced in 'local' search mode
timeout: 5.0
- name: yacy images
engine: yacy
categories: images
search_type: image
shortcut: yai
disabled: true

I suppose decode error is related to one of your base_url .. whats your setup?

@Dalethium
Copy link
Author

Dalethium commented Aug 16, 2024

  proxies:
    all://:
      - socks5://redacted:9118
    http://yacy:8090/:
      - ""
  extra_proxy_timeout: 3

engines:
  - name: yacy
    base_url: http://yacy:8090
    disabled: false
    timeout: 30.0
    enable_http: true
  - name: yacy images
    base_url: http://yacy:8090
    disabled: false
    timeout: 30.0
    enable_http: true

So my yacy node is hosted locally, which is why I disabled the proxy for that. I will note that so far I've only noticed this when using the !yai Search usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants