Unable to run sam local start-api in debug mode since upgrade to 0.2.7
See original GitHub issueStarting up sam local for debugging with following command:
sam local start-api -p 3010 -d 5858
Also tried setting the SAM_LOCAL_DEBUG environment variable.
export SAM_LOCAL_DEBUG=5858
In both cases, when sending a request to an endpoint on the api on port 3010, i can see the lambda gets invoked, but an exception is thrown before going in debug mode.
2018/02/27 21:44:24 Invoking specs_get_all.handler (nodejs6.10)
2018/02/27 21:44:24 Mounting /Users/user/development/bitbucket/cda-validation-services/aggregate-service as /var/task:ro inside runtime container
2018/02/27 21:44:25 Function returned an invalid response (must include one of: body, headers or statusCode in the response object): unexpected end of JSON input
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Unable to run sam local start-api in debug mode ... - GitHub
I'm seeing a similar problem with a java8 runtime function, also since upgrading from 0.2.6 to 0.2.7. sam local invoke -t lambda-stack.yaml -d ......
Read more >sam local start-api - AWS Serverless Application Model
The AWS SAM CLI first tries to locate a template file built using the sam build command, located in the .aws-sam subfolder, and...
Read more >How to debug application made by AWS SAM in VSCode?
I made Go application by AWS SAM. Now I try to debug this sample application in VSCode, but It fails so I want...
Read more >Debug Serverless AWS Lambda Functions locally with SAM ...
A tutorial on debugging Amazon Web Services (AWS) Lambda ... This script runs the SAM CLI in debug mode and expects a path...
Read more >How to setup a Serverless application with AWS SAM and ...
TLDR; AWS Serverless Application Model (SAM) is used to quickly ... run nodemon --exec sam build next to the command sam local start-api...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed and created a new release 0.2.8
@makskant Can you cut a new issue so we can start tracking this separately? Do mention the version of Python, version of SAM CLI, platform etc so we can debug.