How to solve the error: Sorry, unable to open the file at this time. Please check the address and try again. (Gmail Add-on)

How to solve the error: Sorry, unable to open the file at this time. Please check the address and try again. (Gmail Add-on)

我在 marketplace 上部署了一个 Gmail 插件,它工作正常,但现在当用户有多个帐户登录到 gmail 并尝试安装我的插件时。它显示错误

Sorry, unable to open the file at this time.

Please check the address and try again.

打开弹窗的URL是(script_id是我项目的脚本id):https://script.google.com/macros/u/1/s/<script_id>/authorize?scopes=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.addons.current.action.compose%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.addons.current.message.metadata%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.addons.execute%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fscript.external_request%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile 当只有一个帐户登录 Gmail 时,它可以正常工作并正常安装附加组件。

我检查了同一问题的其他解决方案,然后说我们需要从 URL 中删除 /u/1/。我将 URL 复制粘贴到另一个选项卡中,并从 URL 中删除了 /u/1/。我仍然遇到同样的错误。此外,此 URL 是由 Google 而非我们生成的,因此我们无法对其进行编辑。

对于上述问题的任何帮助将不胜感激。

提前致谢。

这是一个关于 Apps 脚本和 Google 处理多个登录帐户的方式的众所周知的问题。

documentation就此事声明如下:

If you're logged into multiple Google Accounts at the same time, you might have trouble accessing your Apps Script projects, add-ons, and web apps. Multi-login, or being logged into multiple Google Accounts at once, isn't supported for Apps Script, add-ons, or web apps.

可能的解决方法包括:

  • 注销所有 Google 帐户,仅登录具有 Apps 脚本项目 add-on 或您需要访问的 Web 应用程序的帐户。

  • 在GoogleChrome中打开隐身window,或等效的隐私浏览window,然后登录Google 具有 Apps 脚本项目的帐户,add-on,或您需要访问的 Web 应用程序。

目前正在本报告中对此进行跟踪here;我建议您给它加注星标,因为有关此的任何更新都会发布在那里。

参考