Invalid lambda response received: Lambda response must be valid json

See original GitHub issue

Close the issue since we released two options --container-host and --container-host-interface. In short, if you would like to run SAM CLI in a docker container on macOS or Windows, use --container-host with value host.docker.internal will have SAM CLI work properly.

_Originally posted by @xazhao in https://github.com/aws/aws-sam-cli/issues/2436#issuecomment-827950506_

This error is happening with just the sam cli on mac os for me and i’m not using a docker container when running these commands, i am running on my local machine without docker.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
xazhaocommented, Sep 9, 2021

Hey @debragail, could you use the template and add some details so that we can know more about the issue? Thanks!

0reactions
github-actions[bot]commented, Sep 22, 2021

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1.13.1: Invalid lambda response received: Lambda ... - GitHub
Invalid lambda response received : Lambda response must be valid json . This is pretty disruptive for us. We use Docker to ensure...
Read more >
Why does my AWS Lambda Function return "Invalid JSON ...
So the lambda function was returning null as these strings didn't pass validation - and null isn't valid JSON. So the temporary fix...
Read more >
AWS SAM "No response from invoke container for" wrong ...
AWS SAM "No response from invoke container for" wrong function name ... 18:21:46,733 | Invalid lambda response received: Lambda response must be valid...
Read more >
The Lambda function returned invalid JSON - CodeJam by Val
The Lambda function returned invalid JSON: the JSON output is not parsable. There could be a number of reasons you're getting this error ......
Read more >
AWS Lambda function errors in Node.js
When you invoke a Lambda function, Lambda receives the invocation request and validates the permissions in your execution role, verifies that the event...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found