'Is there any solution for Google Scripts getCharts().getAs error?

I've one google script running since a few months without any problems, last week a scheduled email that was sent on weekly basis stoped working without any reason further than:

Exception: Service Spreadsheets failed while accessing document with id XXX

I was able to narrow down the problem to the call to getCharts().getAs() section, and it seems that there are many users having the same problem, and of course the solution goes from starting all over again, creating new scripts and so on. I've found this issue in google bugtracker, but nothing concrete so far, and this report is highly important.

I've tried using getCharts().getBlob(), getOptions(), calling the spreadsheet by id or getActiveSpreadsheet(), creating all from scratch, but same error keeps happening.

Any solution, idea?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source