fix: Add no_sandbox=True to Zendriver start calls for Docker root support
This commit is contained in:
@@ -59,9 +59,9 @@ async def fetch_html(url: str, timeout: int = 60, browser_path: str = None) -> d
|
||||
|
||||
# 브라우저 시작
|
||||
if exec_path:
|
||||
browser = await zd.start(headless=True, browser_executable_path=exec_path)
|
||||
browser = await zd.start(headless=True, browser_executable_path=exec_path, no_sandbox=True)
|
||||
else:
|
||||
browser = await zd.start(headless=True)
|
||||
browser = await zd.start(headless=True, no_sandbox=True)
|
||||
|
||||
page = await browser.get(url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user