-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Ignored text encoding specified in method parameter #20795
Copy link
Copy link
Closed
Labels
Azure.CoreClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Metadata
Metadata
Assignees
Labels
Azure.CoreClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Describe the bug
AioHttpTransportResponse'stextmethod ignoresencodingparameter, if it is notNone.When calling
azure.storage.blob.aio.BlobClient'sstage_blockmethod, its corresponding response "201 created" with empty body.AioHttpTransportResponse#textmethod ignores request's "uft-8" encoding and get failed guessing encoding against empty body (withchardet). (andchardetpackage prints "DEBUG" level log "no data received!" and "no probers hit minimum threshold")This failing encoding guess is harmless but time consuming.
To Reproduce
Steps to reproduce the behavior:
azure.storage.blob.aio.BlobClient#stage_blockand await it.chardetlogger prints "no data received!" and "no probers hit minimum threshold".Expected behavior
If encoding is specified, respect it.
Screenshots
