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.

Google Calendar API - Get events server side stop working - Error [Not Found]

See original GitHub issue

Since 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:

  1. 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
  2. Create new calendar with my personal gmail account and share calendar with the “view details” permission with the service account --> WORKED
  3. 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:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
LindaLawtoncommented, Sep 29, 2016

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.

0reactions
chrisdunelmcommented, Jul 14, 2017

Closing as stale. Please re-open if this is still causing problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Calendar API - Getting events from server side stop ...
I was retrieving all the events from a CalendarId managed by another user and showing them in our website using the server side...
Read more >
Handle API errors | Google Calendar
The Calendar API returns two levels of error information: ... This can mean that a required field or parameter has not been provided,...
Read more >
Events: insert | Google Calendar
Property name Value Notes end nested object start nested object anyoneCanAddSelf boolean writable
Read more >
How to Create Events in Google Calendar API using OAuth2.0
In this process we will learn a couple of things, like how to get the user ... refresh token when they use code...
Read more >
Google Calendar API fails to retrieve event via ID even ...
I am building an application that uses the Java Google Calendar API library. I can fectch all my events from a specific location...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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