无法登录 Google Apps 脚本

Can't log in to Google Apps Scripts

我正在使用多个 Google 帐户。在其中一个(不是默认的)中,我创建了 Google 电子表格文件,我想创建连接到它的脚本。没什么复杂的。但问题是,在单击 Tools > Script Editor 后,我被重定向到 默认用户 或者我看到了这个屏幕:

我在尝试使用时遇到同样的问题:script.google.com

如何启用脚本编辑器?

我无法重现该问题。可能是小故障或有问题需要一些故障排除技术,这些技术在本网站上是题外话。

作为解决方法,对于有问题的帐户,请使用另一个 Google Chrome profile, Incognito mode 或其他浏览器。

另一方面,也有可能没有任何错误,只是与您的具体情况有关。

来自Sign in to multiple accounts at once

Sometimes settings might carry over

If you're signed in to multiple accounts at the same time, sometimes we can't tell which account you're using. For example, if you're signed in to two accounts and you open a new browser window, we aren't sure which account you want to use. In cases like these, Google might apply settings from your default account, like its Web & App Activity and Ads Personalization settings.

您可以考虑将 authuser=email 附加到 URL 以使用特定 Google 帐户打开脚本。

例如script.google.com...?param=value&authuser=email@example.com

我知道你在 9 个月前问过这个问题,但这是我的解决方案;

  • 退出除电子表格所有者之外的所有 google 个帐户
  • 您现在可以访问脚本和宏页面(去那里)
  • 创建它们的书签(这会保存登录的配置文件)
  • 现在重新登录您的所有个人资料
  • 瞧!

您将能够通过书签访问脚本或宏,而不会出现错误页面。

您也可以打开一个新的隐身模式 window,将您的 sheet url 粘贴到那里(您需要进行身份验证)。然后你可以打开工具 -> 脚本编辑器

google 的默认帐户(您登录的第一个帐户)必须是 sheet

的所有者

这是一个已报告的错误

https://issuetracker.google.com/69270374

如果你想让 Google 知道这会影响到你,请给它一个 ☆。