[英]G Suite Developer Sheets Quickstart tutorial: TypeError in “check student attendance”
Following the steps in the G Suite Developer Sheets Add-on Samples tutorial Quickstart: Check Student Attendance In Google Meet Courses按照 G Suite 开发人员表格插件示例教程快速入门中的步骤操作:在 Google Meet 课程中检查学生出勤情况
I completed all 10 steps in Set up , but on step 2 in Try it out the Options > Import Last 5 Courses causes a error:我完成了Set up中的所有 10 个步骤,但在Try it out中的第 2 步中, Options > Import Last 5 Courses会导致错误:
TypeError: Cannot read property 'length' of undefined
It fails in both Chromium and Microsoft Edge browsers.它在 Chromium 和 Microsoft Edge 浏览器中均失败。 From looking at the script, it seems like Classroom.Courses.list() is returning null.
从脚本来看,Classroom.Courses.list() 似乎正在返回 null。
Unable to import the data, I can't run rest of the tutorial.无法导入数据,无法运行教程的rest。
So based on my experience building stuff with google apps script, (see tutoringbyroger.com), I suspect that you might be encountering a weird permissions issue.因此,根据我使用谷歌应用程序脚本构建东西的经验(请参阅tutoringbyroger.com),我怀疑您可能会遇到奇怪的权限问题。 If it didn't ask for permissions to run the script, try the following:
如果它没有请求运行脚本的权限,请尝试以下操作:
That should prompt for any necessary permissions and run the function.这应该会提示任何必要的权限并运行 function。 It might fail, but at least that will get the permissions out of the way.
它可能会失败,但至少这会消除权限。
If you have already done that, or it already asked for permissions then... ???如果您已经这样做了,或者它已经请求了权限,那么...... ??? I am just as stumped as you.
我和你一样难过。 Maybe tell Google or search their support page?
也许告诉谷歌或搜索他们的支持页面?
Other things to double-check before reporting it as a bug:在将其报告为错误之前要仔细检查的其他事项:
Other than that, it should work.除此之外,它应该可以工作。 If it doesn't I don't know what to tell you.
如果不是,我不知道该告诉你什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.