From 093af754e7dd6471b40f838dda8aa39ead5edc8b Mon Sep 17 00:00:00 2001 From: _00_ <131402327+rgaricano@users.noreply.github.com> Date: Sat, 23 Aug 2025 14:15:00 +0200 Subject: [PATCH] FIX: Playwright Timeout (ms) interpreted as seconds Fix for Playwright Timeout (ms) interpreted as seconds. To address https://github.com/open-webui/open-webui/issues/16801 In Frontend Playwright Timeout is setted as (ms), but in backend is interpreted as (s) doing a time conversion for playwright_timeout var (that have to be in ms). & as _Originally posted by @rawbby in [#16801](https://github.com/open-webui/open-webui/issues/16801#issuecomment-3216782565)_ > I personally think milliseconds are a reasonable choice for the timeout. Maybe the conversion should be fixed, not the label. > This would further not break existing configurations from users that rely on their current config. > --- backend/open_webui/retrieval/web/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/retrieval/web/utils.py b/backend/open_webui/retrieval/web/utils.py index 5a90a86e0f..bf9b01a39f 100644 --- a/backend/open_webui/retrieval/web/utils.py +++ b/backend/open_webui/retrieval/web/utils.py @@ -614,7 +614,7 @@ def get_web_loader( WebLoaderClass = SafeWebBaseLoader if WEB_LOADER_ENGINE.value == "playwright": WebLoaderClass = SafePlaywrightURLLoader - web_loader_args["playwright_timeout"] = PLAYWRIGHT_TIMEOUT.value * 1000 + web_loader_args["playwright_timeout"] = PLAYWRIGHT_TIMEOUT.value if PLAYWRIGHT_WS_URL.value: web_loader_args["playwright_ws_url"] = PLAYWRIGHT_WS_URL.value