aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.47k stars 408 forks source link

"sam build" timed out with direct-invoke of Lambda Function #3219

Closed normand1 closed 1 year ago

normand1 commented 1 year ago

Problem

Steps to reproduce the issue

Expected behavior

Sucessfully sam build and invoke my lambda function

System details (run the AWS: About Toolkit command)

2023-03-08 12:30:58 [ERROR]: log level: info
2023-03-08 12:30:58 [INFO]: Retrieving AWS endpoint data
2023-03-08 12:30:58 [INFO]: OS: Darwin arm64 22.3.0
2023-03-08 12:30:58 [INFO]: Visual Studio Code extension host:  1.76.0
2023-03-08 12:30:58 [INFO]: AWS Toolkit:  1.64.0
2023-03-08 12:30:58 [INFO]: node: 16.14.2
2023-03-08 12:30:58 [INFO]: electron: 19.1.11
2023-03-08 12:31:00 [WARN]: AwsContext: no default region in credentials profile, falling back to us-east-1: 
2023-03-08 12:31:01 [WARN]: auth (codecatalyst): removing saved connection "codecatalyst.savedConnectionId" as it no longer exists
2023-03-08 12:31:01 [WARN]: auth (codewhisperer): removing saved connection "codewhisperer.savedConnectionId" as it no longer exists
2023-03-08 12:31:56 [INFO]: Preparing to run locally: src/Handlers/index.<redacted>
2023-03-08 12:31:56 [INFO]: Building SAM application...
2023-03-08 12:31:56 [INFO]: Command: (not started) [/opt/homebrew/bin/sam build --build-dir /tmp/aws-toolkit-vscode/vsctkBADfvB/output --template /Users/<redacted path>/template.yaml]
2023-03-08 12:33:27 [ERROR]: SamLaunchRequestError: "sam build" failed. Timed out waiting for build. [BuildFailure]
justinmk3 commented 1 year ago

See also existing "timed out" issue: https://github.com/aws/aws-toolkit-vscode/issues?q=is%3Aissue+is%3Aopen+%22sam+build%22+timed+out