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.
Files changed (142) hide show
  1. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/Cargo.lock +13 -13
  2. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/Cargo.toml +2 -2
  3. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/PKG-INFO +1 -1
  4. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/sentry_cli.egg-info/PKG-INFO +1 -1
  5. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/errors/api_error.rs +2 -0
  6. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/mod.rs +9 -0
  7. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/config.rs +22 -16
  8. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/http.rs +1 -0
  9. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/sourcemaps/inject.rs +5 -5
  10. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/LICENSE +0 -0
  11. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/MANIFEST.in +0 -0
  12. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/README.md +0 -0
  13. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/build.rs +0 -0
  14. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/pyproject.toml +0 -0
  15. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/sentry_cli.egg-info/SOURCES.txt +0 -0
  16. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/sentry_cli.egg-info/dependency_links.txt +0 -0
  17. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/sentry_cli.egg-info/top_level.txt +0 -0
  18. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/setup.cfg +0 -0
  19. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/setup.py +0 -0
  20. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/connection_manager.rs +0 -0
  21. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/artifact.rs +0 -0
  22. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/compression.rs +0 -0
  23. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/dif.rs +0 -0
  24. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/file_state.rs +0 -0
  25. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/hash_algorithm.rs +0 -0
  26. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/mod.rs +0 -0
  27. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/upload/capability.rs +0 -0
  28. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/upload/mod.rs +0 -0
  29. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/chunking/upload/options.rs +0 -0
  30. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/data_types/mod.rs +0 -0
  31. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/encoding.rs +0 -0
  32. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/envelopes_api.rs +0 -0
  33. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/errors/mod.rs +0 -0
  34. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/errors/sentry_error.rs +0 -0
  35. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/api/pagination.rs +0 -0
  36. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/bashsupport.sh +0 -0
  37. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/bash_hook.rs +0 -0
  38. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/bundle_jvm.rs +0 -0
  39. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/bundle_sources.rs +0 -0
  40. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/check.rs +0 -0
  41. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/find.rs +0 -0
  42. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/mod.rs +0 -0
  43. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/print_sources.rs +0 -0
  44. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/debug_files/upload.rs +0 -0
  45. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/deploys/list.rs +0 -0
  46. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/deploys/mod.rs +0 -0
  47. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/deploys/new.rs +0 -0
  48. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/derive_parser.rs +0 -0
  49. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/events/list.rs +0 -0
  50. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/events/mod.rs +0 -0
  51. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/files/delete.rs +0 -0
  52. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/files/list.rs +0 -0
  53. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/files/mod.rs +0 -0
  54. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/files/upload.rs +0 -0
  55. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/info.rs +0 -0
  56. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/issues/list.rs +0 -0
  57. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/issues/mod.rs +0 -0
  58. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/issues/mute.rs +0 -0
  59. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/issues/resolve.rs +0 -0
  60. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/issues/unresolve.rs +0 -0
  61. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/login.rs +0 -0
  62. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/mod.rs +0 -0
  63. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/monitors/list.rs +0 -0
  64. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/monitors/mod.rs +0 -0
  65. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/monitors/run.rs +0 -0
  66. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/organizations/list.rs +0 -0
  67. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/organizations/mod.rs +0 -0
  68. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/projects/list.rs +0 -0
  69. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/projects/mod.rs +0 -0
  70. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/react_native/appcenter.rs +0 -0
  71. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/react_native/gradle.rs +0 -0
  72. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/react_native/mod.rs +0 -0
  73. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/react_native/xcode.rs +0 -0
  74. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/archive.rs +0 -0
  75. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/delete.rs +0 -0
  76. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/finalize.rs +0 -0
  77. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/info.rs +0 -0
  78. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/list.rs +0 -0
  79. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/mod.rs +0 -0
  80. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/new.rs +0 -0
  81. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/propose_version.rs +0 -0
  82. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/restore.rs +0 -0
  83. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/releases/set_commits.rs +0 -0
  84. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/repos/list.rs +0 -0
  85. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/repos/mod.rs +0 -0
  86. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_envelope.rs +0 -0
  87. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_event.rs +0 -0
  88. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/common_args.rs +0 -0
  89. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/distribution.rs +0 -0
  90. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/gauge.rs +0 -0
  91. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/increment.rs +0 -0
  92. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/mod.rs +0 -0
  93. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/send_metric/set.rs +0 -0
  94. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/sourcemaps/explain.rs +0 -0
  95. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/sourcemaps/inject.rs +0 -0
  96. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/sourcemaps/mod.rs +0 -0
  97. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/sourcemaps/resolve.rs +0 -0
  98. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/sourcemaps/upload.rs +0 -0
  99. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/uninstall.rs +0 -0
  100. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/update.rs +0 -0
  101. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/upload_dif.rs +0 -0
  102. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/upload_dsym.rs +0 -0
  103. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/commands/upload_proguard.rs +0 -0
  104. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/constants.rs +0 -0
  105. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/main.rs +0 -0
  106. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/android.rs +0 -0
  107. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/appcenter.rs +0 -0
  108. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/args.rs +0 -0
  109. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/auth_token_impl.rs +0 -0
  110. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/error.rs +0 -0
  111. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/mod.rs +0 -0
  112. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/org_auth_token.rs +0 -0
  113. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/redacting.rs +0 -0
  114. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/test.rs +0 -0
  115. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/auth_token/user_auth_token.rs +0 -0
  116. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/chunks.rs +0 -0
  117. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/cordova.rs +0 -0
  118. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/dif.rs +0 -0
  119. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/dif_upload.rs +0 -0
  120. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/event.rs +0 -0
  121. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/file_search.rs +0 -0
  122. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/file_upload.rs +0 -0
  123. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/formatting.rs +0 -0
  124. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/fs.rs +0 -0
  125. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/logging.rs +0 -0
  126. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/metrics.rs +0 -0
  127. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/mod.rs +0 -0
  128. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/progress.rs +0 -0
  129. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/releases.rs +0 -0
  130. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/retry.rs +0 -0
  131. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_default_twenty.snap +0 -0
  132. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_ignore_missing.snap +0 -0
  133. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_base.snap +0 -0
  134. {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
  135. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/snapshots/sentry_cli__utils__vcs__get_commits_from_git.snap +0 -0
  136. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/sourcemaps.rs +0 -0
  137. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/system.rs +0 -0
  138. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/ui.rs +0 -0
  139. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/update.rs +0 -0
  140. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/value_parsers.rs +0 -0
  141. {sentry_cli-2.34.0 → sentry_cli-2.35.0}/src/utils/vcs.rs +0 -0
  142. {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.34.0"
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.0"
2788
+ version = "12.10.1"
2789
2789
  source = "registry+https://github.com/rust-lang/crates.io-index"
2790
- checksum = "6d4e155af9f06f8b44963cdb05ad7c9884f424dc040f08adc5a1bb4960937d1d"
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.0"
2800
+ version = "12.10.1"
2801
2801
  source = "registry+https://github.com/rust-lang/crates.io-index"
2802
- checksum = "16629323a4ec5268ad23a575110a724ad4544aae623451de600c747bf87b36cf"
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.0"
2813
+ version = "12.10.1"
2814
2814
  source = "registry+https://github.com/rust-lang/crates.io-index"
2815
- checksum = "f629454e4787591257c96c6c7c676c17f792ef8290638699714152140580717d"
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.0"
2846
+ version = "12.10.1"
2847
2847
  source = "registry+https://github.com/rust-lang/crates.io-index"
2848
- checksum = "7c5cc3da426cd0a0ea91b3a0e722fda69377a23fa1601d7c55f3cc0533e02b9b"
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.0"
2858
+ version = "12.10.1"
2859
2859
  source = "registry+https://github.com/rust-lang/crates.io-index"
2860
- checksum = "2c6eaa9dc4774d5e0a9df62a3145d814b3a9ebcbcf37e973bc51c57bcb9eacc7"
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.0"
2874
+ version = "12.10.1"
2875
2875
  source = "registry+https://github.com/rust-lang/crates.io-index"
2876
- checksum = "ee38ad1bcc90849a49d3c860e3e44331be798101a92e19a1e2a169384cbc6528"
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.34.0"
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.0", features = ["debuginfo-serde", "il2cpp"] }
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"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sentry_cli
3
- Version: 2.34.0
3
+ Version: 2.35.0
4
4
  Summary: A command line utility to work with Sentry.
5
5
  Home-page: https://github.com/getsentry/sentry-cli
6
6
  Author: Sentry
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sentry_cli
3
- Version: 2.34.0
3
+ Version: 2.35.0
4
4
  Summary: A command line utility to work with Sentry.
5
5
  Home-page: https://github.com/getsentry/sentry-cli
6
6
  Author: Sentry
@@ -44,6 +44,8 @@ pub(in crate::api) enum ApiErrorKind {
44
44
  "DSN missing. Please set the `SENTRY_DSN` environment variable to your project's DSN."
45
45
  )]
46
46
  DsnMissing,
47
+ #[error("Error preparing request")]
48
+ ErrorPreparingRequest,
47
49
  }
48
50
 
49
51
  impl fmt::Display for ApiError {
@@ -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 default_url = get_default_url(&ini);
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
- default_url
75
+ manually_configured_url.unwrap_or_else(|| DEFAULT_URL.to_string())
76
76
  } else {
77
- if !default_url.is_empty() {
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
- fn get_default_url(ini: &Ini) -> String {
698
- if let Ok(val) = env::var("SENTRY_URL") {
699
- val
700
- } else if let Some(val) = ini.get_from(Some("defaults"), "url") {
701
- val.to_owned()
702
- } else {
703
- DEFAULT_URL.to_owned()
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