technological-jadeT

No usable sandbox PuppeteerCrawler

I get the following error when trying to browse a page with
PuppeteerCrawler


// Initialize the PuppeteerCrawler with the specified launch context, proxy configuration, request handler, and maximum requests
const crawler = new PuppeteerCrawler({
  launchContext: {
    // Specify puppeteer-extra as the launcher for Crawlee to use it with the stealth plugin
    launcher: puppeteerExtra,
    launchOptions: {
      // Set the headless mode based on the IS_HEADLESS constant
      headless: IS_HEADLESS,
      args: [
        'no-sandbox',
        'disable-setuid-sandbox'
      ]
    }
  },
  proxyConfiguration,
  requestHandler: router,
  // Limit the crawl to a maximum of n requests (remove this line if you want to crawl all links)
  maxRequestsPerCrawl: 10
})


Docker file straight from Github Puppeteer template.


It use to work so I am wondering what the cause could be
image.png
Was this page helpful?