ERROR BrowserPool: Failed to close context.
Hi,
I noticed that I get this error, here is my configuration:
const crawler = new PuppeteerCrawler({
requestHandlerTimeoutSecs: 120, // @TODO: Check if this amount of seconds is enough for everything to finish processing
useSessionPool: false,
persistCookiesPerSession: false,
launchContext: {
useIncognitoPages: true,
launchOptions: {
headless: false,
executablePath:
/Applications/Microsoft\ Edge\ Canary.app/Contents/MacOS/Microsoft\ Edge\ Canary
,
args: [
'--disable-web-security'
],
},
},
browserPoolOptions: {
// maxOpenPagesPerBrowser and retireBrowserAfterPageCount are both equal to 1 because
// crawlee currently doesn't support proxy change per single page
maxOpenPagesPerBrowser: 1,
retireBrowserAfterPageCount: 1,
}
});
What I noticed that is when I remove "useIncognitoPages: true" from launchContext the error disappears, am I doing something wrong or is that a bug?1 Reply
Hello @liutc ,
Thank you for your report.
At this point I can confirm, that I was possible to reproduce this behavior for mentioned configuration. I will try to investigate what is happening, and raise an issue to the dev team if it would be considered as a bug,