Skip to main content

[JavaScript] Why are some events not mapped when source maps are uploaded correctly?

Issue

Some events in the same issue and release stay minified, while later events show readable stack traces. I already uploaded source maps for that release. I expected Sentry to apply those maps to every event.

Applies To

  • All SaaS Customers and Self-Hosted Users

  • JavaScript

  • Source Maps

  • Error Monitoring

Resolution

Sentry applies source maps only to events captured after the maps are uploaded. Events that arrived earlier stay unmapped. Reprocessing does not apply JavaScript source maps.

If some events in the same issue are mapped and others are not:

Compare each event’s timestamp to the source map upload time. Events sent before the upload stay minified. That is expected.

If you need readable stack traces:

Upload the maps, then trigger a new event. Check that new event, not an older one in the same issue. See Verify Artifacts Are Uploaded Before Errors Occur.

If new events after the upload are still minified:

The upload-timing rule does not apply. Follow [JavaScript] Why are my source maps still not working?.

If you uploaded debug information files for native or mobile events:

That is a different flow. Sentry can reprocess those events after you wait for debug-file caches. See I uploaded new debug files but they are not applied to my events.

Did this answer your question?