Skip to content

I am too stupid to get this working.... #361

@mcquenji

Description

@mcquenji

I have the following github action that builds the web app, creates a new sentry release (with sourcemap uploads) and builds & pushes a docker container to the ghcr. When inspecting a stack trace within sentry it either doesnt show any source code whatsoever or it shows the minified js source code (see images below)

Image Image

The compilation setep

- name: ⚒️ Build web app
            run: |
              base_href=${{ env.BASE_HREF }}
              
              # if base href is empty, set it to /
              if [ -z "$base_href" ]; then
                base_href="/"
              fi

              flutter  build web --dart-define-from-file=.env --no-tree-shake-icons --source-maps --base-href=$base_href

The sentry step

- name: Sentry Release
            if: env.SENTRY_DSN != ''
            env:
              SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
              SENTRY_ORG: ${{ vars.SENTRY_ORG }}
              SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
              SENTRY_URL: ${{ vars.SENTRY_URL }}
              SENTRY_NO_PROGRESS_BAR: 1
              SENTRY_RELEASE: ${{ steps.setup.outputs.ver }}
            run: flutter pub run sentry_dart_plugin --sentry-define=legacy_web_symbolication=true upload_source_maps=true upload_sources=true --sentry-define=url_prefix=${{ env.FQN }}

Sentry config in pubspec.yaml

sentry:
  upload_debug_symbols: true
  upload_source_maps: true
  upload_sources: true

Uploaded source maps

Image Image

Please help me i am going insane

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions