[BUG] empty responses throw exceptions #47544
Labels
Azure.Core
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
duplicate
This issue is the duplicate of another issue
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Library name and version
Azure.Core 1.44.0
Describe the bug
Empty HTTP responses throw exceptions when using Azure.Core >= 1.44.0 with System.Memory.Data == 6.0.0 due to dotnet/runtime#68262. It was fixed in dotnet/runtime#68349, so System.Memory.Data >= 7.0.0 no longer has the bug. Please consider updating to System.Memory.Data >= 7.0.0
Sounds like you have a plan:
I understand the workaround is to update our apps ourselves to System.Memory.Data >= 7.0.0. In this internal pull request, I have to update it in a couple of dozen projects. If we miss one, we potentially have runtime exceptions in the clients.
Expected behavior
Empty HTTP responses do not throw exceptions.
Actual behavior
Empty HTTP responses throw exceptions.
Reproduction Steps
The internal pull request is using Geneva Actions, so here is the unit test that reproduced it:
It should be pretty easy to do in the Azure.Core unit tests as well.
Environment
No response
The text was updated successfully, but these errors were encountered: