-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] BlobClient.UploadAsync never completes #12811
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage. |
Hi @pekspro, it appears you a mixing V11 and V12 code. Using only V12 code, I can't repo the issue:
I recommend removing the V11 NuGet dependencies from your project. |
Thanks for a quick reply @seanmcc-msft. I am using version 12.4.4, my csproj looks like this:
I get the same problem with your code after this line was removed:
|
You need to reset the stream.Position to 0 before upload, this is by design. |
@seanmcc-msft, if that is by design, then Also, why does position needs to be 0? Why can not it just read the stream from the current position to the end? This works fine when we are working with ordinary files:
I agree that is very rare and I can not say this is important to support. I just think this is strange. |
I'm going to close this issue, but please free to continue contributing on #10814. |
Describe the bug
BlobClient.UploadAsync never completes if it is called with a Stream where Position isn't 0.
Expected behavior
If should write the stream from the current position, or throw an Exception.
Actual behavior (include Exception or Stack Trace)
If never completes
To Reproduce
The following code shows the problem:
Environment:
dotnet --info
output for .NET Core projects): Microsoft.NETCore.App 3.1.5, Windows 10 19.09The text was updated successfully, but these errors were encountered: