The Google Apps Script program, which had been running smoothly in the Google Apps for Works environment for months, stopped working with an "Invalid OAuth ID for this script" error when started.
Manual boot will work the second time and then randomly stop with the same error.
Typical examples are as follows:
Create a new Google Apps script and enter the next line of scripts
vars=SpreadsheetApp.openById;
Run
If you change your user account or try another domain, the results will be the same.
Enabling Management Console ▶ Security ▶ API Reference ▶ API Access did not work.
A few days ago, dozens of GAS programs experienced this failure simultaneously.
Web applications calling these GAS programs online will stop, which is quite fatal.
Please let me know if there are any countermeasures.
It seems to have been solved.
https://code.google.com/p/google-apps-script-issues/issues/detail?id=4694#c17
The authentication method seems to be summarized on the following page.
https://developers.google.com/apps-script/guides/services/authorization
For Sheets, Docs, and Forms, .gs
requires @OnlyCurrentDoc
(or @NotOnlyCurrentDoc
) JSDoc(file-level comment).
Write the following JSDoc at the beginning of the script file.
JSDoc:
/**
* @OnlyCurrentDoc
*/
[File]▶[Upgrade Approval Procedure...]
must be re-approved.
Side by:
Google's abolition of OAuth 1.0 may be related to the timing (January 2015).
https://developers.google.com/accounts/docs/OAuth#shutdown-timetable
January 21, 2015 Add:
There is a high possibility that the problem was reported inside Google, so it is currently on Google's side.
https://code.google.com/p/google-apps-script-issues/issues/detail?id=4694#c13
© 2024 OneMinuteCode. All rights reserved.