Skip to content

fix: sentry triage + SW POST method for PostHog ingest#246

Merged
koala73 merged 1 commit intomainfrom
fix/sentry-triage-sw-post-method
Feb 23, 2026
Merged

fix: sentry triage + SW POST method for PostHog ingest#246
koala73 merged 1 commit intomainfrom
fix/sentry-triage-sw-post-method

Conversation

@koala73
Copy link
Owner

@koala73 koala73 commented Feb 23, 2026

Summary

  • PostHog /ingest 404 fix: Workbox registerRoute defaults to GET only. PostHog sends analytics via POST to /ingest/e/. Added duplicate POST routes for /api/ and /ingest/ patterns.
  • Sentry triage: Fixed fullscreen crash (optional chaining on exitFullscreen()?.catch()), added 6 noise filters, widened 1 existing filter. All 9 issues resolved in Sentry.

Root Cause

The previous SW fix (PR #244) added /ingest/ to NetworkOnly routes but Workbox only matches GET by default. POST requests from PostHog fell through to the precache handler → 404.

Test plan

  • Deploy → open worldmonitor.app in incognito → no PostHog 404 errors in console
  • Verify /ingest/e/ POST requests pass through SW to Vercel rewrite
  • Existing API calls still work (GET routes unchanged)

- Fix PostHog /ingest 404: Workbox registerRoute defaults to GET only,
  PostHog sends POST. Add POST routes for /api/ and /ingest/.
- Fix fullscreen crash: optional chaining on exitFullscreen()?.catch()
  for browsers returning undefined instead of Promise.
- Add 6 noise filters: __firefox__, ifameElement.contentDocument,
  Invalid video id, Fetch is aborted, Stylesheet append timeout,
  Cannot assign to read only property.
- Widen Program failed to link filter (remove ": null" suffix).
@vercel
Copy link

vercel bot commented Feb 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview, Comment Feb 23, 2026 8:26am
worldmonitor-finance Ready Ready Preview, Comment Feb 23, 2026 8:26am
worldmonitor-startup Ready Ready Preview, Comment Feb 23, 2026 8:26am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant