401 Token invalid - AuthSub token has wrong scope
WWW-Authenticate: AuthSub realm="http://www.google.com/accounts/
AuthSubRequest"
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Date: Tue, 28 Apr 2009 12:37:30 GMT
Expires: Tue, 28 Apr 2009 12:37:30 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
Content-Length: 151
Server: GFE/2.0
Hi ...

I have been doing some development recently....
Basically I have a web page that inserts items into google base by
http POST
(just) like the demo page. It gets a session token from Google and
uses that for the POST. The web page was working fine until
yesterday ....
but all of a sudden, I am getting a " 401 : Unauthorized " error
today .

When I tried to use the API demo page ..that does not work
either ....I am getting the following error message ........

<HTML>

  <HEAD>

    <TITLE>Token invalid - AuthSub token has wrong scope</TITLE>

  </HEAD>

  <BODY BGCOLOR="#FFFFFF" TEXT="#000000">

    <H1>Token invalid - AuthSub token has wrong scope</H1>

    <H2>Error 401</H2>

  </BODY>

</HTML>


here's the request


POST /base/feeds/items
Content-Type: application/atom+xml
Authorization: AuthSub token="CLaQ3eqYDhCWmYOSAQ"
X-Google-Key:
key=ABQIAAAA7VerLsOcLuBYXR7vZI2NjhTRERdeAiwZ9EeJWta3L_JZVS0bOBRIFbhTrQjhHE52fqjZvfabYYyn6A

<?xml version='1.0'?>
<entry xmlns='http://www.w3.org/2005/Atom'
       xmlns:g='http://base.google.com/ns/1.0'>
  <author>
    <name>Jane Doe</name>
    <email>[email protected]</email>
  </author>
  <title type="text">Marie-Louise's chocolate butter</title>
  <content type="xhtml">
    <b>Ingredients:</b>
    <ul>
      <li>250g margarine,</li>
      <li>200g sugar,</li>
      <li>2 eggs, and</li>
      <li>approx. 8 tsp cacao.</li>
    </ul>
    <p>Mix everything. Heat while stirring, but do not allow the mix
to boil.
    Put in a container and cool in fridge.</p>
  </content>
  <g:item_language type="text">en</g:item_language>
  <g:item_type type="text">testrecipes</g:item_type>
  <g:cuisine type="text">danish</g:cuisine>
  <g:cooking_time type="intUnit">10 minutes</g:cooking_time>
  <g:main_ingredient type="text">cacao</g:main_ingredient>
  <g:main_ingredient type="text">margarine</g:main_ingredient>
  <g:serving_count type="int">4</g:serving_count>
</entry>


Can someone please help ?

Regards
Jacob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base 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-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to