I am seeing the same error using gdata 1.0.8. The error only occurs when accessing the Weather calendar.
My project is gcalcli if you want to easily reproduce the error: http://code.google.com/p/gcalcli Just run: % gcalcli agenda When I disable "show weather" and delete the Weather calendar I no longer see the problem. Here is an example and the URL being accessed for the weather calendar query. % gcalcli --cal "The Ultimate UFC Calendar" agenda Fri Jan 04 7:00pm UFC Fight Night on Spike TV Sat Jan 05 8:00pm UFC Wired, Check Local Listings For Info % gcalcli --cal "Weather" agenda Traceback (most recent call last): File "/home/edavis/gcalcli/gcalcli", line 1114, in <module> DoooooItHippieMonster() File "/home/edavis/gcalcli/gcalcli", line 1044, in DoooooItHippieMonster gcal.AgendaQuery() File "/home/edavis/gcalcli/gcalcli", line 777, in AgendaQuery eventList = self._SearchForCalEvents(start, end, start, None) File "/home/edavis/gcalcli/gcalcli", line 710, in _SearchForCalEvents feed = self.gcal.CalendarQuery(query) File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py", line 112, in CalendarQuery result = self.Query(query.ToUri()) File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py", line 108, in Query result = self.Get(uri) File "/usr/lib/python2.5/site-packages/gdata/service.py", line 525, in Get 'reason': server_response.reason, 'body': result_body} gdata.service.RequestError: {'status': 400, 'body': 'Invalid UserId p', 'reason': 'Bad Request'} The 'query' obj passed to CalendarQuery is as follows: {'start-max': '2008-01-09T00:00:00-08:00', 'singleevents': 'true', 'start-min': '2008-01-04T00:00:00-08:00'} The ToUri() call within CalendarQuery produces: http://www.google.com/calendar/feeds/[EMAIL PROTECTED]/private/full?start-max=2008-01-09T00%3A00%3A00-08%3A00&singleevents=true&start-min=2008-01-04T00%3A00%3A00-08%3A00 Hope that helps, - e On Fri, Jan 04, 2008 at 09:23:37AM -0800, Austin (Google) wrote: > Hi Sebastian, > > I am wondering how come you are deriving the query URL from the > alternative link? Can you show us what your query URL looks like? > > Thanks, > Austin > > On Jan 3, 2008 5:41 AM, Sebastian < [EMAIL PROTECTED]> wrote: > > Dear All > > I am using the python Calendary API (gdata.py-1.0.10) and a new > problem seems to have manifested itself. > > self.feed = self.client.CalendarQuery(query) > File "/usr/lib/python2.4/site-packages/gdata/calendar/service.py", > line 116, in CalendarQuery > result = self.Query(query.ToUri()) > File "/usr/lib/python2.4/site-packages/gdata/calendar/service.py", > line 112, in Query > result = self.Get(uri) > File "/usr/lib/python2.4/site-packages/gdata/service.py", line 522, > in Get > raise RequestError, {'status': server_response.status, > gdata.service.RequestError: {'status': 400, 'body': 'Invalid UserId > p', 'reason': 'Bad Request'} > > At first I belived that my query made from > gdata.calendar.service.CalendarEventQuery(...) was incorrect (although > it has been working up until now). I therefore tried to navigate to > the feeds for the calendar in question manually in my browser using > the derived username, visibility and projection and it works fine. I > derive the username, projection and visibility by regex matching the > calendar's alternate link and using these values to create the query. > > My query also has the following attributes set :max_results , > start_min and start_max . > > Strangely this code was working for about a month and now no longer > does. > > Any help would be much appreciated. > > Kind Regards, > Sebastian > > > > References > > Visible links > 1. mailto:[EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" 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-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
