简体   繁体   English

G Suite 开发人员表快速入门教程:“检查学生出勤”中的 TypeError

[英]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:如果它没有请求运行脚本的权限,请尝试以下操作:

  1. In the script editor select the importCourses() function from the dropdown.在脚本编辑器 select 中,下拉菜单中的 importCourses() function。
  2. Click the debug icon.单击调试图标。

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:在将其报告为错误之前要仔细检查的其他事项:

  1. Make sure you have done step 6 in the "Set up" section.确保您已完成“设置”部分中的第 6 步。
  2. Make sure you have admin permissions.确保您具有管理员权限。

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.

相关问题 卡在 G Suite 开发人员快速入门中以“检查学生在 Google Meet 课程中的出勤率” - Stuck at G Suite Developer Quickstart for “check student attendance in Google Meet courses” 卡在 Quickstart 检查学生参加 Google Meet 课程的情况 - Stuck with Quickstart Check student attendance in Google Meet courses 如何在定期的 google meet 中查看学生的出勤情况? - How can I check student attendance in recurring google meet's? G Suite开发人员中心执行清单? - G Suite Developer Hub execution list? 在G Suite帐户上安装开发者Gmail加载项 - Installing developer gmail add-on on G Suite account G Suite 开发者中心错误 - “出现问题” - G Suite Developer Hub Error - "Something Went Wrong" 我发布了一个 Google 表格插件,但它没有出现在 G Suite 市场列表中 - I published a Google Sheets add-on, but it's not appearing in the G Suite Marketplace list 使用新的 G Suite Marketplace 流程私下发布 Google Sheets 插件(无需验证) - Publish Google Sheets addon privately (no-verification) with new G Suite Marketplace process 在我的G Suite域中的Google表格中记录工作表用户名时禁用脚本授权 - Disable Script authorization when logging sheet username in Google Sheets within my G suite domain 如何使用 G-Suite 开发人员中心创建带有“来自电子表格”事件源的独立 onEdit(e) 触发器? - How can I create a stand-alone onEdit(e) trigger with a 'from Spreadsheet' event source using G-Suite Developer Hub?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM