Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Two different url values supplied #181

Closed
eb-so opened this issue Nov 30, 2023 · 6 comments
Closed

error: Two different url values supplied #181

eb-so opened this issue Nov 30, 2023 · 6 comments

Comments

@eb-so
Copy link

eb-so commented Nov 30, 2023

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
Copy link
Collaborator

vaind commented Nov 30, 2023

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

You seem to have some kind of configuration issue

@eb-so
Copy link
Author

eb-so commented Nov 30, 2023

@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

@buenaflor
Copy link
Contributor

buenaflor commented Nov 30, 2023

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

@buenaflor buenaflor moved this from Needs Discussion to Needs More Information in Mobile & Cross Platform SDK Nov 30, 2023
@eb-so
Copy link
Author

eb-so commented Dec 4, 2023

@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?

@buenaflor
Copy link
Contributor

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.

@eb-so
Copy link
Author

eb-so commented Dec 6, 2023

Thank you

@eb-so eb-so closed this as completed Dec 6, 2023
@github-project-automation github-project-automation bot moved this from Needs More Information to Done in Mobile & Cross Platform SDK Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants