Yes it is consistently reproducible in a new project.
I have the same problem... It is related to the HtmlService
The app script was workng for about a year, but yesterday started to return the error "Google Docs encountered an error".
return HtmlService.createHtmlOutput("<p>Hello World</p>");
If I login it works, however the script is meant to return dynamic list as html when people visit my website, hence why it is needed to run as "as anyone, even anonymous".
Partial Workaround:
Some of my scripts are API's returning just strings, the workaround for these is to use ContentService
instead of HtmlService
.
return ContentService.createTextOutput("Hello World");
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…