Scripting: fetch breaks the app execution

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.

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

This topic was solved and automatically closed 15 days after the last reply. New replies are no longer allowed.