I am trying to connect my webhook up and have the challenge console logging on the lambda function, so I know it is not my gateway connection or my lambda function. What am I doing wrong in the return?! Below is the code. exports.handler = event => {
console.log( {“challenge”: JSON.parse(event.body).challenge});
return event.body;
};
Page 1 / 1
Finally got it to work. Below is my index.js file using node.js
exports.handler = async event => {
console.log( {"challenge": JSON.parse(event.body).challenge});
const response = {
statusCode: 200,
body: event.body
};
console.log(response);
return response;
};
Amazing! Glad you got it working.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
Login to monday.com
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.