Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#4916·openreplay

Player: first DOM batch has no CreateDocument (types 7/122) — "DOMMessage before any document created"

Author: liamcooperCreated Sep 22, 2026Updated Sep 24, 2026

Context

Follow-up from https://github.com/openreplay/openreplay/pull/4913#issuecomment-5773558954 (@nick-delirium).

Blank web replay / missing tab state. Ran __OPENREPLAY_DEV_TOOLS__.logStuff(), reloaded, and inspected the first file.

Session recorded today — so retention / expired S3 objects is ruled out for this case.

Environment

  • Self-hosted OpenReplay at openreplay.coho.fun
  • External S3 (MinIO disabled), external RDS Postgres, ElastiCache Redis
  • Tracker: @openreplay/tracker (app uses ^18.x) + @openreplay/tracker-assist
  • Ingest: https://openreplay.coho.fun/ingest

Expected (per guidance on the PR)

  • Header + bytes like 255 255 255 255 255 255 255 254 81 2 3 0 (V2)
  • First messages: types 7, 122, then multiple 8s building the page

Actual

  1. Flood of DOMMessage before any document created, skipping from the start.
  2. First applied messages are not types 7 / 122 + CreateElement tree — they are mid-session mutations (tp 35, 14, 12, 11, 16, 8, 9, 58) on high node ids (~9200+), all on tabId 2bb5979df3fc.
  3. d:dom 1 Message count = 15298 with no document bootstrap observed.
  4. Later: Checking protocol format from header 255 255 255 255 255 255 255 254 81 4 2 172 144 1 252 235 253 138 153 104 152 1 104 116 (V2 magic, but not the 81 2 3 0 example).
  5. No TabChange in the first batch; later LOCATION triggers + PING:SESSION_ENDED.
  6. SpotPlayer also logged Zstd unpack time 0ms size 0 -> 2 kb.

Console dump (abbreviated; pattern repeats heavily)

DOMMessage before any document created, skipping: 
Object { tp: 35, id: 2768, name: 900733556220001, value: 900733556420046, time: 239, tabId: "2bb5979df3fc" }
...
DOMMessage before any document created, skipping: 
Object { tp: 14, id: 9419, data: " you - ", time: 6138, tabId: "2bb5979df3fc" }
...
DOMMessage before any document created, skipping: 
Object { tp: 12, id: 9288, name: "src", value: "https://…/placeholder/user-3.png", time: 6138, tabId: "2bb5979df3fc" }
...
Messages count:  15298 
d:dom 1
Zstd unpack time 0ms size 0 -> 2 kb SpotPlayer
has read all bytes 2197389 SpotPlayer
...
Messages count:  129 
d:dom 2
Zstd unpack time 0ms size 12 -> 57 kb SpotPlayer
Checking protocol format from header 255 255 255 255 255 255 255 254 81 4 2 172 144 1 252 235 253 138 153 104 152 1 104 116
...
Messages count:  404 
devtools 1
TRIGGER:LOCATION_url:https://coho.life/app/manage/o/.../messages
PING:SESSION_ENDED

Happy to share a full console export or session id privately if useful.

Source: openreplay/openreplay

View original on GitHubView discussion on GitHub