I have a netlify function that looks like this:
exports.handler = async function (event, context, callback) {
var { name, email, message, } = JSON.parse(event.body)
console.log({name, email, message})
}
in one site, it works, in another, it gives the following error:
TypeError: Busboy is not a constructorSep 1, 07:31:18 AM: 3a89e58f ERROR at /var/task/mailer.js:70:24Sep 1, 07:31:18 AM: 3a89e58f ERROR at new Promise (<anonymous>)Sep 1, 07:31:18 AM: 3a89e58f ERROR at parseMultipartFormData (/var/task/mailer.js:69:12)Sep 1, 07:31:18 AM: 3a89e58f ERROR at exports.handler (/var/task/mailer.js:20:32)Sep 1, 07:31:18 AM: 3a89e58f ERROR at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1147:29)
Is there something I am missing? I have never seen such an error before. I have tried to look at similar issues in this forum with no luck.