docker run --rm -it -p 3000:3000 -e DEBUG='browserless*' -e PREBOOT_CHROME=true -e MAX_CONCURRENT_SESSIONS=10 --name browserless browserless/chrome:latest
const browser = await puppeteer.connect({ browserWSEndpoint: 'ws://localhost:3000' });
const page = await browser.newPage();
await page.goto('https://google.com', {
waitUntil: 'networkidle2',
});
await page.screenshot({ path: 'puppeteer.png' })
await browser.close();
Error: Unexpected extraInfo events for request 8574FCDD373436FD23BAE6CB1FF3CAED
[
{
requestId: '8574FCDD373436FD23BAE6CB1FF3CAED',
blockedCookies: [],
headers: {
status: '301',
location: 'https://www.google.com/',
'content-type': 'text/html; charset=UTF-8',
'bfcache-opt-in': 'unload',
date: 'Sun, 28 Nov 2021 01:24:14 GMT',
expires: 'Tue, 28 Dec 2021 01:24:14 GMT',
'cache-control': 'public, max-age=2592000',
server: 'gws',
'content-length': '220',
'x-xss-protection': '0',
'x-frame-options': 'SAMEORIGIN',
'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"'
}
},
{
requestId: '8574FCDD373436FD23BAE6CB1FF3CAED',
blockedCookies: [],
headers: {
status: '200',
date: 'Sun, 28 Nov 2021 01:24:14 GMT',
expires: '-1',
'cache-control': 'private, max-age=0',
'content-type': 'text/html; charset=UTF-8',
'bfcache-opt-in': 'unload',
p3p: 'CP="This is not a P3P policy! See g.co/p3phelp for more info."',
'content-encoding': 'gzip',
server: 'gws',
'content-length': '41595',
'x-xss-protection': '0',
'x-frame-options': 'SAMEORIGIN',
'set-cookie': '1P_JAR=2021-11-28-01; expires=Tue, 28-Dec-2021 01:24:14 GMT; path=/; domain=.google.com; Secure; SameSite=none\n' +
'NID=511=HNG5DW5oAvTGM3MxEDI5w0cbS7BUiLM0i7vCtut0VnjatrLZPA0WG9nzN1CiIn3I72ZLtL4OXeO4msFkUZ5zYyX42rGAUgQPbbwkk_LqjVnbyxImeq-Nsrb9f3zAln1DjuF0WoSUTqR1iav_DqsLms_6rFD_aPnF5gQXW7so-cw; expires=Mon, 30-May-2022 01:24:14 GMT; path=/; domain=.google.com; HttpOnly',
'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"'
}
}
]
Bug description
Steps to reproduce the problem:
puppeteer-core):Getting an exception (see the "Relevant log output"):
Added a
console.logto print theextraInfos(see the "Relevant log output"):With puppeteer
v11.0.0this doesn't happen – same code, same browserless, only chaning the version inpackage.jsonand runningyarnto install – the page loads and I'm getting the screenshot in the file.Puppeteer version
12.0.0
Node.js version
v16.4.0
npm version
yarn 1.22.5
What operating system are you seeing the problem on?
macOS
Relevant log output
Puppeteer exception: /Users/yurique/.../node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js:347 throw new Error('Unexpected extraInfo events for request ' + responseReceived.requestId); ^ Error: Unexpected extraInfo events for request 8574FCDD373436FD23BAE6CB1FF3CAED at NetworkManager._emitResponseEvent (/Users/yurique/.../node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js:347:19) at NetworkManager._onResponseReceived (/Users/yurique/.../node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js:370:14) at /Users/yurique/.../node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js:51:62 at Array.map (<anonymous>) at Object.emit (/Users/yurique/.../node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js:51:43) at CDPSession.emit (/Users/yurique/.../node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js:72:22) at CDPSession._onMessage (/Users/yurique/.../node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:245:18) at Connection._onMessage (/Users/yurique/.../node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:117:25) at WebSocket.<anonymous> (/Users/yurique/.../node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js:13:32) at WebSocket.onMessage (/Users/yurique/.../node_modules/ws/lib/event-target.js:199:18)console.log(extraInfos):