Page error: the sleep timer's control missing when the script ran #449

Open
opened 2026-11-13 06:26:02 -08:00 by rays · 0 comments
Owner

2026-11-10 21:25:56 UTC, jason@mcleods.me, Safari on a Mac, through the tunnel:

TypeError: null is not an object (evaluating '$("#sleep").onchange=e=>sleepIn(Number(e.target.value))'), app.js?v=41dfb7156ede line 114 (web/src/player.ts:222).

#sleep came with the sleep timer (#429, 2026-11-08), in index.html and player.ts together, so the script was newer than the page it ran in: an older index.html kept (the service worker's / from the PAGE cache when offline, or Safari's back-forward cache) with the new app.js. A throw at load stops the rest of the script, so the page is dead until reloaded. Trace 4e39b8244aafe90d628e415fe80b0bef. Once in the week; found by the prod check.

$Q logs '{container="iPX"} |= "page_error"' 7d
2026-11-10 21:25:56 UTC, jason@mcleods.me, Safari on a Mac, through the tunnel: `TypeError: null is not an object (evaluating '$("#sleep").onchange=e=>sleepIn(Number(e.target.value))')`, `app.js?v=41dfb7156ede` line 114 (web/src/player.ts:222). `#sleep` came with the sleep timer (#429, 2026-11-08), in index.html and player.ts together, so the script was newer than the page it ran in: an older index.html kept (the service worker's `/` from the PAGE cache when offline, or Safari's back-forward cache) with the new app.js. A throw at load stops the rest of the script, so the page is dead until reloaded. Trace 4e39b8244aafe90d628e415fe80b0bef. Once in the week; found by the prod check. ``` $Q logs '{container="iPX"} |= "page_error"' 7d ```
rays added the bug label 2026-11-13 06:26:02 -08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#449