Help

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

Scripting: fetch breaks the app execution

272 1
cancel
Showing results for 
Search instead for 
Did you mean: 

I’m having a problem using fetch with the scripting app.
My code looks like this:

records.forEach(async (record) => {
  try {
    // works until here
    const response  = await fetch(...)      
   // never gets here either
  } catch (err) {
   // never gets here either
  }
} )

It seems like there’s something going on with fetch that breaks further execution and I’m unable to debug it.

1 Reply 1

If anyone else will encounter this issue, getting rid of forEach in favor of for of solved this issue for me