sad-indigoS
Apify & Crawlee3y ago
2 replies
sad-indigo

browserType.launchPersistentContext: Browser closed

I'm getting the below error when running Playwright. The problem will lie with the chromium executable, but I'm not sure why. I have my executable path set:
executablePath: '/tmp/chromium/chrome-linux/chrome',
. This chrome executable was downloaded from Playwright's hosted file, so I didn't think there would be a compatibility issue: https://playwright.azureedge.net/builds/chromium/1060/chromium-linux.zip

Extra context: I'm running this in an AWS Lambda (x86_64).

{
    "totalErrors": 1,
    "uniqueErrors": 1,
    "mostCommonErrors": [
        "1x: browserType.launchPersistentContext: Browser closed. (/opt/nodejs/node_modules/@crawlee/browser-pool/playwright/playwright-plugin.js:99:40)"
    ]
}


Anyone know what this could be?
Was this page helpful?