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

查看:100
本文介绍了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 for Cloud项目已更改,并且用户必须承认这一点.如果那没有发生,那么一段时间后,整个shebang都将被禁用,并且您会收到错误消息.

The problem is related to the cloud project bound to the script, The reason turned out to be that the 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机器人注意到它已绑定到没有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 acknowledgement and then it disables it.)

解决方案: -打开脚本 -单击资源> Cloud Platform项目 -单击绑定的项目.

The solution: - open the script - click Resources > Cloud Platform project - click on the bound project.

这将打开Cloud控制台,并显示弹出窗口供您确认新的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 though 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天全站免登陆