awslabs / awslabs/agentcore-samples
Amazon Bedrock AgentCore Samples - [Bug]
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 30
Description
**Describe the bug**
when downloading a file using agentcore browser tool, I am not getting the file contents when I try to save it locally.
I am using nova act for browser automation and I am using agentcore browser tool for execution, but when I try to download the file inside the browser and store it in locally, I am not getting any contents.
**To Reproduce**
Steps to reproduce the behavior (or some version of this):
1. Setup Nova Act with Agentcore browser
2. try to go to any website which has a download option
3. Once the file is downloaded, save the file locally
4. here is the download script
```
with nova.page.expect_download() as download_info:
nova.act("Wait till the page loads and then click on the Export button")
file_name = f"data/awspartner-report.csv"
logger.info(f"Saving downloaded file as: {file_name}")
logger.info(download_info.value)
download_info.value.save_as(f"{file_name}")
logger.info("Checking download completion status")
```
**Expected behavior**
There will be empty file in the destination folder with size 0B.
**Screenshots**
**! Additional context !**
The feature is working fine when I am using local browser.
Contributor guide
Research direction
The issue names no repository file, test, or entry point; start with the provided Nova Act and AgentCore browser setup and download script. Compare the local-browser behavior with AgentCore, then verify that save_as produces a non-empty local file containing the downloaded contents.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- ai, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100