There's probably a simple solution to this but I'm stuck. My lambda function being called by API Gateway should return my json response but it's giving me the same "Malformed proxy response" error
I've fiddled with the response a dozen times but as far as i can tell, there's nothing wrong with it? It's the same response as i'd get from a postman API. What am I doing wrong here?
The following screenshot is the response when testing in cloud9, but when fetching from API gateway using proxy response parameters, i get the "Malformed proxy response" error.
Response
{
"statusCode": 200,
"list": [
{
"id": 8000048,
"name": "ESTACAO DE SERVICO TETE",
"addr": "EN7, Bairro Samora Machel, Unidade Mpadue",
"lat": -16.195047,
"lon": 33.585467,
"amen": [
false,
false,
"",
false,
false,
false,
false,
false,
false,
"",
false,
false,
false,
false
],
"fuel": [
null,
null,
null,
null,
null
],
"loc": [
"Tete",
"Center",
"Mozambique",
"MZ"
]
}
]
}
