This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
When invoking blobClient.DownloadToAsync, passing in httpContext.Response.Body, occasionally the call will just sit until the http request eventually times out, at which point the cancellationtoken stops the call.
A subsequent request to the same blob then passes and downloads quickly.
Expected behavior
The blob should download every time, not fail the first time.
Actual behavior
The first download fails, but subsequent downloads succeed.
Reproduction Steps
Create a BlobServiceClient with a URI and a TokenCredential
Create a minimal ASP.NET API
Use the response body stream to pass the to the DownloadToAsync
Library name and version
12.20.0
Describe the bug
When invoking blobClient.DownloadToAsync, passing in
httpContext.Response.Body
, occasionally the call will just sit until the http request eventually times out, at which point the cancellationtoken stops the call.A subsequent request to the same blob then passes and downloads quickly.
Expected behavior
The blob should download every time, not fail the first time.
Actual behavior
The first download fails, but subsequent downloads succeed.
Reproduction Steps
BlobServiceClient
with a URI and a TokenCredentialDownloadToAsync
Environment
Linux / Azure Container Apps