Bug: ELIFECYCLE Command failed with exit code 141 on automatic tests. #6321
Labels
blocked/more-info-needed
More info is needed from the requester. If no response in 14 days, it will become stale.
I spent about six hours debugging this and figured out what's up.
Description:
I had a bug with the
sam local start-api
command. The CLI command throws 141 and exits the whole stack. No other info. I was running automated tests against a local backend environment. I have an API Gateway + Authorizers + Lambda + DynamoDB stack. I'm using remote DynamoDB. We're also using CDK and testing it locally with SAM. I couldn't reproduce the error with Postman. I fixed the error with 5s -> 30s timeout on testsSteps to reproduce:
sam local start-api
Observed result:
Sometimes the backend crashes on different functions. We now know it's about the timeout of the frontend.
Expected result:
No error
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Linux, running inside a VSCode dev container. CDK through NPM.
SAM info:
{
"version": "1.99.0",
"system": {
"python": "3.11.3",
"os": "Linux-6.5.4-76060504-generic-x86_64-with-glibc2.35"
},
"additional_dependencies": {
"docker_engine": "24.0.7-1",
"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_RUST_CARGO_LAMBDA"
]
}
The text was updated successfully, but these errors were encountered: