Suddenly my script get the error:
Cannot find method setMimeType((class)) (line xxx, file "Code")
It worked well for years, until this afternoon. I didn't modified it at all.
What I've done after:
copied this code from google documentation:
function doGet() { var feed = UrlFetchApp.fetch('http://xkcd.com/rss.xml').getContentText(); feed = feed.replace( /(<img.*?alt="(.*?)".*?>)/g, '$1' + new Array(10).join('<br />') + '$2'); return ContentService.createTextOutput(feed) .setMimeType(ContentService.MimeType.RSS); }pasted it into a new script
given it the proper authorizations
run it
It was ok.
Then:
- renamed the doGet() function into doGet1() in my broken script
- pasted the example doGet() function code
- run my script (doGet function)
I obtained the same error:
Cannot find method setMimeType((class)) (line xxx, file "Code")
What could have happened?
