无法使用会议解决方案下拉菜单中的第三方会议解决方案创建会议 [英] Cannot create conference with 3rd party Conference Solution from conference solutions Dropdown in Google Calendar

查看:116
本文介绍了无法使用会议解决方案下拉菜单中的第三方会议解决方案创建会议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建G-Suite附加组件,以将第三部分会议解决方案与Google日历活动集成在一起.我在清单文件中添加了选定的第三方会议解决方案:

I am creating G-Suite add-on to integrate 3rd part conference solution with Google Calendar events. I added chosen 3rd party Conference Solution to manifest file:

{
  "timeZone": "America/Denver",
  "dependencies": {
    "enabledAdvancedServices": [{
      "userSymbol": "Calendar",
      "serviceId": "calendar",
      "version": "v3"
    }]
  },
  "exceptionLogging": "STACKDRIVER",
  "oauthScopes": [
    "https://www.googleapis.com/auth/userinfo.email",
    "https://www.googleapis.com/auth/admin.directory.user.readonly",
    "https://www.googleapis.com/auth/calendar",
    "https://www.googleapis.com/auth/calendar.addons.execute",
    "https://www.googleapis.com/auth/calendar.addons.current.event.read",
    "https://www.googleapis.com/auth/calendar.addons.current.event.write"
  ],
  "urlFetchWhitelist": [],
  "runtimeVersion": "V8",
  "addOns": {
    "common": {
      "name": "Conference Solution",
      "logoUrl": "https://imagesite.com/companyLogo",
      "layoutProperties": {
        "primaryColor": "#4285f4",
        "secondaryColor": "#ea4335"
      },
      "homepageTrigger": {
        "runFunction": "onHomePage"
      }
    },
    "calendar": {
      "homepageTrigger": {
        "runFunction": "onHomePage"
      },
      "eventOpenTrigger": {
        "runFunction": "onCalendarEventOpen"
      },
      "eventUpdateTrigger": {
        "runFunction": "calendarUpdated"
      },
      "currentEventAccess": "READ_WRITE",
      "conferenceSolution": [{
        "onCreateFunction": "createConference",
        "id": "123",
        "name": "Meeting Conference Solution",
        "logoUrl": "https://someUrl.com/conferenceSolutionLogo.jpg"
      }]
}

但是当我选择第3部分会议解决方案时,会得到500个响应和错误代码,无法创建会议.

But when I choose my 3rd part conference solution, I get 500 code of response and error that conference cannot be created.

UPD.响应正文:

[13,"Internal error encountered."]

请求网址:

https://calendar-pa.clients6.google.com/v1/calendar/polzovatel101056@gmail.com/event/2lhlppothipf43ggb9krfabcef/conferencing?alt=protojson&key=AIzaSyAJV0pH9dpVwdNZeLajIGsIpjcPu3tVgAE

请求正文:

[
  [ 
    "email@gmail.com",
    "2lhlppothipf43ggb9krfabcef"
  ],
  null,
  null,
  [ 
    4,
    [ 
      null,
      "AKfycbzrJeytVGp3C8hhST2QMETrVdaXPG84CNnIXRQtwJUv",
      "1"
    ]
  ]
]

createConference函数:

createConference function:

function createConference(e) {
  var dataBuilder = ConferenceDataService.newConferenceDataBuilder();
  var confParams = dataBuilder.newConferenceParameter()
    .setKey('conferenceId')
    .setValue('addOn');

  confParams.setKey("key")
    .setValue(JSON.stringify({
      type: "addOn"
    }));

  dataBuilder.setConferenceSolutionId("123");
  dataBuilder.setParameters(confParams);
  return dataBuilder.build();
}

推荐答案

这似乎是一个错误!

在充分了解您的情况后,我复制了您的代码,您所描述的行为似乎是意外行为.在设置了通过第三方会议解决方案创建会议的附加组件并从下拉菜单中选择它之后:

This appears to be a bug!

After fully understanding you situation I reproduced your code an the behaviour you're describing seems to be unintended behaviour. After setting up an add-on to create a conference via a third-party conference solution and selecting it from the drop-down:

会议无法运行,并且在Stackdriver日志中可以看到以下错误:

The conference fails to be run and the following error can be seen in the Stackdriver logs:

ReferenceError: ConferenceDataService is not defined.

我进行了搜索,似乎Google的Issue Tracker上已经有一份报告,详细介绍了相同的行为:

I did a search and it seems that there is already a report on Google's Issue Tracker which detail the same kind of behaviour:

Google似乎确实知道此问题,但是您可以点击上述页面左上方问题编号旁边的☆,让Google知道更多人正在遇到此问题,因此更有可能更快地看到它.

Google does seem to know about this issue but you can hit the ☆ next to the issue number in the top left on the aforementioned page which lets Google know more people are encountering this and so it is more likely to be seen to faster.

希望对您有帮助!

根据上述问题跟踪工具"链接上留下的评论,这似乎已在Google端修复.为了确认我在Apps脚本界面中检查了该方法,现在正在填充低标准方法建议:

It seems that this has been fixed on Google's end as per a comment left on the above Issue Tracker link. To confirm I checked the method from within the Apps Script interface and low-and-behold method suggestions are now being populated:

这篇关于无法使用会议解决方案下拉菜单中的第三方会议解决方案创建会议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆