I am currently obtaining an authsub token via https and trying to
perform a simple CalendarEventQuery but receive the error:

ERROR    2009-03-04 00:50:56,490 __init__.py] {'status': 401, 'body':
'<HTML>\n<
HEAD>\n<TITLE>Token invalid - AuthSub token has wrong scope</TITLE>\n</
HEAD>\n<B
ODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Token invalid - AuthSub
token has wro
ng scope</H1>\n<H2>Error 401</H2>\n</BODY>\n</HTML>\n', 'reason': ''}

With the code:

query = gdata.calendar.service.CalendarEventQuery(self.user.email(),
'private', 'full')
logging.info(str(query))
# FIXME -- this breaks currently because authsub token is https, but
# CalendarQuery is currently generating a http feed
feed = self.client.CalendarQuery(query)

Generating:

INFO     2009-03-04 00:50:56,411 service.py] http://www.google.com/calendar/feed
s/##username##%40gmail.com/private/full

I have verified that the same AuthSub token successfully retrieves
this explicit feed:

https://www.google.com/calendar/feeds/##[email protected]/private/full

Is there a way to "coerce" the API query to use https so this works?
I'd rather not have to resort to "hand roll" the URL when adding query
params like start/end date, etc.

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to