question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding conferencing with ConferenceData.CreateConferenceRequest gives "Invalid conference data"

See original GitHub issue

NOTE: 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):

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
jskeetcommented, Jul 16, 2021

Thanks for the issue - I’ll look into it on Monday.

0reactions
derekantricancommented, Jul 19, 2021

Yeah, that’s totally fair. Thanks for investigating this and I’ll report the “eventHangout” discrepancy via the bug tracker

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found