Skip to content

Bug: sam build - ReadTimeout #8426

@A-Shevchenko

Description

@A-Shevchenko

Description:

Error: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60) when running sam build

Steps to reproduce:

I have a SAM stack with several Lambdas (Python), one of them seems to have quite heavy list of dependencies. sam build fails with the mentioned error the build inside container was successful according to log

Observed result:

sam-build.log

Expected result:

I expect successful result of sam build

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

{
  "version": "1.146.0",
  "system": {
    "python": "3.11.10",
    "os": "Linux-6.11.0-1018-azure-x86_64-with-glibc2.39"
  },
  "additional_dependencies": {
    "container_engine": "Docker(v28.0.4)",
    "aws_cdk": "Not available",
    "terraform": "Not available"
  },
  "available_beta_feature_env_vars": [
    "SAM_CLI_BETA_FEATURES",
    "SAM_CLI_BETA_BUILD_PERFORMANCE",
    "SAM_CLI_BETA_TERRAFORM_SUPPORT",
    "SAM_CLI_BETA_PACKAGE_PERFORMANCE",
    "SAM_CLI_BETA_RUST_CARGO_LAMBDA"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    stage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions