[ Error message: "Cannot connect to Gmail" ]
Sometimes I get this error message from time-based trigger of many scripts ... There is something I can do or is only a server-side issue ?
Answer 1
This seems like a server-side indeed. But it is expect that it fails now and then. I guess you should implement an exponential backoff. Here is an Apps Script implementation by Peter Herrmann.