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
Passing the Content-Type to `_raise_errors` will cause the json body to
be parsed and included in the `TransportError`.
This matches the behaviour of the sync client.
Fixesopensearch-project#225
Signed-off-by: Gordon Govan <gg@kialo.com>
Passing the Content-Type to `_raise_errors` will cause the json body to
be parsed and included in the `TransportError`.
This matches the behaviour of the sync client.
Fixes#225
Signed-off-by: Gordon Govan <gg@kialo.com>
What is the bug?
TransportError
s are missing the parsed json stored on theinfo
property when using the library with async.The cause is the content type is not being passed to
_raise_errors
from the async code.See the difference between the sync code and the async code
How can one reproduce the bug?
Make bad requests (e.g. 400s) when using the async code.
What is the expected behavior?
TransportError
sinfo
property should contain a dict with the parsed response (as in non-async use of the library).What is your host/environment?
Linux + MacOs
Do you have any screenshots?
Links to code above.
Do you have any additional context?
This bug was introduced in 1.1.0 when the content-type header started to be inspected before parsing the json. 1cd15b0
The text was updated successfully, but these errors were encountered: