diff --git a/langchain/document_loaders/url_selenium.py b/langchain/document_loaders/url_selenium.py index d061d1aebe7a9..339d5ec4b8d9d 100644 --- a/langchain/document_loaders/url_selenium.py +++ b/langchain/document_loaders/url_selenium.py @@ -71,6 +71,7 @@ def _get_driver(self) -> Union["Chrome", "Firefox"]: chrome_options = ChromeOptions() if self.headless: chrome_options.add_argument("--headless") + chrome_options.add_argument("--no-sandbox") if self.executable_path is None: return Chrome(options=chrome_options) return Chrome(executable_path=self.executable_path, options=chrome_options)