Skip to content

Commit

Permalink
airbyte-cdk: fix problem with mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
aldogonzalez8 committed Nov 28, 2024
1 parent 34ffadf commit 765c5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airbyte_cdk/sources/streams/http/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def _handle_error_resolution(

if error_resolution.response_action == ResponseAction.FAIL:
if response is not None:
error_message = f"'{request.method}' request to '{request.url}' failed with status code '{response.status_code}' and error message '{response.content}'"
error_message = f"'{request.method}' request to '{request.url}' failed with status code '{response.status_code}' and error message '{response.content.decode('utf-8', errors='replace')}'"
else:
error_message = (
f"'{request.method}' request to '{request.url}' failed with exception: '{exc}'"
Expand Down

0 comments on commit 765c5ea

Please sign in to comment.