Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

JSON POST headers

Topic Labels: Scripting extentions
214 1
Showing results for 
Search instead for 
Did you mean: 

In a fetch for JSON POST adding these two headers:

let response = await fetch(url, {
    method: 'POST',
    body: JSON.stringify(data),
        'Content-Type': 'application/json',
        'Accept': 'text/plain', 

returns a TypeError: Load failed message. But the target API needs both headers specified. Each header individually does not error, but the API doesn’t respond.

Any help appreciated.

1 Reply 1

Solved by using remoteFetchAsync instead of fetch.