Hi,
I want to send a webhook from my server, i defined a webhook and the json file:
const webhookUrl = ‘wwwww’;
const yourToken = ‘ttttt’;
const payloadData = {
authorization: yourToken,
payload: {
blockKind: ‘action’,
inboundFieldValues: {
itemId: 1401819003,
boardId: 1401818805,
text: ‘ABC123’,
columnId: ‘description’
},
inputFields: {
itemId: 1401819003,
boardId: 1401818805,
text: ‘ABC123’,
columnId: ‘description’
},
recipeId: 30211924,
integrationId: 86765949
}
};
I recieve the webhook on Make,
but in the server i get the error:
[0] Error sending webhook: SyntaxError: Unexpected token A in JSON at position 0
[0] at JSON.parse ()
[0] at parseJSONFromBytes (node:internal/deps/undici/undici:6498:19)
[0] at successSteps (node:internal/deps/undici/undici:6472:27)
[0] at node:internal/deps/undici/undici:1145:60
[0] at node:internal/process/task_queues:140:7
[0] at AsyncResource.runInAsyncScope (node:async_hooks:204:9)
[0] at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
[0] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
How should i send the token?