Google Calendar API - Get events server side stop working - Error [Not Found]
See original GitHub issueSince Monday 19 of September the application we did with a service account to retrieve all events from a calendar in a different account stop working with no reason. We are working with the .net google calendar api library and everything used to work for more than 2 month that was the release. Is there some update in the Apps Admin for Domain accounts, some new configuration made from google side? because we haven’t change anything. This are some of the test we did:
- Create new calendar with the company email(make this with different company emails) and share calendar with the “view details” permission with the service account --> DIDNT WORK
- Create new calendar with my personal gmail account and share calendar with the “view details” permission with the service account --> WORKED
- Share primary or default account calendar with the “view details” permission with the service account --> WORKED
All the above also try it with a new service account and worked the same.
Here is part of the code when it fails:
public Object GetEvents(string calendarId, DateTime? minDate, DateTime? maxDate, int maxEvents)
{
EventsResource.ListRequest request = ((CalendarService)this.GService).Events.List(calendarId);
request.TimeMin = minDate;
request.ShowDeleted = false;
request.SingleEvents = true;
request.MaxResults = maxEvents;
request.OrderBy = EventsResource.ListRequest.OrderByEnum.StartTime;
return request.Execute(); //HERE IT RUNS THE ERROR
}
Can someone help me with this issue please , it has been several days, and calendar id information and every data is correct and I have checked it carefully several timer, also the calendar settings are ok, with permission added as it used to worked before, so we have no idea what could be, I think it could be some configuration in the google side or an update with the library.
Has it happened to someone recently?, I would reeeeeaally appreciate your help!!
Issue Analytics
- State:
- Created 7 years ago
- Comments:7
Top GitHub Comments
Unless you updated the client library and then it stopped working this is probably not an issue with the client library so we can’t really help you here.
You need to post your question on StackOverflow.Com that is the best place to get api specific error assistance. Link the question here and I will take a look at it. However I think you should try doing a calendar.List to see what calendars you have access to.
Closing as stale. Please re-open if this is still causing problems.