I’m using 1 Lambda function actively running in production on the site - but when trying to submit a POST request via the endpoint, I am getting a 502 error on the client-side and the following via the Netlify function log -
1:47:35 PM: 2020-12-26T18:47:35.641Z 9f802e38-7d53-49a9-ab66-907fe83315ca ERROR Invoke Error {“errorType”:“TypeError”,“errorMessage”:“Cannot read property ‘split’ of undefined”,“stack”:[“TypeError: Cannot read property ‘split’ of undefined”," at Runtime.exports.handler (/var/task/send-messages.js:3:41)“,” at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)"]}
This seems to be saying that my values are not being passed to the function, but logging the lambda does show them being captured in the body.
Relatively new to using lambda functions via Netlify, so I am probably missing something simple.
Hey @maxspangler,
Curious to hear how this one ended up! Did you give @rendall’s suggestion here a try? Instead of logging event.recipients, log event.body.recipients on the Netlify Function side?