OAuth 错误 - 脚本已删除或已禁用 [英] OAuth Error - script deleted or disabled

查看:31
本文介绍了OAuth 错误 - 脚本已删除或已禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此脚本的 OAuth 身份已被删除或禁用.这可能是由于违反了服务条款."

"The OAuth identity of this script has been deleted or disabled. This may be due to a Terms of Service violation."

我在 google 表格上运行了一个 google 脚本,该脚本会通知我组织中的其他用户我已将 google 表格信息上传到我们的数据库.这个脚本突然停止工作并抛出了这篇文章顶部引用的错误.据我所知,相关文件/文件夹的所有权最近没有发生变化.请帮忙!我在日常工作中需要这个脚本.

I run a google script on a google sheet which notifies other users at my organization that I have uploaded the google sheet information to our database. This script suddenly stopped working and threw up the error quoted at the top of this post. As far as I know, there were no recent changes to the ownership of relevant files/folders. Please help! I need this script in my everday work.

推荐答案

这似乎解决了问题,但实际上并没有.

This seems to fix the problem, but in fact, it does not.

问题与脚本绑定的云项目有关,原因原来是云项目的服务条款(TOS)发生了变化,用户必须承认这一点.如果这没有发生,那么一段时间后,整个shebang 将被禁用,您会收到错误消息.

The problem is related to the cloud project bound to the script, The reason turned out to be that the Terms of Service (TOS) for Cloud projects changed and that the user has to acknowledge this. If that does not happen then after some time, the whole shebang is disabled and you get the error message.

(这就是为什么副本似乎可以工作:它可以工作,直到某些 Google bot 注意到它绑定到没有 TOS 确认的项目,然后将其禁用.)

(This is why a copy seems to work: it works until some Google bot notices that it is bound to a project without TOS acknowledgment, and then it disables it.)

解决办法:

  • 打开脚本
  • 点击资源>云平台项目
  • 点击绑定的项目

这将打开云控制台并显示弹出窗口以供您确认新 TOS.如果你同意这一点,你就准备好了,你的脚本又可以工作了.

This will open up the Cloud console and also show the popup for you to acknowledge the new TOS. If you agree to this, you're set, and your script works again.

注意:对于 Cloud 环境,您似乎只需要执行一次此操作.因此,如果您有多个脚本,则只需为一个脚本执行此操作.或者直接访问云环境并确认新的 TOS.

Note: it seems that you need to do this only once for the Cloud environment. So if you have several scripts, then you need to do this for one script only. Or access the Cloud environment directly and acknowledge the new TOS.

注意:即使您认为您的脚本未绑定到 Cloud 项目,请相信我......它确实如此.如果您不自己绑定它,那么它会绑定到特定于该脚本的默认项目.

Note: even if you thought your script is not bound to a Cloud project, trust me... it is. If you do not bind it yourself, then it is bound to a default project specific to that script.

希望这会有所帮助.

这篇关于OAuth 错误 - 脚本已删除或已禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆