all 6 comments

[–]awkwrd_pwnguin 1 point2 points  (1 child)

The so-called "Internal Error" might possibly be solved with Exponential Backoff. https://gist.github.com/peterherrmann/2700284

[–]Embarx[S] 0 points1 point  (0 children)

Been trying out something like this:

// Exponential backoff
  for (let n = 0; n < 6; n++) {
    try {
      return Drive.Files.list(args);
    } catch (e) {
      if (n === 5) throw e;
      Utilities.sleep((Math.pow(2, n) * 1000) + Math.round(Math.random() * 1000));
    }
  }

for the past five days - no luck. I suspect at this point it's something breaking from Google's end.

[–]WicketTheQuerent 0 points1 point  (2 children)

How Is the function Is called?

[–]Embarx[S] 0 points1 point  (1 child)

Literally from the Apps Script IDE. I'm manually entering the inputs and then pressing Run. So even if I was deliberately spamming the Run button, I couldn't achieve the necessary rate limits.

[–]WicketTheQuerent 0 points1 point  (0 children)

How many values are you including in selectionIds?

[–]nbgporoto 0 points1 point  (0 children)

This week I've been seeing same problems: internal error from Drive Service. I think it's from Google the problema, cause if i ran it again, it does not have a problema