google drive apps script > “Service unavailable: D

2019-08-14 00:49发布

问题:

I have a script that takes a Google spreadsheet writes the text to a Google Doc. When I try to run the function, I get the message in red at the top of the page Service unavailable: Docs (Dismiss). This is new. What does this error mean? Thanks!

回答1:

In addition to @Pierre-Marie Richard's answer, the error Service unavailable: Docs usually happens when you are using an invalid Doc ID.



回答2:

As mentioned in the documentation :

Server not available.
Server error occurred, please try again.
There are a couple possible causes for this error:

  • A Google server or system is temporarily unavailable. Wait for a few moments and try running the script again.
  • There is an error in your script that doesn't have a corresponding error message. Try debugging your script and see if you can isolate the problem.
  • There is a bug in Google Apps Script that is causing this error. Report the error on the issue tracker.