4 messages in com.googlegroups.google-base-data-apiRe: Inserting product fails with stat...
FromSent OnAttachments
fest10 Apr 2008 13:31 
Eric11 Apr 2008 16:51 
fest13 Apr 2008 07:04 
fest13 Apr 2008 07:17 
Subject:Re: Inserting product fails with status 200
From:fest (hell@gmail.com)
Date:04/13/2008 07:17:15 AM
List:com.googlegroups.google-base-data-api

My bad- I was using https://www.google.com/base as my main url after authorization.

Thanks for help anyway.

On 12 Apr., 02:51, Eric <api.@google.com> wrote:

Hi fest,

I suspect the problem is in your Authorization header.  After a successful authentication request using ClientLogin, you'll want to use 'GoogleLogin' rather than 'ClientLogin'.

Authorization: GoogleLogin auth=yourAuthValue

Seehttp://code.google.com/apis/gdata/auth.htmlfor more information on this.

Hope this helps,

Eric

On Apr 10, 1:31 pm, fest <hell@gmail.com> wrote:

Hello, I'm creating a software which inserts products from our shop into Google Base automatically, via API. I have stumbled upon a weird problem- I can authentificate normally, but when I try to insert a product, it returns XHTML page with status code 200 OK with this text: Oops!

There was an error with the page you requested.

Please check back later. This is the request which I send to Google:

POST /base/feeds/items HTTP/1.1 Host:www.google.com Accept: */* Authorization: ClientLogin Auth=********AAADTzszlqZ21a7vk- emMrJSY1Ij06wZdDP9Wh1ZSmwl9zdHcV1M11inzkA954i2m- Jul5oO0trA_rfCj1fzzYqj4JOCNdWb_zsaCTKL8gQMW3ZNbkX1DeARpVKsPXlo0f0xzEFONhPZT­k- zoiZxUwrNhfExgn9U5VIl_NkUeHaKVeA Content-Type: application/atom+xml Content-Length: 983

<entry xmlns='http://www.w3.org/2005/Atom'        xmlns:g='http://base.google.com/ns/1.0'>   <author>     <name>Reinis Veips</name>     <email>Jane@gmail.com</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">products</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>

I followed the Google Base Data API examples carefully and I have spent many hours on this problem and I still can't find solution.

P.S. Authorization token is edited for security reasons.