nuxt-modules / logrocket

LogRocket module for Nuxt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I fix the ‘Payload too large (> 10MB). Event: lr.browser.NodeInitEvent’ warning.

s-tanoue opened this issue · comments

Hello everyone.

I'm using LogRocket and this plugin in my project now.
But I can't not see the video.
Image from Gyazo

I believe the cause of this is the ‘Payload too large (> 10MB). Event: lr.browser.NodeInitEvent’ warning on the console.

Do you have any tips on how to fix it?

I'm unfortunately experiencing the exact same issue. While this is not a solution in my opinion, just to get it to continue to record requests I set the dom property on LogRocket.init to false like:

LogRocket.init('APP_ID', {
    dom: {
        isEnabled: false
    }
}

If you've found a way to track what is actually getting sent, please share!

Hi. Has there been any fix for this item?

I'm using the same module in various projects and not running into this issue.

Can anyone create a code sandbox of some sort?

I have this message as well, but it's with NextJS if that helps. And it only happens in dev mode.

@EricKit Can you help me reproduce the issue?

As an update, my issue was related to our webpack plugin injecting styles per file, so on initial load, the dom was changing rapidly as the styles were injected and caused the payload to be too large for the first couple of seconds, which LogRocket then subsequently cuts off sending info. Sorry I don't have a repro.