Dramatiker -Browser -StartausgabePython

Python-Programme
Anonymous
 Dramatiker -Browser -Startausgabe

Post by Anonymous »

dramwright._impl._errors.targetCloseDerror: browser.new_page: Zielseite, Kontext oder Browser wurde geschlossen. Angesichts dieser Art von Problem. Dieses Problem tritt nur auf AWS Lambda < /p>
My Browser -Startkonfigurationen auf: < /p>

Code: Select all

    async with async_playwright() as playwright:
browser_path = find_chromium_path()
executable_path = f"{browser_path}/chrome-linux/chrome"
# Local development
if not os.path.exists(executable_path):
executable_path = None

browser = await playwright.chromium.launch(headless=True,
executable_path=executable_path,
args=[
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-dev-shm-usage",
"--disable-accelerated-2d-canvas",
"--disable-gpu",
"--single-process",
"--no-zygote",
"--disable-audio-output",
"--disable-software-rasterizer",
"--disable-webgl",
"--disable-web-security",
"--disable-features=LazyFrameLoading",
"--disable-features=IsolateOrigins",
"--disable-background-networking"
]
)
Gibt es eine Problemumgehung für dieses Problem?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post