I’m trying to debug a netlify function that works correctly locally.
The function returns a 502 on netlify and logs the following error:
error decoding lambda response: json: cannot unmarshal object into Go struct field lambdaInvokeResponse.body of type string
The code for the function:
Any idea what’s going on here?