standard-azureS
Apify & Crawleeโ€ข3y agoโ€ข
11 replies
standard-azure

Set 'ignoreHTTPSErrors' on a PlaywrightCrawler

Hi everyone,

I need to set the
ignoreHTTPSErrors
flag for a Playwright crawler.
const crawler = new PlaywrightCrawler({
    launchContext: {
        launchOptions: {
            ignoreHTTPSErrors: true,
        }
    },
    requestHandler: router
});

seems to work, but errors on
Type '{ ignoreHTTPSErrors: true; }' is not assignable to type 'LaunchOptions'.\n Object literal may only specify known properties, and 'ignoreHTTPSErrors' does not exist in type 'LaunchOptions'.",

What's the standard way of setting this?
Thanks in advance
Was this page helpful?