Error: Isolate is disposed

We’ve got several automations running that hit API’s and update records.
Often times they run fine. Other times, they fail with this error:

ERROR

Error: Isolate is disposed
on line 1

Line one is updateArray.
This is the array:

let updateObject = {};
updateObject[“id”] = record.id;
updateObject[“fields”] = {};
updateObject[“fields”][“price”] = Number(data.market_data.current_price.usd);
updateObject[“fields”][“price_ATH”] = Number(data.market_data.ath.usd);
updateObject[“fields”][“date_ATH”] = String(data.market_data.ath_date.usd);
updateObject[“fields”][“price_date”] = new Date();
updateArray.push(updateObject);

What does the error mean??

1 Like

I believe this is a memory-related error in the V8 javascript engine. It would be impossible to debug this and identify the true cause without full awareness of the source code.

My sense is you are creating some sort of race condition that is stepping on the toes of other array objects.

Getting the same issue too intermittently on a script that has had no problems for months with 3-400 runs a day.