4 messages in com.googlegroups.google-picasa-data-api400 Bad Request: Content-Type applica...
FromSent OnAttachments
Håvard Gulldahl30 Jul 2007 01:35 
Sven31 Jul 2007 10:24 
Håvard Gulldahl31 Jul 2007 16:54 
Sven31 Jul 2007 17:55 
Subject:400 Bad Request: Content-Type application/atom+xml is not valid.
From:Håvard Gulldahl (hava@gmail.com)
Date:07/30/2007 01:35:48 AM
List:com.googlegroups.google-picasa-data-api

I'm having problems updating a photo's metadata.

As laid out in the api docs [0], I pull down a photo Entry construct, replace some of the metadata, and push it back to the url found in the <link rel='edit'> element. This fails, with the following response from the server:

File "/usr/lib/python2.5/site-packages/gdata/service.py", line 857, in Put 'reason': server_response.reason, 'body': result_body} gdata.service.RequestError: {'status': 400, 'body': 'Content-Type application/atom+xml is not valid.', 'reason': 'Bad Request'}

I've tried trimming the Entry before I ship it, without any luck.

However, the error message suggests that this is more of an existential problem: surely an Atom content type should be the blood and bones of a gdata centered service?

Let me know if you need more details, and I'll try to extract some code to back this up.

Take care, Håvard

[0]: http://code.google.com/apis/picasaweb/gdata.html#Update_Photo