{"record":{"id":"43ac81994ddb0c2a","repo":"searxng/searxng","slug":"tubearchivist-engine-base-url-is-unset","errorCode":null,"errorMessage":"tubearchivist engine: base_url is unset","messagePattern":"tubearchivist engine: base_url is unset","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"searx/engines/tubearchivist.py","lineNumber":120,"sourceCode":"\n  :menuselection:`Settings --> User --> Admin Interface`.\n\n.. _Authorization: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization\n\"\"\"\n\nta_link_to_mp4: bool = False\n\"\"\"Optional, if true SearXNG will link directly to the mp4 of the video to play\nin the browser.  The default behavior is to link into TubeArchivist's interface\ndirectly.\"\"\"\n\n\ndef absolute_url(relative_url):\n    return f'{base_url.rstrip(\"/\")}{relative_url}'\n\n\ndef init(_):\n    if not base_url:\n        raise ValueError('tubearchivist engine: base_url is unset')\n    if not ta_token:\n        raise ValueError('tubearchivist engine: ta_token is unset')\n\n\ndef request(query, params):\n    if not query:\n        return False\n\n    args = {'query': query}\n    params['url'] = f\"{base_url.rstrip('/')}/api/search/?{urlencode(args)}\"\n    params['headers']['Authorization'] = f'Token {ta_token}'\n\n    return params\n\n\ndef response(resp) -> EngineResults:\n    results = EngineResults()\n    video_response(resp, results)","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/searxng/searxng/blob/9fea41204fdfa7a5cfa15b0ebd12904c520478ce/searx/engines/tubearchivist.py#L102-L138","documentation":"Error \"tubearchivist engine: base_url is unset\" thrown in searxng/searxng.","triggerScenarios":"Thrown at searx/engines/tubearchivist.py:120 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9fea41204fdfa7a5cfa15b0ebd12904c520478ce","analyzedAt":"2026-08-27T06:40:00.395Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}