Skip to content

Commit

Permalink
missed one type of s3 error that's a not found
Browse files Browse the repository at this point in the history
  • Loading branch information
relaxolotl committed Jul 31, 2021
1 parent c2cf4b2 commit 853d10d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/symbolicator/src/services/download/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,13 @@ impl S3Downloader {
// - Otherwise, a 403 ("access denied") is returned.
log::debug!("Skipping response from s3://{}/{}: {}", bucket, &key, err);

if let RusotoError::Unknown(response) = &err {
if response.status.is_client_error() {
return Ok(DownloadStatus::NotFound);
match &err {
RusotoError::Service(_) => return Ok(DownloadStatus::NotFound),
RusotoError::Unknown(response) if response.status.is_client_error() => {
return Ok(DownloadStatus::NotFound)
}
_ => return Err(DownloadError::S3(err)),
}
return Err(DownloadError::S3(err));
}
Err(_) => {
// Timed out
Expand Down

0 comments on commit 853d10d

Please sign in to comment.