Adding conferencing with ConferenceData.CreateConferenceRequest gives "Invalid conference data"
See original GitHub issueNOTE: this is mirroring a ticket created on the nodejs side here: https://github.com/googleapis/google-api-nodejs-client/issues/2387
Environment details
- Programming language: C#
- OS: Windows 10
- Language runtime version: .NET Standard 2.0
- Package version: 1.52.0.2375, but I’ve tracked it back to at least 1.51.0.2305
Steps to reproduce
An EventsResource.UpdateRequest
with the following code used to work, but no longer does (not sure at which point it changed - maybe with the change from Hangouts to Google Meet?). This seems to work fine in the API explorer, but both I and a user of the JS client (see linked issue above) are reporting issues with the API packages.
public static Event SetConferencing(Event eventToModify, ConferencingType conferencingType)
{
string conferencingTypeString = null;
switch (conferencingType)
{
case ConferencingType.EventHangout:
conferencingTypeString = "eventHangout";
break;
case ConferencingType.HangoutsMeet:
conferencingTypeString = "hangoutsMeet";
break;
}
eventToModify.ConferenceData = new ConferenceData
{
CreateRequest = new CreateConferenceRequest
{
ConferenceSolutionKey = new ConferenceSolutionKey
{
Type = conferencingTypeString,
},
RequestId = Guid.NewGuid().ToString(),
}
};
return eventToModify;
}
After this I call:
EventsResource.UpdateRequest eventUpdateRequest = service.Events.Update(eventToUpdate, calendarId, eventToUpdate.Id);
eventUpdateRequest.ConferenceDataVersion = 1;
eventUpdateRequest.Execute();
Using conference type “eventHangout” gives the error “Invalid conference type value.” (probably because Google Meet has replaced Hangouts?). Using conference type “hangoutsMeet” gives the error “Invalid conference data.”
Trying this in the API explorer seems to work just fine (event.update endpoint):
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
Calendar event insert with conferenceSolutionKey ...
Create google event using google.calendar.events.insert ... Using conference type "hangoutsMeet" gives the error "Invalid conference data.
Read more >Add conference to event Google Calendar API
ConferenceDataVersion = 1; Event createdEvent = request.Execute();. Here's the code of CreateConferenceData() method: ConferenceData ...
Read more >No conference data is received when adding an event via ...
We used to get conference data and the meet link in the response of event ... “ :ecruoS https://developers.google.com/calendar/create-events#conferencing ”.
Read more >Conference Data Service | Apps Script
This service allows scripts to configure and build conferencing data objects that interact with Google Calendar.
Read more >ConferenceData (Calendar API v3-rev20230707-2.0.0)
A request to generate a new conference and attach it to the event. The data is generated asynchronously. To see whether the data...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the issue - I’ll look into it on Monday.
Yeah, that’s totally fair. Thanks for investigating this and I’ll report the “eventHangout” discrepancy via the bug tracker