I think I've got it working now.  It wasn't AppEngine's or Google
Calendar's fault.

After looking into the logs (thanks, bp) I noticed a bunch of errors
on robots.txt.  I had a default handler using the Django appengine-
patch project and it was returning 500 for robots.txt.  After fixing
this and also making sure that non-existent urls were returning 404
instead of 500, Google Calendar would fetch my calendar.

Google Calendar first checks the robots.txt record that Google has on
file to see if it can index the calendar.  (which I find a little odd
since my calendar is a user agent instead of a republishing crawler,
right?)  In any case, it was failing because it couldn't get my
robots.txt, but didn't say that in the error message.  When I replaced
my robots.txt with one that disallowed Google, then I got a new
error,
  Could not fetch the url because robots.txt prevents us from crawling
the url.

After resolving all that, the calendar shows up correctly and quickly
in my Google Calendar.

Thanks for the help,
Turadg



On Feb 20, 12:45 pm, Stephen Judd <[email protected]> wrote:
> Turadj,
>
>   I've seen that problem myself occasionally, though I generally don't have
> a problem with Google Calendar getting the ics file.  I'm not sure what the
> problem may be, but I know that it is not always a problem.  I'm serving up
> ics files dynamically, albeit with lots of memcache going on 
> (http://www.mashical.com/)
>
> Steve
>
> On Fri, Feb 20, 2009 at 10:05 AM, Turadg <[email protected]> wrote:
>
> > Hi.  My app requires being able to generate an iCalendar (.ics)
> > resource and view it on Google Calendar.  Unfortunately, Google
> > Calendar times out whenever grabbing the calendar from appengine.
>
> > I thought it might be Google Calendar's fault, but it grabs the
> > calendar fine when it comes from elsewhere.  E.g., Google itself,
>
> >http://www.google.com/calendar/ical/usa%40holiday.calendar.google.com...
>
> > or when I take that same data and serve it from another server
> > (without the proper mime type),
> >  http://www.cs.cmu.edu/~taleahma/projects/misc/us_holidays.ics<http://www.cs.cmu.edu/%7Etaleahma/projects/misc/us_holidays.ics>
>
> > The problem is when I try to serve the exact same file from appspot,
> >  http://wajudoo.appspot.com/media/misc/us_holidays.ics
>
> > Then in Google Calendar, after some delay, I get a "Settings error"
> > dialog  with the message "Could not fetch the url."
>
> > I suppose the request takes too long and times out, but I don't see
> > how I can make it any faster as it's already a static file.  It needs
> > to be dynamic eventually but I tried to eliminate possible causes.
> > Fwiw, the calendar from appspot loads fine in Apple's iCal.
>
> > Is there any way to serve a calendar from Google's AppEngine to
> > Google's Calendar?
>
> > thanks for any help,
> > Turadg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to