Figured out something new today. Even though we request an accessToken for
the http://... scope we get a token for https://... scope.
So we can access this user¹s https://feeds . But why is this the case? For
other users we request http://... scope and we get a token for it just fine.


On 4/24/12 1:13 AM, "Alexey Panteleev" <[email protected]> wrote:

>  Hello, I know this topic has been discussed a few times in the forum but I am
> not finding my answer still.
> 
>  We sync contacts for a few dozens of google users and only for one we've
> started getting the following Exception recently, which I believe means an
> invalid token.
> I don't understand why it does not work for only this one user whereas our set
> up is quite identical for all our users.
> 
>  We use gdata-contacts-3.0 and I even tried 1.47.0 bundle of libs today, same
> thing.
> 
>  We still use OAuth1 access tokens with http://www.google.com/m8/feeds/ scope.
> The user re-generated those a few times now.
> The exception happens when trying to access
> http://www.google.com/m8/feeds/groups/default/full
> 
>  I know v3 suggests to use https://... scope but for all our other users
> http://... based access still works just find. Just one is failing.
> Can you please help identify the cause? Could there be some setting in the
> user profile causing this? Thank you
> 
> java.lang.NullPointerException: No authentication header information
>         at 
> com.google.gdata.util.AuthenticationException.initFromAuthHeader(Authenticatio
> nException.java:96) ~[gdata-core-1.0-1.41.5.jar:na]
>         at 
> com.google.gdata.util.AuthenticationException.<init>(AuthenticationException.j
> ava:67) ~[gdata-core-1.0-1.41.5.jar:na]
>         at 
> com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataReq
> uest.java:600) ~[gdata-core-1.0-1.41.5.jar:na]
>         at 
> com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDat
> aRequest.java:563) ~[gdata-core-1.0-1.41.5.jar:na]
>         at 
> com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.j
> ava:552) ~[gdata-core-1.0-1.41.5.jar:na]
>         at 
> com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:53
> 0) ~[gdata-core-1.0-1.41.5.jar:na]
>         at 
> com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.jav
> a:535) ~[gdata-core-1.0-1.41.5.jar:na]
>         at com.google.gdata.client.Service.getFeed(Service.java:1135)
> ~[gdata-core-1.0-1.41.5.jar:1.41.5]
>         at com.google.gdata.client.Service.getFeed(Service.java:1077)
> ~[gdata-core-1.0-1.41.5.jar:1.41.5]
>         at 
> com.google.gdata.client.GoogleService.getFeed(GoogleService.java:662)
> ~[gdata-core-1.0-1.41.5.jar:1.41.5]
>         at com.google.gdata.client.Service.query(Service.java:1237)
> ~[gdata-core-1.0-1.41.5.jar:1.41.5]
>         at com.google.gdata.client.Service.query(Service.java:1178)
> ~[gdata-core-1.0-1.41.5.jar:1.41.5]

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html

Reply via email to