getsentry/sentry-dart-plugin

error: Two different url values supplied

eb-so opened this issue · 6 comments

eb-so commented

Environment

What version are you running? Etc.
sentry_flutter: 7.8.0
sentry_dart_plugin: 1.6.3

and here are my build configs

sentry:
  upload_debug_symbols: true
  upload_source_maps: false
  upload_sources: false
  project: my-app
  org: myorg
  log_level: error

Steps to Reproduce

I'm trying to upload the debug symbols to Sentry using sentry_dart_plugin
but I'm having this error when I try to do flutter packages pub run sentry_dart_plugin
I'm providing the SENTRY_URL and SENTRY_AUTH_TOKEN using dart define

Expected Result

The debug symbols to be uploaded

Actual Result

[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 0% reading config values..
Downloading sentry-cli from https://downloads.sentry-cdn.com/sentry-cli/2.21.2/sentry-cli-Darwin-universal to .dart_tool/pub/bin/sentry_dart_plugin/sentry-cli

Downloaded Sentry CLI binary checksum verification passed successfully (hash: *********dde7d62fc54ab33df).

Sentry CLI downloaded successfully.

☑ reading config values

[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 9% validating config values..
☑ validating config values

[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 18% uploading debug symbols..
includeSources is disabled, not uploading sources.

error: Two different url values supplied: https://sentry.io (from token), https://**********.sentry.io/projects/**********-app/?project=45**********.

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

exitCode: 1

@vaind is this related to 173

vaind commented

@eb-so no, to me that doesn't look related at all.

You seem to have some kind of configuration issue

eb-so commented

@vaind I don't know if it's related to the issue but I'm running this on code magic pipeline
FYI: I'm using Flutter version 3.10.2

You don't need to use SENTRY_URL if you're not on self-hosted

eb-so commented

@buenaflor Thank you that fixed my issue. However, there is a new issue now

uploadSourceMaps is disabled.

Could not determine any commits to be associated with a repo-based integration. Proceeding to find commits from local git tree.

error: Could not find the SHA of the previous release in the git history. If you limit the clone depth, try to increase it. Otherwise, it means that the commit we are looking for was amended or squashed and cannot be retrieved. Use --ignore-missing flag to skip it and create a new release with the default commits count.

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

from reading the documentation I found that sentry can do releases too but I don't want to do that I just want to upload the debug symbols so I have readable stacktraces
Am I doing something wrong?

releases are automatically generated. currently there's not option to disable it but you can manually upload the symbols to customize it to your needs.

Thank you