I’m having problems with webhook
custom function. I’d like to execute these commands here:
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
const bodyData = this.getBodyData();
const message = bodyData.message;
const jid = bodyData.jid;
await this.helpers.request({
method: "POST",
uri: 'http://localhost:3002/text-message',
body: { message, jid },
headers: { 'Content-Type': 'application/json' }
});
return {
workflowData: [this.helpers.returnJsonArray(bodyData)],
};
}
How can I stop to return these ECONNREFUSED? I’m not inheriting any function of webhookMethods
.