browser-search icon indicating copy to clipboard operation
browser-search copied to clipboard

Document required SearXNG settings (JSON format, use_default_settings) and hint on HTTP 403

Open Johell1NS opened this issue 1 month ago • 1 comments

A default SearXNG install (official Docker setup) has JSON output disabled (search.formats: [html]). The skill's scripts need JSON, so a new user gets HTTP 403 from searxng.mjs and nothing in the docs explains why.

Changes

  • README (and all 11 translations): new "SearXNG configuration (required)" section with a minimal settings.yml (use_default_settings: true, search.formats: [html, json], limiter: false, secret key). use_default_settings keeps engines and defaults aligned with upstream on every SearXNG update, instead of a full copy of the defaults that goes stale (removed engines then log errors at startup and new engines never arrive). It also notes that Valkey/Redis is not needed (only used by the limiter) and that SEARXNG_URL can point to another address.
  • searxng.mjs: an HTTP 403 now explains that JSON output is probably disabled and how to enable it; error bodies are truncated to 500 characters instead of dumping a whole HTML page; a non-JSON or truncated response is reported as a JSON error instead of crashing.
  • check.sh: warns when SearXNG answers 403 on format=json, instead of the generic "API not responding".

Related to #31.

Johell1NS avatar Oct 21 '26 11:10 Johell1NS

Released in v3.2.0.

Johell1NS avatar Oct 21 '26 12:10 Johell1NS