mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:34:13 -05:00
[PR #18027] [CLOSED] Fix(RAG): Pass playwright_timeout to browser connect method #40275
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/18027
Author: @dmitrysrtx
Created: 10/3/2025
Status: ❌ Closed
Base:
main← Head:fix-playwright-timeout📝 Commits (1)
94a8f62Fix(RAG): Pass playwright_timeout to browser connect method📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
backend/open_webui/retrieval/web/utils.py(+3 -1)📄 Description
Description:
The application currently ignores the PLAYWRIGHT_TIMEOUT environment variable when using the Playwright web loader. This causes web searches to fail with a Connection timed out error after exactly 30 seconds, which appears to be the hard-coded default timeout of the Playwright library's connect method.
Evidence:
The Fix:
This commit resolves the issue by passing the self.playwright_timeout value to the p.chromium.connect() call in /backend/open_webui/retrieval/web/utils.py, ensuring the user-configured timeout is respected.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.