-
Notifications
You must be signed in to change notification settings - Fork 8
Description
When running main.js with node from a command prompt, puppeteer throws an error when the stream is opened, and then the node process terminates. The error is "Navigating frame was detached".
`C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels>node main.js
[2025/01/21 15:37:24.702] Chrome Capture server listening on port 5589
C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\LifecycleWatcher.js:103
this.#terminationDeferred.resolve(new Error('Navigating frame was detached'));
^
Error: Navigating frame was detached
at #onFrameDetached (C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\LifecycleWatcher.js:103:47)
at C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\third_party\mitt\mitt.js:62:7
at Array.map ()
at Object.emit (C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\third_party\mitt\mitt.js:61:20)
at CdpFrame.emit (C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\puppeteer\common\EventEmitter.js:83:23)
at #removeFramesRecursively (C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\FrameManager.js:451:15)
at #onClientDisconnect (C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\FrameManager.js:94:42)
Node.js v23.6.0`
I've tried this on two machines, one running WIndows 10, the other Windows 11. Same error occurs on both. Also, both machines work fine with chrome-capture-for-channels-win-x64.exe