Improve aiohttp
error handling by converting response body to error
#477
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
The Python Connector currently uses
raise_for_status=True
when using aiohttp'sClientSession
.The default behaviour for this argument is to close http connections when response status code > 400 and raise generic error message (ex.
400 Bad Request
), so the response body which may have a more helpful error message or instructions cannot be accessed.It is recommended to not use
raise for status
if access to the errors response body is required. Because of this the Python Connector should do something along the following (pseudocode):The text was updated successfully, but these errors were encountered: