Skip to content

Commit

Permalink
add catch to capture 412 error in BlobsStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Nov 11, 2024
1 parent 0b16ac0 commit 01004af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/Microsoft.Bot.Builder.Azure.Blobs/BlobsStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ internal BlobsStorage(BlobContainerClient containerClient, JsonSerializer jsonSe
$"An error occurred while trying to write an object. The underlying '{BlobErrorCode.InvalidBlockList}' error is commonly caused due to concurrently uploading an object larger than 128MB in size.",
ex);
}
catch (RequestFailedException ex)
when (ex.Status == 412)
{
throw new InvalidOperationException($"Etag conflict: {ex.Message}");
}
}
}

Expand Down

0 comments on commit 01004af

Please sign in to comment.