问题描述
我刚刚运行了 Apps 脚本教程中的示例代码:
https://developers.google.com/apps-script/reference/groups/group#getGroups()
(我已经注释掉了循环部分以使问题更清楚。)
function listGroupMembers() {
var GROUP_EMAIL = "[email protected]";
var group = GroupsApp.getGroupByEmail(GROUP_EMAIL);
Utilities.sleep(10000);
var childGroups = group.getGroups();
console.log("Group " + GROUP_EMAIL + " has " + childGroup.length + " groups:");
/* comment out the loop to make the problem clear.
for (var i = 0; i < childGroups.length; i++) {
var childGroup = childGroups[i];
console.log(childGroup.getEmail());
}
*/
}
但我不断收到以下异常:
Exception: Service invoked too many times in a short time: groups read. Try Utilities.sleep(1000) between calls.
listGroupMembers @ test.gs:6
即使我在过去 24 小时内第一次运行脚本,我也会收到此异常。有什么建议吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)