..., preNavigationHooks: [ async (crawlingContext, gotoOptions) => { const { page, browserController: { browser } } = crawlingContext; const context = await browser.defaultBrowserContext(); context.clearPermissionOverrides(); context.overridePermissions('some-domain', ['some-feature']); } ], ...
WARN PuppeteerCrawler: Reclaiming failed request back to the list or queue. Cannot read private member from an object whose class did not declare it
ERROR PuppeteerCrawler: Request failed and reached maximum retries. TypeError: Cannot read private member from an object whose class did not declare it at __classPrivateFieldGet (/path/node_modules/puppeteer/lib/cjs/puppeteer/common/Browser.js:25:94) at Proxy.defaultBrowserContext (/path/node_modules/puppeteer/lib/cjs/puppeteer/common/Browser.js:213:16) at PuppeteerCrawler.preNavigationHooks (file:///path/src/index.js:46:39) at PuppeteerCrawler._executeHooks (/path/node_modules/@crawlee/basic/internals/basic-crawler.js:794:23) at PuppeteerCrawler._handleNavigation (/path/node_modules/@crawlee/browser/internals/browser-crawler.js:263:20) at PuppeteerCrawler._runRequestHandler (/path/node_modules/@crawlee/browser/internals/browser-crawler.js:215:28) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async PuppeteerCrawler._runRequestHandler (/path/node_modules/@crawlee/puppeteer/internals/puppeteer-crawler.js:102:9) at async wrap (/path/node_modules/@apify/timeout/index.js:52:21)