rrweb Issues

Today I'm continuing work on the Session Replays.

I finally managed to get the POC working. There's a lot more work to do, but it's nice to see something

alt text

I'm having some troubles replaying the rrweb events consistently. What I've learned is:

  • rrweb makes a full snapshot at the beginning (events 4 and 2)
  • every recording i send needs to start with these.

I'm probably not ordering them correctly when fetching, ill have to check that.

After hours of debugging, I found this post by PostHog. Turns out they had the same issue. This might help.

Solved some issues, but still not quite there yet.

I'm sending 4 and 2 on every page refresh, but they're still the same session.

The requests are definitely being sent, so something must be off on the backend.

Nothing seems to be off on the backend, so wtf is going on

alt text

alt text

Looks like I was trying to send a beacon (just copied and pasted what I used for events), but my events are huge and the limit is 64KB, so the browser silently dropped them and the requests stalled.

alt text

Well, looks like that's not it either. Fetch stalls as well. I added a console log and the request seems to be failing, but they're not reaching the backend at all. I'll revisit it tomorrow with a clear head.