The upload_dif_archive function sometimes results in intermittent 507 failures, and we should retry these. Currently, in the upload-proguard command, we do not have any retries, so let's add these.
|
pub fn upload_dif_archive(&self, project: &str, file: &Path) -> ApiResult<Vec<DebugInfoFile>> { |
|
let path = format!( |
|
"/projects/{}/{}/files/dsyms/", |
|
PathArg(self.org), |
|
PathArg(project) |
|
); |
|
let mut form = curl::easy::Form::new(); |
|
form.part("file").file(file).add()?; |
|
self.request(Method::Post, &path)? |
|
.with_form_data(form)? |
|
.progress_bar_mode(ProgressBarMode::Request)? |
|
.send()? |
|
.convert() |
|
} |
The
upload_dif_archivefunction sometimes results in intermittent507failures, and we should retry these. Currently, in theupload-proguardcommand, we do not have any retries, so let's add these.sentry-cli/src/api/mod.rs
Lines 1404 to 1417 in 8b89630