Sync stream downloading now raises azure.core.exceptions.DecodeError rather than requests.exceptions.ContentDecodingError
Bugs Fixed
Add response body to string representation of HttpResponseError if we're not able to parse out information #21800
azure-core_1.20.1
1.20.1 (2021-11-08)
Bugs Fixed
Correctly set response's content to decompressed body when users are using aiohttp transport with decompression headers #21620
azure-core_1.20.0
1.20.0 (2021-11-04)
Features Added
GA send_request onto the azure.core.PipelineClient and azure.core.AsyncPipelineClient. This method takes in
requests and sends them through our pipelines.
GA azure.core.rest. azure.core.rest is our new public simple HTTP library in azure.core that users will use to create requests, and consume responses.
GA errors StreamConsumedError, StreamClosedError, and ResponseNotReadError to azure.core.exceptions. These errors
are thrown if you mishandle streamed responses from the azure.core.rest module
add kwargs to the methods for iter_raw and iter_bytes#21529
no longer raise JSON errors if users pass in file descriptors of JSON to the json kwarg in HttpRequest#21504
Added new error type IncompleteReadError which is raised if peer closes the connection before we have received the complete message body.
Breaking Changes
SansIOHTTPPolicy.on_exception returns None instead of bool.
Bugs Fixed
The Content-Length header in a http response is strictly checked against the actual number of bytes in the body,
rather than silently truncating data in case the underlying tcp connection is closed prematurely.
(thanks to @jochen-ott-by for the contribution) #20412
UnboundLocalError when SansIOHTTPPolicy handles an exception #15222
Add default content type header of text/plain and content length header for users who pass unicode strings to the content kwarg of HttpRequest in 2.7 #21550
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps azure-core from 1.11.0 to 1.21.1.
Release notes
Sourced from azure-core's releases.
... (truncated)
Commits
f843d16
[core] revert error logging (#22023)782cdda
Increment package version after release of azure-core (#21991)46fa4a7
update release date and doc (#21969)ca755a8
License client only (#21962)272091a
[core] add non odatav4 error bodies to message (#21800)6bcbe7f
Fix the type for LROPoller wait timeout (#21913)4205ea9
raise decode error instead of ContentDecodingError (#19433)a1e69a8
Increment version for core releases (#21649)596e2de
update changelog (#21644)e06b8aa
[rest] add decompression tests and fix multiple body() calls (#21630)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)