Help

Scripting Error using remoteFetchAsync (not valid JSON error message)

Topic Labels: Scripting
728 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Chris_Guthrie
7 - App Architect
7 - App Architect

Hello. I had been running this script via a Button for many months... until today, when it stopped working. I am now getting an error message. Any debugging help would be appreciated. Thanks!

let oob = '{"task": "IL"}';

    let response = await remoteFetchAsync('https://hooks.airtable.com/workflows/v1/genericWebhook/appjM4uZHzs1Cbg3f/wfl3DsIZym7Q43Qw1/wtr9v3u61f4huzcgQ', {
        method: 'POST',
        body: oob,
        headers: {
            'Content-Type': 'application/json',
        },
    });
    console.log(await response.json());

2023-05-01_16-18-00.png 

0 Replies 0