Skip to content

Runtime cannot load agent when using latest 1.1.1 release #189

@Loupi

Description

@Loupi

Describe the bug
Using the latest 1.1.1 release with direct code deployment (zip), when using "test endpoint" in the AWS console,
getting this error: Unable to invoke endpoint successfully: Runtime initialization time exceeded. Please make sure that initialization completes in 30s..

To Reproduce
Upgrate to 1.1.1, build zip, deploy, test endpoint.

Expected behavior
Agent runs

Additional context
Downgrading to 1.0.7 everything runs fine.

Agent built with Strands 1.19.0.

The bedrock-agentcore 1.1.1 package added pre-commit>=4.2.0 as a hard runtime dependency, which is unusual and likely a packaging bug. This brings in 10+ unnecessary transitive dependencies (virtualenv, nodeenv, cfgv, identify, etc.) that may cause compatibility issues in the production environment.
The build zip file was 8Mb larger.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions