rrweb icon indicating copy to clipboard operation
rrweb copied to clipboard

[Bug]: Puppeteer Timeout with RRVideo

Open chirag03k opened this issue 5 months ago • 0 comments

Preflight Checklist

  • [x] I have searched the issue tracker for a bug report that matches the one I want to file, without success.

What package is this bug report for?

rrvideo

Version

2.0.0-alpha.18

Expected Behavior

When I convert a RRWeb Events JSON to video using transformToVideo from RRVideo, I should get a resulting video out.

Actual Behavior

I simply get an unhandled rejection.

page.setContent: Timeout 30000ms exceeded.
Call log:
  - setting frame content, waiting until "load"

    at /node_modules/rrweb/packages/rrvideo/build/index.js:155:30

Steps to Reproduce

My arguments:

outpath = await transformToVideo({
    input: eventsPath,
    output: tempVideoPath,
    headless: true,
    onProgressUpdate: (percent: number) => {
        const now = Date.now();
        if (now - lastProgressTime >= 5000) {
            console.log(`Progress: ${(percent * 100).toFixed(2)}%`);
            lastProgressTime = now;
        }
    },
    rrwebPlayer: {
        width: settings.width,
        speed: 8,
        height: settings.height,
        autoPlay: true,
        skipInactive: false,
        showDebug: true,
        showWarning: true,
        mouseTail: true,
    },
});

I wish I could also send the JSON, but it has private customer data. I still haven't pinpointed the cause, I just know that it happens intermittently.

Testcase Gist URL

No response

Additional Information

No response

chirag03k avatar May 23 '25 21:05 chirag03k