Azure / azure-sdk-for-net

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.
MIT License
5.47k stars 4.8k forks source link

[BUG] Azure blob storage timeout #46450

Open onionhammer opened 1 month ago

onionhammer commented 1 month ago

Library name and version

12.20.0

Describe the bug

image

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

  1. Create a BlobServiceClient with a URI and a TokenCredential
  2. Create a minimal ASP.NET API
  3. Use the response body stream to pass the to the DownloadToAsync

Environment

Linux / Azure Container Apps

github-actions[bot] commented 1 month ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.