searxng/searxng · error · ValueError
tubearchivist engine: base_url is unset
Error message
tubearchivist engine: base_url is unset
What it means
Error "tubearchivist engine: base_url is unset" thrown in searxng/searxng.
Source
Thrown at searx/engines/tubearchivist.py:120
:menuselection:`Settings --> User --> Admin Interface`.
.. _Authorization: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization
"""
ta_link_to_mp4: bool = False
"""Optional, if true SearXNG will link directly to the mp4 of the video to play
in the browser. The default behavior is to link into TubeArchivist's interface
directly."""
def absolute_url(relative_url):
return f'{base_url.rstrip("/")}{relative_url}'
def init(_):
if not base_url:
raise ValueError('tubearchivist engine: base_url is unset')
if not ta_token:
raise ValueError('tubearchivist engine: ta_token is unset')
def request(query, params):
if not query:
return False
args = {'query': query}
params['url'] = f"{base_url.rstrip('/')}/api/search/?{urlencode(args)}"
params['headers']['Authorization'] = f'Token {ta_token}'
return params
def response(resp) -> EngineResults:
results = EngineResults()
video_response(resp, results)View on GitHub (pinned to 9fea41204f)
When it happens
Trigger: Thrown at searx/engines/tubearchivist.py:120 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of searxng/searxng@9fea41204f (2026-08-27).
Data as JSON: /api/errors/43ac81994ddb0c2a.
Report an issue: GitHub.