Since last week when I try to request and fetch results on ScriptDB I get this error : "Service invoked too many times in a short time: scriptdb rateMax. Try Utilities.sleep(1000) between calls. (line XXX)"
Below, a small sample script that reproduces the issue:
var result = db.query({key:value});
while (result.hasNext()) {
var current = result.next();
if(current.someProperty == true) {
objectsToRemove.push(current);
}
}
I tried to add calls to "Utilities.sleep(1000)" before / after the line where the error occured but it didn't change anything.
Thanks by advance.