Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script GMail谷歌应用程序脚本插件;从应用程序脚本返回的值的类型不能由加载项平台使用;_Google Apps Script_Gmail_Google Apps - Fatal编程技术网

Google apps script GMail谷歌应用程序脚本插件;从应用程序脚本返回的值的类型不能由加载项平台使用;

Google apps script GMail谷歌应用程序脚本插件;从应用程序脚本返回的值的类型不能由加载项平台使用;,google-apps-script,gmail,google-apps,Google Apps Script,Gmail,Google Apps,在过去的24小时里,我运行的一个以前工作的GMail插件开始失败 我一路精简,只想从工作中得到一个例子: 在构建时(而不是按下按钮),以前工作的GMail插件显示错误消息: The value returned from Apps Script has a type that cannot be used by the add-ons platform. Also make sure to call build on any builder before returning it. Value:

在过去的24小时里,我运行的一个以前工作的GMail插件开始失败

我一路精简,只想从工作中得到一个例子:

在构建时(而不是按下按钮),以前工作的GMail插件显示错误消息:

The value returned from Apps Script has a type that cannot be used by the add-ons platform. Also make sure to call build on any builder before returning it. Value: values {
  proto_value {
    type_url: "type.googleapis.com/caribou.api.proto.addons.templates.publicapi.ContextualAddOnMarkup.Card"
    value: "...(omitted)"
  }
}

这是一个新的已知问题吗?有人可以分享一些疑难解答步骤吗?

这个问题是由Google将Apps脚本无声升级到V8运行时引起的。要从此运行时降级到旧运行时(Rhino),请执行以下一组操作:

运行->禁用Chrome V8支持的新应用脚本运行时


可以找到相关问题。

对我来说,错误是由于未将打开的链接列入白名单所致。例如,如果您有这样的代码:

CardService.newOpenLink().setUrl(url)
然后,appscript清单的
openLinkUrlPrefixes
列表中的“url”返回链接,如下所示:

"openLinkUrlPrefixes": [
    "https://*.example.com"
]
"openLinkUrlPrefixes": [
    "https://*.example.com"
]