diff --git a/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs b/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs index 58003b30c..42a127c67 100644 --- a/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs +++ b/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs @@ -420,6 +420,8 @@ impl IndexScheduler { etags.push(etag.to_str().unwrap().to_owned()); } + eprintln!("Finalizing the multipart upload"); + let action = bucket.complete_multipart_upload( Some(&credential), &object, @@ -427,17 +429,13 @@ impl IndexScheduler { etags.iter().map(AsRef::as_ref), ); let url = action.sign(ONE_HOUR); - let resp = client - .post(url) - .body(action.body()) - .send() - .await - .unwrap() - .error_for_status() - .unwrap(); + let resp = client.post(url).body(action.body()).send().await.unwrap(); + let status = resp.status(); + let text = resp.text().await.unwrap(); + eprintln!("Status: {status}, Text: {text}"); // TODO do a better check and do not assert - assert!(resp.status().is_success()); + // assert!(resp.status().is_success()); Result::<_, Error>::Ok(()) });