You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix for formatting empty, malformed, or non json payload in error messages (#40889)
* Accomdate diagnsotis format error for empty or malformed payload
In some cases when we get an exception the payload is not in a json format or is empty in which case we accommodate for that when formatting the error message.
* Add fix for async client with logging, and setting defaults that are not none for open telemetry
* Update _cosmos_http_logging_policy.py
* Update _cosmos_http_logging_policy.py
* Update _cosmos_http_logging_policy.py
* Update CHANGELOG.md
* Update sdk/cosmos/azure-cosmos/CHANGELOG.md
Co-authored-by: Simon Moreno <30335873+simorenoh@users.noreply.github.com>
* Update _cosmos_http_logging_policy.py
* Update test_cosmos_http_logging_policy_async.py
fixes test that were broken for async tests of http logging policy
* Update test_cosmos_http_logging_policy_async.py
* Update test_cosmos_http_logging_policy.py
* Update test_cosmos_http_logging_policy_async.py
---------
Co-authored-by: tvaron3 <tomas.varon1802@gmail.com>
Co-authored-by: Simon Moreno <30335873+simorenoh@users.noreply.github.com>
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-cosmos/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
#### Breaking Changes
8
8
9
9
#### Bugs Fixed
10
+
* Fixed Diagnostics Error Log Formatting to handle error messages from non-CosmosHttpResponseExceptions. See [PR 40889](https://github.com/Azure/azure-sdk-for-python/pull/40889/files)
10
11
* Fixed bug where `multiple_write_locations` option in client was not being honored. See [PR 40999](https://github.com/Azure/azure-sdk-for-python/pull/40999).
0 commit comments