// troubleshooting guide · posthog

PostHog Error Tracking Not Capturing Exceptions or Showing Minified Stack Traces

Status
Workaround available
platforms:
Web, Node.js, React Native, iOS, Android, Flutter
updated:
November 23, 2026
reports:
2
Method
how we research
Share

RUNBOOK · posthog/error-tracking-not-working4 FIXES

// quick answer

Most missing exceptions come from exception autocapture being off, caught errors that are never sent with captureException(), or source maps that were not uploaded before deploy. Turn on autocapture, report caught errors manually and upload source maps in your build.

Most likely fix: Enable exception autocapture and update the SDK

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Enable exception autocapture and update the SDK

    1. 01Open Error Tracking > Configuration and turn on exception autocapture
    2. 02Run the SDK health check and update outdated SDKs
    3. 03Wait a few minutes; issues can take a while to update after ingestion
    Did this fix it?
  2. FIX 2Send caught errors manually

    1. 01In catch blocks call posthog.captureException(error)
    2. 02For libraries that reject with strings, wrap them: posthog.captureException(new Error(err))
    Did this fix it?
  3. FIX 3Upload source maps before deploying

    1. 01Run npx @posthog/wizard upload-source-maps, or follow the guide for your bundler (Next.js, Vite, Webpack, CLI, GitHub Action)
    2. 02Upload in the build step, before the code that references the maps goes live
    3. 03Check Error Tracking > Configuration > Symbol sets for missing symbol set warnings and the right project
    Did this fix it?
  4. FIX 4Fix "Script error" with no stack trace

    1. 01Add crossorigin="anonymous" to script tags loaded from a CDN or other domain
    2. 02Return an Access-Control-Allow-Origin header for your origin from that host
    Did this fix it?

SANDBOX · posthog RUNS IN YOUR BROWSER

Try it: chart events, find the funnel drop-off, watch the session, roll out a flag

A hands-on PostHog-style sandbox, including the spots where users get stuck. See where problems like this one start. 1-2 minutes, nothing is saved.

Symptoms

Error Tracking stays empty, only some errors appear, stack traces show minified code, or issues show "Script error", "Non-Error promise rejection" or Safari "Load failed" with no stack trace.

Why it happens

  • C-01Exception autocapture is disabled in Error Tracking configuration
  • C-02Only unhandled exceptions are autocaptured; caught errors are not
  • C-03Source maps missing, uploaded to another project, or uploaded after the deploy
  • C-04Scripts served from another domain without crossorigin, which hides error details
  • C-05Promises rejected with strings instead of Error objects
  • C-06Outdated SDK version

// this guide also covers

  • posthog error tracking not working
  • posthog exceptions not showing
  • posthog source maps not working
  • posthog minified stack trace
  • posthog captureException not working
  • posthog script error no stack trace

Still not working?

If PostHog keeps failing, you're not alone. See every PostHog problem users report or the alternatives people switch to.

Done fighting PostHog? Our small team builds your own PostHog alternative, or any software you need: web, mobile, games, desktop. Price agreed together.

Talk to us

Watch PostHog Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other PostHog errors

All 18 PostHog errors and fixes →