10 messages in com.googlegroups.google-calendar-help-dataapiRe: Timeout Exception When Deleting C...
FromSent OnAttachments
ekun01 Apr 2007 13:34 
Ryan Boyd (Google)01 Apr 2007 15:31 
ekun01 Apr 2007 16:59 
Ryan Boyd (Google)01 Apr 2007 18:18 
ekun01 Apr 2007 20:32 
Ryan Boyd (Google)01 Apr 2007 20:43 
Elliott Hamai01 Apr 2007 23:24 
Frank Mantek02 Apr 2007 01:39 
Ryan Boyd (Google)02 Apr 2007 07:01 
Elliott Hamai02 Apr 2007 18:06 
Subject:Re: Timeout Exception When Deleting Calendar Entries Using C# Client Libraries
From:ekun (eha@gmail.com)
Date:04/01/2007 04:59:08 PM
List:com.googlegroups.google-calendar-help-dataapi

Hi Ryan,

Thanks for the response! So to answer your questions:

1.) It's taking about 2 minutes to return 2.) I'm not doing anything else with my calendar nor am I running multiple threads. 3.) There shouldn't be any proxy servers between me and Google unless Comcast has some kind of funky configuration.

I did try to catch the exception this time and this is the actual message that was output:

"Execution of request failed:
http://www.google.com/calendar/feeds/xxxxx...@gmail.com/pr@"

I also wanted to mention that I'm using mono on Linux, which was originally giving me authentication problems because by default Mono blocks everything related to web requests. I got past that problem by using the mozroots.exe program to add all Mozilla certificates to Mono (http://www.mono-project.com/FAQ:_Security), which allows me to authenticate with Google, query events, and create events. I figured that if I could get that far, then deleting an event shouldn't be a problem, but perhaps mono doesn't like me sending a feed request to that specific event uri? That's probably not the case, but I just thought I'd mention it.

Thanks for helping me out :)

- Elliott

On Apr 1, 3:32 pm, "Ryan Boyd (Google)" <api.@google.com> wrote:

The good news is that it doesn't look like you're doing anything fundamentally wrong :)

However, I'm not quite sure what's causing the problem you're experiencing. It seems as if the client isn't getting a response back from the server in a resonable period of time and is throwing an exception.

A few questions: 1) How long is this taking to run? 2) Are you doing anything else with your calendar while this is running? Ie, do you have another program running against the same calendar.. or is this program running in multiple threads? 3) Do you have any proxy servers in between your computer and Google that you are aware of?

Cheers,

-Ryan

On Apr 1, 1:35 pm, "ekun" <eha@gmail.com> wrote:

Oops, I think I posted this on the wrong group originally, so if you're reading this again, my apologies... :)

Hi all,

I'm new to Google API's, so please pardon such a basic question. Basically, I just created a test function based off of the API Developers guide which would query an event from my calendar, and then delete it. The query works fine so I know that my URI and CalendarService values are fine. However, as soon as I try to delete the entry from the Calendar, I get a timeout exception at run time. Here's what my function looks like:

public static void queryCalendar(Uri calendarURI, CalendarService service) { EventQuery myQuery = new EventQuery(calendarURI.ToString()); myQuery.Query = "Tennis"; EventFeed myResultsFeed = service.Query(myQuery); if (myResultsFeed.Entries.Count > 0) { AtomEntry firstMatchEntry = myResultsFeed.Entries[0]; Console.WriteLine("Query found {0}", firstMatchEntry.Title.Text);

// Method 1: Causes a timeout exception at run-time myResultsFeed.Entries[0].Delete();

// Method 2: Causes a timeout exception at run-time //service.Delete(myResultsFeed.Entries[0]);

// Method 3: Causes a timeout exception at run-time // service.Delete(new Uri(myResultsFeed.Entries[0].EditUri.ToString()));

}

}

The exception that I keep receiving looks like this: Unhandled Exception: Google.GData.Client.GDataRequestException: Execution of request failed:
http://www.google.com/calendar/feeds/*...@gmail.com/private/full/... ---> System.Net.WebException: The request timed out at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] at System.Net.HttpWebRequest.GetResponse () [0x00000] at Google.GData.Client.GDataRequest.Execute () [0x00000] --- End of inner exception stack trace ---

at Google.GData.Client.GDataRequest.Execute () [0x00000] at Google.GData.Client.GDataGAuthRequest.Execute (Int32 iRetrying) [0x00000]

Am I just doing something fundamentally wrong, or has someone else ever run into this problem. Any help at all would totally be appreciated. Thank you!!!