Skip to content

Sentry Replay Tries to Load Media from Inaccessible URLs in Capacitor Apps #869

@acul021

Description

@acul021

Environment

"@sentry/capacitor": "^1.2.1",
"@sentry/vue": "8.42.0",

Steps to Reproduce

  1. Unblock media in the browser/device.
  2. Trigger a replay recording in a Capacitor-based mobile app.
  3. View the recorded replay in Sentry.
  4. Sentry attempts to load media from internal URLs like capacitor://localhost or https://localhost.

Expected Result

Media assets used in the replay (e.g., images, videos, canvas recordings) should be accessible from publicly accessible URLs or provide a mechanism to rewrite internal capacitor:// URLs to valid asset URLs that can be displayed correctly in Sentry replays.

Actual Result

Media elements in the replay fail to load because Sentry tries to fetch them from internal capacitor://localhost or https://localhost URLs, which are inaccessible externally. This results in broken media references in the replay viewer.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions