azblob: StorageError might be empty for the current implement UnmarshalXML
in the azurite environment.
#16542
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
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.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Storage
Storage Service (Queues, Blobs, Files)
Bug Report
import github.com/Azure/azure-sdk-for-go/sdk/storage/azblob
master
go version
This is my code, and the azurite is running.
In fact, container
test254
is not exsit in the Azurite. So we will see the error print in the terminal.But terminal show this,
Instead, it should show this,
I insert
fmt.Printf
to print the info into these positions:azure-sdk-for-go/sdk/azcore/runtime/response.go
Lines 73 to 92 in d528b56
print the
payload
:azure-sdk-for-go/sdk/storage/azblob/zc_storage_error.go
Lines 187 to 210 in 7551544
insert after
L195
to print token namefmt.Printf("token name is %s\n", tokName)
insert after
L199
to print descriptionfmt.Printf("description is %s\n", e.description)
insert after
L204
to print detailfmt.Printf("detail[%s]=%s\n", tokName, string(tt))
I found each value are overwrite with empty value.
after insert
case xml.EndElement:
to reset tokenName, everything seems ok.run the Azurite, and run my code above.
The text was updated successfully, but these errors were encountered: