Skip to content

Bedrock timeout/error exception for Amazon model

0

Hi all

I'm in the middle of testing Bedrock agent. When I use Amazon model it produces the following error. The agent includes knowledge base, guardrail and action groups using a lambda function.

Dependency resource: received model timeout/error exception from Bedrock. Try the request again.

Thanks.

asked 10 months ago437 views

1 Answer
-1

Based on your description, you're encountering a common issue with Bedrock Agents when using Amazon models. The error "Dependency resource: received model timeout/error exception from Bedrock" typically occurs when there's an issue with how the model interacts with your agent components.

One common cause of this error is related to naming conventions in your action groups. Specifically, if you have hyphens ("-") in your action group name, this can cause the error you're seeing. Try replacing any hyphens with underscores ("_") in your action group names.

For example, change:

agent-action-group

To:

agent_action_group

This issue appears to be connected to the toolSpec.name regex that doesn't allow hyphens, but unfortunately, there's no clear error message about this limitation.

If you've already checked your action group naming and that's not the issue, you might also want to:

  1. Verify permissions between your Bedrock Agent and Lambda function
  2. Check if your Lambda function is timing out
  3. Ensure your AWS SDK version is up-to-date
  4. Try implementing more extensive logging to pinpoint where the error occurs

Some users have reported that this issue occurs specifically with certain Amazon Nova models but not with other models like Claude 3.5 or Titan Text. If possible, you might want to temporarily test with a different model to see if the issue persists.
Sources
Issue with Bedrock Agents and Lambda Function – Model Timeout/Error | AWS re:Post
Service unavailable exception thrown for one agent, but not for multi-agent amazon bedrock | AWS re:Post

answered 10 months ago

  • Hyphen works, underscore did not work.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.