Skip to content

error: bad sentry url: not on URL root (Processing react-native sourcemaps for Sentry upload) #273

@chrismllr

Description

@chrismllr

OS:

  • Windows
  • MacOS
  • Linux (CircleCI build container)

Platform:

  • iOS
  • Android

Output of node -v && npm -v && npm ls --prod --depth=0

v6.9.1
5.4.2
my-project@0.5.0 /Users/**/MyProject
├── react@16.0.0
├── react-native@0.47.2
├── react-native-sentry@0.26.0

Config:

Sentry.config('https://...@sentry.io/...', {
  // No additional config
}).install()

I have following issue:
When Processing react-native sourcemaps for Sentry upload. for the Android project, getting the following error:

error: bad sentry url: not on URL root (https://***@sentry.io/***)

Which I found the error in this file:
https://github.com/getsentry/sentry-cli/blob/master/src/config.rs#L139

The URL that is being printed in the stack trace is the DSN (url) in our sentry.properties file created when react-native link react-native-sentry.

Steps to reproduce:

  • ./gradlew test within android folder from a circleci config

Actual result:

bundle: start
bundle: finish
bundle: Writing bundle output to: /home/circleci/android/android/app/build/intermediates/assets/release/index.android.bundle
bundle: Writing sourcemap output to: /home/circleci/android/android/app/build/intermediates/assets/release/index.android.bundle.map
bundle: Done writing bundle output
bundle: Done writing sourcemap output
bundle: Copying 30 asset files
bundle: Done copying assets
Processing react-native sourcemaps for Sentry upload.
> Analyzing 2 sources
> Rewriting sources
> Adding source map references
error: bad sentry url: not on URL root (https://***@sentry.io/***)

Expected result:

  • Successful build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions