browser icon indicating copy to clipboard operation
browser copied to clipboard

ProtocolError: Audits.enable UnknownDomain when using puppeteer-core v24.41.0

Open Ravin001 opened this issue 7 months ago • 5 comments

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

Ravin001 avatar Apr 16 '26 15:04 Ravin001

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

sjeon87 avatar Apr 17 '26 03:04 sjeon87

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)

sjeon87 avatar Apr 17 '26 03:04 sjeon87

As a temporary workaround, use an earlier version of puppeteer-core: npm install puppeteer-core@^22

ka3hun9 avatar Apr 19 '26 08:04 ka3hun9

There's now a placeholder for Audit.enable and Audit.disable. Hopefully that's enough to unblock you.

karlseguin avatar Apr 25 '26 04:04 karlseguin

@karlseguin Thank you! That worked!

is https://github.com/lightpanda-io/browser/issues/2451 related to this?

Ravin001 avatar May 13 '26 16:05 Ravin001