一些用户会收到“找不到具有给定ID的项目,或者您没有访问权限".错误 [英] some users get "No item with the given ID could be found, or you do not have permission to access it" error
问题描述
我有一个适用于大多数用户的脚本.但是,某些用户在尝试运行脚本时遇到此错误:(他们与运行脚本的其他用户具有相同的权限):找不到与给定ID对应的项目,或者您没有权限访问它" 有任何想法吗? 谢谢!
i have an appscript running fine with most of the users. some users, however, get this error when trying to run the script: (they have the same permission as the other users that runs the script fine): "No item with the given ID could be found, or you do not have permission to access it" any ideas? thanks !
推荐答案
在过去的几天中,我发现我的应用存在很多登录/身份验证问题.对我来说,错误是"Exception: You do not have permission to call Session.getActiveUser."
.这个问题是随机的,经常发生(大约25%的用户登录),我的解决方案是重试直到成功.因此,这也可以解释您的问题.
I have seen plenty of login/authentication problems with my app during past few days. For me, the error was "Exception: You do not have permission to call Session.getActiveUser."
. The problem is random, occurs quite often (approx 25% of user logins), and my solution was to try again until successful. So, this might explain your problems as well.
尝试添加例如:
var email_act = Session.getActiveUser().getEmail();
在脚本中的某个位置,看看是否也出现错误.
to some place into your script and see if you get errors as well.
这篇关于一些用户会收到“找不到具有给定ID的项目,或者您没有访问权限".错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!