Skip to content

node main.js Navigating frame was detached #8

@jay3702

Description

@jay3702

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions