Help!  I have a really strange situation authenticating a user to
Google Calendars.  I'm writing a web app that helps people use their
Google Calendar information.  I'm using the Java API to do this from a
web server.

I'm storing our user's AuthSub session keys in a database so that I
can retrieve their information.

Most of the time this works fine.  But for one particular user this is
failing and I'm killing myself trying to debug.
This same session key works fine using queries from other languages.
Am I doing something obviously wrong?

Here is the AuthSub session key:"CMrOzZLdFRDS2NnNAw"
And here is the feed I am trying to get "http://www.google.com/
calendar/feeds/default/allcalendars/full"

Here is a snippet of the code that I'm using to try to do this:
<snip>
myService = new CalendarService("OurCompany");
myService.setAuthSubToken("CMrOzZLdFRDS2NnNAw");
URL calendarFeedUrl = null;
try {
        calendarFeedUrl = new URL("http://www.google.com/calendar/feeds/
default/allcalendars/full");
} catch (MalformedURLException e) {}

CalendarFeed calendarFeed = null;
try {
       calendarFeed = myService.getFeed(calendarFeedUrl,
CalendarFeed.class);
} catch (AuthenticationException e) {
} catch (IOException e) {
} catch (ServiceException e) {
}
</snip>


Then here is the error I get:

com.google.gdata.util.AuthenticationException: Unauthorized
<HTML>
<HEAD>
<TITLE>Unknown authorization header</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Unknown authorization header</H1>
<H2>Error 401</H2>
</BODY>
</HTML>

        at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse
(HttpGDataRequest.java:563)
        at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse
(GoogleGDataRequest.java:543)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse
(HttpGDataRequest.java:535)
        at com.google.gdata.client.http.HttpGDataRequest.execute
(HttpGDataRequest.java:514)
        at com.google.gdata.client.http.GoogleGDataRequest.execute
(GoogleGDataRequest.java:515)
        at com.google.gdata.client.Service.getFeed(Service.java:1034)
        at com.google.gdata.client.Service.getFeed(Service.java:897)
        at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:
631)
        at com.google.gdata.client.Service.getFeed(Service.java:916)
        ......
        at java.lang.Thread.run(Thread.java:637)


What could be causing this for this one user!!!???

--~--~---------~--~----~------------~-------~--~----~
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