Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

AWS lambda api gateway error “Malformed Lambda proxy response”

Asked by Akansha Chawla Nov 30, -0001 1.3K views 1 answer
Share

About this question

I am trying to set up a hello world example with AWS lambda and serving it through API gateway. I clicked the "Create a Lambda Function", which set up the API gateway and selected the Blank Function option. I added the lambda function found on AWS gateway getting started guide:

exports.handler = function(event, context, callback) {

  callback(null, {"Hello":"World"});  // SUCCESS with message

};

The issue is that when I make a GET request to it, it's returning back a 502 response { "message": "Internal server error" }. And the logs say "Execution failed due to configuration error: Malformed Lambda proxy response".

Your answer

1 Answer

Akansha Chawla Latest answer

Answered on Jun 21, 2021

Was this helpful?

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.