Telemetry POST beacons get 405 — hydrate event lost on every page load #1

Closed
opened 2026-07-20 18:38:17 +00:00 by necrogami · 0 comments
Contributor

Bug

scripts/ssr-server.py only handles /telemetry in do_GET (line ~183). do_POST only knows /api/save and returns 405 for everything else.

The client sends most telemetry via the new Image().src GET trick, but the hydrate event goes out as a POST (presumably navigator.sendBeacon, which always POSTs). Result: every page load logs a console error and the hydrate beacon — the event the telemetry system was built around ("did the page actually hydrate on the iPhone?") — never reaches the server log.

Observed during a live browser test (v30.44):

[ERROR] Failed to load resource: the server responded with a status of 405 (Method Not Allowed)
        @ http://localhost:5175/telemetry?event=hydrate&steps=0

Fix options

  • Mirror the /telemetry branch into do_POST (2 lines), or
  • Switch the client to a single transport for all beacons.
## Bug `scripts/ssr-server.py` only handles `/telemetry` in `do_GET` (line ~183). `do_POST` only knows `/api/save` and returns 405 for everything else. The client sends most telemetry via the `new Image().src` GET trick, but the `hydrate` event goes out as a POST (presumably `navigator.sendBeacon`, which always POSTs). Result: every page load logs a console error and the hydrate beacon — the event the telemetry system was built around ("did the page actually hydrate on the iPhone?") — never reaches the server log. Observed during a live browser test (v30.44): ``` [ERROR] Failed to load resource: the server responded with a status of 405 (Method Not Allowed) @ http://localhost:5175/telemetry?event=hydrate&steps=0 ``` ## Fix options - Mirror the `/telemetry` branch into `do_POST` (2 lines), or - Switch the client to a single transport for all beacons.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
og_arist0tle/dark-spire#1
No description provided.