generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
bedrock-agentcore-sdk-python/src/bedrock_agentcore/tools/code_interpreter_client.py
Line 634 in a48944a
| return base64.b64decode(resource["blob"]).decode("utf-8") |
The download_file and download_files has a .decode("utf-8") that seems problematic for binary files and causes:
packages/bedrock_agentcore/tools/code_interpreter_client.py", line 670, in download_files
files[file_path] = base64.b64decode(resource["blob"]).decode("utf-8")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
Version 1.2; Python 3.14
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels