ProtocolError: Audits.enable UnknownDomain when using puppeteer-core v24.41.0
Hi,
Versions: puppeteer-core 24.41.0, @lightpanda/browser 1.2.0
Puppeteer calls Audits.enable during page initialization (context.newPage()), which Lightpanda rejects as an unknown domain
Same here. Environment:
- x86 64bit
- Ubuntu (kernel 6.17.0)
- Lightpanda binary 1.0.0-nightly.5626+d66cdcbf
- Node 24.11.0
- Lightpanda npm package 1.2.0
- Puppeteer-core npm package24.41.0
Stack trace:
Running Lightpanda's CDP server… { pid: 3213756 }
ProtocolError: Protocol error (Audits.enable): UnknownDomain
at <instance_members_initializer> (/home/sjeon87/gclib-loan-status-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:103:14)
at new Callback (/home/sjeon87/gclib-loan-status-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:107:16)
at CallbackRegistry.create (/home/sjeon87/gclib-loan-status-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:25:26)
at Connection._rawSend (/home/sjeon87/gclib-loan-status-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:108:26)
at CdpCDPSession.send (/home/sjeon87/gclib-loan-status-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CdpSession.js:74:33)
at FrameManager.initialize (/home/sjeon87/gclib-loan-status-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FrameManager.js:198:66)
at #initialize (/home/sjeon87/gclib-loan-status-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js:324:36)
at CdpPage._create (/home/sjeon87/gclib-loan-status-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js:113:31)
at /home/sjeon87/gclib-loan-status-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Target.js:215:42
at async PageTarget.page (/home/sjeon87/gclib-loan-status-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Target.js:218:17)
As a temporary workaround, use an earlier version of puppeteer-core: npm install puppeteer-core@^22
There's now a placeholder for Audit.enable and Audit.disable. Hopefully that's enough to unblock you.
@karlseguin Thank you! That worked!
is https://github.com/lightpanda-io/browser/issues/2451 related to this?