bug: role error blocking browser session execution

Open
#25 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
aws, python
Domain
cloud, security

Research direction

Start with labs/module4/notebooks/5_agentcore_tool_browser.ipynb at cell 13 and inspect the permissions for agentcore-bastion-role. Reproduce the browser request and verify that the StartBrowserSession authorization error is resolved.

Written by the indexing model from the issue text.

Description

Issue 13: role error blocking browser session execution

Where: labs/module4/notebooks/5_agentcore_tool_browser.ipynb | Cell#13

Error:

Received browser tool request: apple watch series 10 price
Tool response: id='tooluse_E1tganzYSGizdwfWfQ_Yew' content=[TextContent(type='text', text="{'messages': [{'role': 'tool', 'content': 'The agent has started a background web search. This may take a moment.'}]}")] isError=False
Error during background browser task: An error occurred (AccessDeniedException) when calling the StartBrowserSession operation: User: arn:aws:sts::625903560744:assumed-role/agentcore-bastion-role/i-0106e64b8d067b836 is not authorized to perform: bedrock-agentcore:StartBrowserSession on resource: arn:aws:bedrock-agentcore:us-east-1:aws:browser/aws.browser.v1 because no identity-based policy allows the bedrock-agentcore:StartBrowserSession action
{
  "role": "assistant",
  "content": [
    {
      "type": "text",
      "text": "I've started a background search to find the price of the Apple Watch Series 10. Please wait a moment while I retrieve the information."
    }
  ],
  "tool_calls": [],
  "tool_results": [],
  "timestamp": 1767851249.342153
Image
Dominant language
Python
Stars
134
Forks
55
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws-samples/sample-agentic-platform

All issues in aws-samples/sample-agentic-platform

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.