Troubleshoot Claude Managed Agents
Read the response body, the session's events, and the tool runner's log together. A request can succeed before the agent or its tool runner is ready to do the work. On AgentCore, the tool runner's log is in CloudWatch Logs, in the log group named for your runtime under /aws/bedrock-agentcore/runtimes/. Self-hosted, it goes to the terminal.
Every request returns HTTP 404
If every path returns HTTP 404 no such route, check the base URL, which ends in /anthropic/v1, and that its Region is one in Supported Regions and endpoints. A request without the anthropic-beta header returns HTTP 404 with the message This API requires the managed-agents-2026-04-01 value in the anthropic-beta header.
A 404 no such session or no such agent means the ID is not in this account and project. Check the anthropic-workspace-id header: a resource is found only in the project it was created in. If you send x-amz-role-arn on a session route, it must be the session's own role, which is the role in the session's execution_identity. Otherwise the message reads no such session, or it was created with a different role than x-amz-role-arn. A 400 session_id is not a valid session id (or the same for an agent or memory store) means the ID is not one the service issues: check that it was copied whole. A 404 the project does not exist means the project in anthropic-workspace-id does not exist in this account and Region.
A 400 the project is archived means the project was archived. You can still list, read, and archive its agents, sessions, and memory stores, list agent versions, and delete its sessions and memory stores. You can still redact memory versions, list and remove tags, and get the encryption configuration. Nothing in it can be created or otherwise changed, and its sessions take no events.
Requests return HTTP 401 or 403
Run aws sts get-caller-identity with the profile you sign with. Confirm that:
The identity is an assumed role. Requests signed by an IAM user or the root user get 403.
The signature uses the service name
bedrockand the endpoint's Region, and sends the session token.The role has the actions it calls. A 403 for a missing permission names the identity that signed, the action, and the resource. See Security and IAM roles.
For an agent create, an agent update that sets the role, or a session create that names a role, the caller may pass that role, with
iam:PassedToServiceset tobedrock.amazonaws.com. A session that inherits its agent's role needs noiam:PassRole.The session role is in your own account. A role in another account returns 403
the role in ... belongs to another account, naming the role field orx-amz-role-arn, wherever you sent it.
A 403 This service is not available for this account. For access options, contact AWS Sales is not a permissions problem. Contact AWS Sales or your AWS account team, as the message says.
The role you deploy stacks with is not always the role your application signs with. Check AWS_PROFILE in each terminal.
If assuming the caller role fails with AccessDenied ... sts:AssumeRole, the identity you assume it from needs its own sts:AssumeRole permission on that role. See Step 5: Give your applications permission to call the API.
Requests return HTTP 429
A 429 rate_limit_error with the message rate limit exceeded; retry after a brief delay and retry-after: 1 means your account is over one of its request rates (see Rate limits). Wait retry-after seconds, then retry with backoff.
Do not retry a 403 or a 404 in a loop. Fix the policy or the ID first.
Retry a 429 after
retry-after, with backoff, not at once.
A tool runner that logs this account is dialing faster than its connect quota allows; retrying later is connecting too often. The tool runner waits and connects again by itself.
Creating a session returns HTTP 400
Message | Cause |
|---|---|
| The session role does not exist, its trust policy does not match the one in Step 1: Create the session role, or it lacks the tag |
| The runtime is in another account or Region. |
| The self-hosted ID names another project. It is the project ARN followed by |
| The agent has skills or the session has |
| A field this API does not take, such as |
| Outcomes aren't available. Send the goal as a |
| A |
| The session's |
| The model is not one the endpoint offers. |
| The agent has no role, or is an older agent with more than one role. Update the agent's role, then create the session. |
| The body names |
| An agent create names no role, or an empty one. Every agent needs one. |
| The body names the role twice. Send |
|
|
|
|
Tags or a memory store's fields return HTTP 400
Creates that set tags, the tag routes, and a memory store's create and update can return these errors.
Message | Cause |
|---|---|
| A memory store's create or update, or a tag route's body, names a field it does not take, such as a misspelled |
| A create names |
| The tags name two keys IAM reads as one, such as |
| A tag change adds a key the resource already has in another case. Use the key's existing spelling, or untag it first. |
The first message returns HTTP 400, 429, or 503
The service starts the session's container when you send the first message, so problems with the runtime appear here. AgentCore counts its rate limits and quotas against the account that owns the runtime, which is yours.
The service waits up to 20 seconds for the container. A container that takes longer to start, such as one with a large image, does not hold your request: the message is accepted and the turn begins while the container finishes starting. If it then fails to start, the turn's first tool call reports that no sandbox was available, and your next message starts the container again. In a session with S3 folders or files, a failed start lists session.error events instead, and the turn ends before the model is called (see S3 folders and files fail).
Message | Cause |
|---|---|
429 | Your account went over AgentCore Runtime's rate for new sessions or for data plane calls. Retry after |
429 | Your account has as many active AgentCore Runtime sessions as its quota allows. Delete sessions you no longer need, or request an increase in Service Quotas. |
| The runtime ARN is wrong, or the session role lacks |
| The session role's policy does not allow |
| AgentCore refused the call for another reason. The status and AWS error type are AgentCore Runtime's own answer to |
| The image could not be pulled or did not start. Check the tool runner role's ECR permissions and the image tag, and read the runtime's log. |
| The image holds an older or newer tool runner than the service. Rebuild the image with the tool runner from the current bundle, and update the runtime. |
| The tool runner creates a missing working directory, and couldn't: a file is at that path, or the user the tool runner runs as may not create a folder there. Create it in the |
503 | The image's entrypoint does not start |
503 | AgentCore failed or could not be reached. Retry. |
S3 folders and files fail
Errors, in Use S3 folders and files, lists each session.error type that a folder or file reports when it could not be put in place, with what to check.
What you see | Cause |
|---|---|
400 | The session is self-hosted. S3 folders and files need an AgentCore Runtime. |
400 | The runtime is on platform version V1. Move it to V2, or name a V2 runtime. The service keeps a runtime's platform version for up to five minutes, so a runtime you have just moved to V2 can still be refused for that long. |
Every folder fails as | The runtime is on platform version V1, or its image was not built from |
A folder fails as | The role may list the folder but not read its objects. Each start reads one object of each folder, so the role needs |
One | The container did not start, or its tool runner is from before S3 folders and refused the session's list. Rebuild the image from the current bundle with |
A session whose file has a name with | The image's tool runner is from a bundle before such names. Rebuild the image from the current bundle, and update the runtime. |
| S3 stores whole objects, so a mounted folder does not support rename, append, or change in place. Build the file in the working directory, then copy it in with |
A turn fails
What you see | Cause |
|---|---|
| An S3 folder or file could not be put in place. See S3 folders and files fail. |
| A model request failed. If every turn does this, check the session role's |
Every turn on a Claude Fable agent ends in | The account's data retention mode is not |
A | The session's container exited, for example because its process was killed. A session without S3 folders or files gets a new container on its next message, but one with them can't, because your policies hold its folders to that container's |
Tool calls time out | The tool runner was not connected. Self-hosted, start it before the first message. On AgentCore, read the runtime's log. |
A tool call fails with an error from the command | The command ran. Read the tool result. The program it needs may be missing from the image. |
An MCP call fails | The session role lacks |
A session stays running
Check whether a command is still running in the tool runner, and read the events for the last agent.tool_use. A long command keeps the turn going until it ends. To stop it, send user.interrupt. An interrupt does not undo what tools already did. A running session cannot be deleted or archived. Interrupt it first.
Deleting a session or memory store returns HTTP 503 or 429
A delete that returns one of these deleted nothing, and the same delete succeeds when you send it again.
Message | Cause |
|---|---|
503 | A service that the delete depends on didn't answer. Retry with backoff. |
429 | The delete was briefly throttled. Retry after |
429 | Another change to the resource, such as a tag change or another delete, was in progress. Retry after |
The stream shows nothing
The stream sends events as they happen, so it is quiet while the session is idle. Open it before you send a message, and read it as server-sent events, not as one JSON document. Lines that begin with : are keep-alive comments. To see what already happened, list the events.
The stream answers at once with a : connected line and then sends a comment every 15 seconds. If even : connected never arrives while the other calls work, something between you and the endpoint is holding the response back. A corporate proxy that inspects TLS commonly does this. Do one of the following:
If your security policy allows it, ask your network team to let server-sent event responses from
bedrock.<region>.amazonaws.compass through the proxy without buffering.Call the API from inside AWS, such as from a VPC or through a VPC endpoint.
List the session's events every few seconds instead of streaming them. Everything the stream sends is also in the list.
The service closes a stream that has carried no event for 10 minutes. List the events, then open it again.
A skill is not used
Check that the skill's SKILL.md exists at the path the agent names, inside the tool runner, not on the machine you deploy from. On AgentCore the skill must be in the image, so push a new image tag and deploy the runtime again after you change it. A session that is already running keeps its container. Create a new session to pick up the new image. The service lists skills whenever the agent has the bash tool, whatever its permission policy.
A skills folder in S3 needs no new image. The service lists a session's skills when the session is created, so a skill you add to the folder is listed in the sessions you create after that.
The self-hosted tool runner does not connect
See If the tool calls fail in Run the tool runner in a self-hosted environment.
The CloudFormation stack fails
What you see | Cause |
|---|---|
A role or the policy | The template names its roles and policy. Delete the ones you made by hand, or deploy into an account without them. |
The runtime fails to create | Read the resource's status reason. Usually the image tag does not exist in the repository, or the runtime name is taken. |
Information to retain for support
Record the AWS Region, the approximate time in UTC, the x-amzn-requestid of the failing request, the session ID, the HTTP status, and the error message. For tool problems, add the environment type, the tool runner's version, and its log. Remove credentials, prompts, and tool data you cannot share first.