Skip to main content

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

S0] at JSON.parse ()

0] at parseJSONFromBytes (node:internal/deps/undici/undici:6498:19)

i0] at successSteps (node:internal/deps/undici/undici:6472:27)

i0] at node:internal/deps/undici/undici:1145:60

c0] at node:internal/process/task_queues:140:7

t0] at AsyncResource.runInAsyncScope (node:async_hooks:204:9)

s0] at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)

a0] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)


How should i send the token?

Hello there @shay.butran,


Would you be able to please fill this form so our team can take a look into this? Please add as much detail about your case as possible. If you can, please show a screen recording of the steps you take and the error message appearing!


Looking forward to hearing from you via the form!


Cheers,

Matias


Reply