sentry-cli 2.34.0__tar.gz → 2.35.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/Cargo.lock +13 -13
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/Cargo.toml +2 -2
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/PKG-INFO +1 -1
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/sentry_cli.egg-info/PKG-INFO +1 -1
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/errors/api_error.rs +2 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/mod.rs +9 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/config.rs +22 -16
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/http.rs +1 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/sourcemaps/inject.rs +5 -5
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/LICENSE +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/MANIFEST.in +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/README.md +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/build.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/pyproject.toml +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/sentry_cli.egg-info/SOURCES.txt +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/sentry_cli.egg-info/dependency_links.txt +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/sentry_cli.egg-info/top_level.txt +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/setup.cfg +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/setup.py +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/connection_manager.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/artifact.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/compression.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/dif.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/file_state.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/hash_algorithm.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/upload/capability.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/upload/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/upload/options.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/encoding.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/envelopes_api.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/errors/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/errors/sentry_error.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/pagination.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/bashsupport.sh +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/bash_hook.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/bundle_jvm.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/bundle_sources.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/check.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/find.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/print_sources.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/upload.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/deploys/list.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/deploys/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/deploys/new.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/derive_parser.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/events/list.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/events/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/files/delete.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/files/list.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/files/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/files/upload.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/info.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/issues/list.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/issues/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/issues/mute.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/issues/resolve.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/issues/unresolve.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/login.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/monitors/list.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/monitors/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/monitors/run.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/organizations/list.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/organizations/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/projects/list.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/projects/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/react_native/appcenter.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/react_native/gradle.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/react_native/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/react_native/xcode.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/archive.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/delete.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/finalize.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/info.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/list.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/new.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/propose_version.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/restore.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/set_commits.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/repos/list.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/repos/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_envelope.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_event.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/common_args.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/distribution.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/gauge.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/increment.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/set.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/sourcemaps/explain.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/sourcemaps/inject.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/sourcemaps/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/sourcemaps/resolve.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/sourcemaps/upload.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/uninstall.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/update.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/upload_dif.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/upload_dsym.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/upload_proguard.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/constants.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/main.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/android.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/appcenter.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/args.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/auth_token_impl.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/error.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/org_auth_token.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/redacting.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/test.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/user_auth_token.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/chunks.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/cordova.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/dif.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/dif_upload.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/event.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/file_search.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/file_upload.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/formatting.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/fs.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/logging.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/metrics.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/mod.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/progress.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/releases.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/retry.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_default_twenty.snap +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_ignore_missing.snap +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_base.snap +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_previous_commit.snap +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/snapshots/sentry_cli__utils__vcs__get_commits_from_git.snap +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/sourcemaps.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/system.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/ui.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/update.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/value_parsers.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/vcs.rs +0 -0
- {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/xcode.rs +0 -0
|
@@ -2422,7 +2422,7 @@ dependencies = [
|
|
|
2422
2422
|
|
|
2423
2423
|
[[package]]
|
|
2424
2424
|
name = "sentry-cli"
|
|
2425
|
-
version = "2.
|
|
2425
|
+
version = "2.35.0"
|
|
2426
2426
|
dependencies = [
|
|
2427
2427
|
"anyhow",
|
|
2428
2428
|
"anylog",
|
|
@@ -2785,9 +2785,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
|
|
2785
2785
|
|
|
2786
2786
|
[[package]]
|
|
2787
2787
|
name = "symbolic"
|
|
2788
|
-
version = "12.10.
|
|
2788
|
+
version = "12.10.1"
|
|
2789
2789
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2790
|
-
checksum = "
|
|
2790
|
+
checksum = "0706ae7a55f896744f7432fe6bd39c75d5101600da8aca9bda2ebd20461940f7"
|
|
2791
2791
|
dependencies = [
|
|
2792
2792
|
"symbolic-common",
|
|
2793
2793
|
"symbolic-debuginfo",
|
|
@@ -2797,9 +2797,9 @@ dependencies = [
|
|
|
2797
2797
|
|
|
2798
2798
|
[[package]]
|
|
2799
2799
|
name = "symbolic-common"
|
|
2800
|
-
version = "12.10.
|
|
2800
|
+
version = "12.10.1"
|
|
2801
2801
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2802
|
-
checksum = "
|
|
2802
|
+
checksum = "b1944ea8afd197111bca0c0edea1e1f56abb3edd030e240c1035cc0e3ff51fec"
|
|
2803
2803
|
dependencies = [
|
|
2804
2804
|
"debugid",
|
|
2805
2805
|
"memmap2",
|
|
@@ -2810,9 +2810,9 @@ dependencies = [
|
|
|
2810
2810
|
|
|
2811
2811
|
[[package]]
|
|
2812
2812
|
name = "symbolic-debuginfo"
|
|
2813
|
-
version = "12.10.
|
|
2813
|
+
version = "12.10.1"
|
|
2814
2814
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2815
|
-
checksum = "
|
|
2815
|
+
checksum = "8311940c4b7ff9234a3a0dabc0b683a6c43da739a9a3f44744781e465d81bcee"
|
|
2816
2816
|
dependencies = [
|
|
2817
2817
|
"debugid",
|
|
2818
2818
|
"dmsort",
|
|
@@ -2843,9 +2843,9 @@ dependencies = [
|
|
|
2843
2843
|
|
|
2844
2844
|
[[package]]
|
|
2845
2845
|
name = "symbolic-il2cpp"
|
|
2846
|
-
version = "12.10.
|
|
2846
|
+
version = "12.10.1"
|
|
2847
2847
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2848
|
-
checksum = "
|
|
2848
|
+
checksum = "eb23700aeaa8fc26d9d3673a458f2cf3052f37f2745f28d661a49afc7e09b4a1"
|
|
2849
2849
|
dependencies = [
|
|
2850
2850
|
"indexmap",
|
|
2851
2851
|
"serde_json",
|
|
@@ -2855,9 +2855,9 @@ dependencies = [
|
|
|
2855
2855
|
|
|
2856
2856
|
[[package]]
|
|
2857
2857
|
name = "symbolic-ppdb"
|
|
2858
|
-
version = "12.10.
|
|
2858
|
+
version = "12.10.1"
|
|
2859
2859
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2860
|
-
checksum = "
|
|
2860
|
+
checksum = "fe4c4111d6af76ff4c251840fcfe1e01ab074866890351ac6cc7d0486c0dc92f"
|
|
2861
2861
|
dependencies = [
|
|
2862
2862
|
"flate2",
|
|
2863
2863
|
"indexmap",
|
|
@@ -2871,9 +2871,9 @@ dependencies = [
|
|
|
2871
2871
|
|
|
2872
2872
|
[[package]]
|
|
2873
2873
|
name = "symbolic-symcache"
|
|
2874
|
-
version = "12.10.
|
|
2874
|
+
version = "12.10.1"
|
|
2875
2875
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2876
|
-
checksum = "
|
|
2876
|
+
checksum = "1b293cdcc7f493fd7cfde707c53f221c98acaf7295a643fb22333fa6097150c6"
|
|
2877
2877
|
dependencies = [
|
|
2878
2878
|
"indexmap",
|
|
2879
2879
|
"symbolic-common",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
|
|
3
3
|
build = "build.rs"
|
|
4
4
|
name = "sentry-cli"
|
|
5
|
-
version = "2.
|
|
5
|
+
version = "2.35.0"
|
|
6
6
|
edition = "2021"
|
|
7
7
|
rust-version = "1.65"
|
|
8
8
|
|
|
@@ -69,7 +69,7 @@ serde = { version = "1.0.152", features = ["derive"] }
|
|
|
69
69
|
serde_json = "1.0.93"
|
|
70
70
|
sha1_smol = { version = "1.0.0", features = ["serde"] }
|
|
71
71
|
sourcemap = { version = "7.0.1", features = ["ram_bundle"] }
|
|
72
|
-
symbolic = { version = "12.10.
|
|
72
|
+
symbolic = { version = "12.10.1", features = ["debuginfo-serde", "il2cpp"] }
|
|
73
73
|
thiserror = "1.0.38"
|
|
74
74
|
url = "2.3.1"
|
|
75
75
|
username = "0.2.0"
|
|
@@ -1411,6 +1411,15 @@ impl<'a> RegionSpecificApi<'a> {
|
|
|
1411
1411
|
form.part("file").file(file).add()?;
|
|
1412
1412
|
self.request(Method::Post, &path)?
|
|
1413
1413
|
.with_form_data(form)?
|
|
1414
|
+
.with_retry(
|
|
1415
|
+
self.api.api.config.get_max_retry_count().map_err(|e| {
|
|
1416
|
+
ApiError::with_source(
|
|
1417
|
+
ApiErrorKind::ErrorPreparingRequest,
|
|
1418
|
+
e.context("Could not parse retry count"),
|
|
1419
|
+
)
|
|
1420
|
+
})?,
|
|
1421
|
+
&[http::HTTP_STATUS_507_INSUFFICIENT_STORAGE],
|
|
1422
|
+
)?
|
|
1414
1423
|
.progress_bar_mode(ProgressBarMode::Request)?
|
|
1415
1424
|
.send()?
|
|
1416
1425
|
.convert()
|
|
@@ -65,21 +65,16 @@ impl Config {
|
|
|
65
65
|
_ => None, // get_default_auth never returns Auth::Token variant
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
let
|
|
68
|
+
let manually_configured_url = configured_url(&ini);
|
|
69
69
|
let token_url = token_embedded_data
|
|
70
70
|
.as_ref()
|
|
71
71
|
.map(|td| td.url.as_str())
|
|
72
72
|
.unwrap_or_default();
|
|
73
73
|
|
|
74
74
|
let url = if token_url.is_empty() {
|
|
75
|
-
|
|
75
|
+
manually_configured_url.unwrap_or_else(|| DEFAULT_URL.to_string())
|
|
76
76
|
} else {
|
|
77
|
-
|
|
78
|
-
log::warn!(
|
|
79
|
-
"Using {token_url} (embedded in token) rather than manually-configured URL {default_url}. \
|
|
80
|
-
To use {default_url}, please provide an auth token for this URL."
|
|
81
|
-
);
|
|
82
|
-
}
|
|
77
|
+
warn_about_conflicting_urls(token_url, manually_configured_url.as_deref());
|
|
83
78
|
token_url.into()
|
|
84
79
|
};
|
|
85
80
|
|
|
@@ -535,6 +530,18 @@ impl Config {
|
|
|
535
530
|
}
|
|
536
531
|
}
|
|
537
532
|
|
|
533
|
+
fn warn_about_conflicting_urls(token_url: &str, manually_configured_url: Option<&str>) {
|
|
534
|
+
if let Some(manually_configured_url) = manually_configured_url {
|
|
535
|
+
if manually_configured_url != token_url {
|
|
536
|
+
warn!(
|
|
537
|
+
"Using {token_url} (embedded in token) rather than manually-configured URL \
|
|
538
|
+
{manually_configured_url}. To use {manually_configured_url}, please provide an \
|
|
539
|
+
auth token for {manually_configured_url}."
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
538
545
|
fn find_global_config_file() -> Result<PathBuf> {
|
|
539
546
|
let home_dir_file = dirs::home_dir().map(|p| p.join(CONFIG_RC_FILE_NAME));
|
|
540
547
|
let config_dir_file = dirs::config_dir().map(|p| p.join(CONFIG_INI_FILE_PATH));
|
|
@@ -694,14 +701,13 @@ fn get_default_auth(ini: &Ini) -> Option<Auth> {
|
|
|
694
701
|
}
|
|
695
702
|
}
|
|
696
703
|
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
}
|
|
704
|
+
/// Returns the URL configured in the SENTRY_URL environment variable or provided ini (in that
|
|
705
|
+
/// order of precedence), or returns None if neither is set.
|
|
706
|
+
fn configured_url(ini: &Ini) -> Option<String> {
|
|
707
|
+
env::var("SENTRY_URL").ok().or_else(|| {
|
|
708
|
+
ini.get_from(Some("defaults"), "url")
|
|
709
|
+
.map(|url| url.to_owned())
|
|
710
|
+
})
|
|
705
711
|
}
|
|
706
712
|
|
|
707
713
|
fn get_default_headers(ini: &Ini) -> Option<Vec<String>> {
|
|
@@ -7,6 +7,7 @@ use regex::Regex;
|
|
|
7
7
|
pub const HTTP_STATUS_502_BAD_GATEWAY: u32 = 502;
|
|
8
8
|
pub const HTTP_STATUS_503_SERVICE_UNAVAILABLE: u32 = 503;
|
|
9
9
|
pub const HTTP_STATUS_504_GATEWAY_TIMEOUT: u32 = 504;
|
|
10
|
+
pub const HTTP_STATUS_507_INSUFFICIENT_STORAGE: u32 = 507;
|
|
10
11
|
|
|
11
12
|
lazy_static! {
|
|
12
13
|
static ref LINK_TOKEN_RE: Regex = Regex::new(
|
|
@@ -14,7 +14,7 @@ use magic_string::{GenerateDecodedMapOptions, MagicString};
|
|
|
14
14
|
use sentry::types::DebugId;
|
|
15
15
|
use sourcemap::SourceMap;
|
|
16
16
|
|
|
17
|
-
const CODE_SNIPPET_TEMPLATE: &str = r#"!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="__SENTRY_DEBUG_ID__")}catch(e){}}();"#;
|
|
17
|
+
const CODE_SNIPPET_TEMPLATE: &str = r#"!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="__SENTRY_DEBUG_ID__")}catch(e){}}();"#;
|
|
18
18
|
const DEBUGID_PLACEHOLDER: &str = "__SENTRY_DEBUG_ID__";
|
|
19
19
|
const DEBUGID_COMMENT_PREFIX: &str = "//# debugId";
|
|
20
20
|
|
|
@@ -329,7 +329,7 @@ something else"#;
|
|
|
329
329
|
|
|
330
330
|
let expected = r#"//# sourceMappingURL=fake1
|
|
331
331
|
|
|
332
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
|
|
332
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
|
|
333
333
|
some line
|
|
334
334
|
//# sourceMappingURL=fake2
|
|
335
335
|
//# sourceMappingURL=real
|
|
@@ -383,7 +383,7 @@ something else"#;
|
|
|
383
383
|
|
|
384
384
|
|
|
385
385
|
|
|
386
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
|
|
386
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
|
|
387
387
|
some line
|
|
388
388
|
//# sourceMappingURL=fake
|
|
389
389
|
//# sourceMappingURL=fake
|
|
@@ -430,7 +430,7 @@ something else"#;
|
|
|
430
430
|
|
|
431
431
|
// some other comment
|
|
432
432
|
"use strict";
|
|
433
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
|
|
433
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
|
|
434
434
|
rest of the line
|
|
435
435
|
'use strict';
|
|
436
436
|
some line
|
|
@@ -466,7 +466,7 @@ something else"#;
|
|
|
466
466
|
|
|
467
467
|
// some other comment
|
|
468
468
|
"use strict";
|
|
469
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
|
|
469
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
|
|
470
470
|
rest of the line
|
|
471
471
|
(this.foo=this.bar||[]).push([[2],[function(e,t,n){"use strict"; […] }
|
|
472
472
|
some line
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|