【问题标题】:Error in google scripts - DocumentApp.openById谷歌脚本中的错误 - DocumentApp.openById
【发布时间】:2020-12-18 12:47:42
【问题描述】:

因为几天我有这个错误:

很抱歉,出现服务器错误。请稍等,然后 再试一次

当这一行被执行时:

var temp = DocumentApp.openById(newTemplate.getId());

我的代码已经在运行,所以我认为它是 Google 内部的东西?

有什么帮助吗?非常感谢

亚历杭德罗

【问题讨论】:

  • 这实际上可能是 Google 错误,但没有足够的代码让我们重现该问题,因此我们无法真正帮助您
  • 正如 Cooper 所说,我们应该如何知道 newTemplate.getId() 的值是多少?您不需要将id 本身提供给我们,但您可以向我们展示您获取它的方式。
  • @Marios 这是以下几行: var template = DriveApp.getFileById(ID) var newTemplate = template.makeCopy(randname); var temp = DocumentApp.openById(newTemplate.getId());前 2 行工作正常(我检查了它们),正如我所说,它工作得很好,直到 16 月 12 日

标签: google-apps-script


【解决方案1】:

现在好像有bug

请参阅 herehere

虽然您可能会因为例如尝试使用 DocumentApp 打开非 Google Docs 文档,您的问题也可能与该错误有关。

给它一颗星以增加知名度。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-01-19
    • 2018-11-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多