Hi,
I've posted this question already on the Document List API forum
(where it seems to belong), but just in case this is related to some
protocol changes which aren't implemented in the obj-c API yet, I'm
posting it here as well.
As of couple of days ago (or so), document uploads fail (most of the
time) with status 400. Occasionally they do succeed though, but very
rarely (at least today). I've tested couple of accounts and got
numerous support cases from users hitting this problem in our iPhone
app.
Here's an example of the request/response. This code worked without
any problems for months. Is this a know issue that's being
investigated? Has something changed that will require a code change?
Are there any workarounds?
Any help is much appreciated as this affects our users in production.
Thanks,
Christoph
:: REQUEST
POST URL:
http://docs.google.com/feeds/default/private/full/folder%3A0BzTjld1CzbTuZTc2NGUwNzAtNjEwOC00MzdlLWJkZmYtNjZjODkyZWNhYzJm/contents
{
Accept = "application/atom+xml, text/xml";
Authorization = "GoogleLogin auth=xxx";
"Cache-Control" = "no-cache";
"Content-Length" = 538;
"Content-Type" = "multipart/related; boundary=\"END_OF_PART\"";
"Gdata-Version" = "3.0";
"Mime-Version" = "1.0";
"User-Agent" = "GData-ObjectiveC/1.10 iPhone_Simulator/3.1.3
(gzip)";
}
--END_OF_PART
Content-Type: application/atom+xml; charset=UTF-8
<entry xmlns:gd="
http://schemas.google.com/g/2005" xmlns:app="http://
www.w3.org/2007/app" xmlns:docs="
http://schemas.google.com/docs/2007"
xmlns="
http://www.w3.org/2005/Atom"><title>Bar</title><category
term="
http://schemas.google.com/docs/2007#document" scheme="http://
schemas.google.com/g/2005#kind"/><published>2010-05-08T14:13:33-07:00</
published></entry>
--END_OF_PART
Content-Transfer-Encoding: binary
Content-Type: text/plain
Some text.
--END_OF_PART--
:: RESPONSE
status: 400
{
"Cache-Control" = "private, max-age=0";
"Content-Encoding" = gzip;
"Content-Type" = "application/vnd.google.gdata.error+xml";
Date = "Sat, 08 May 2010 21:15:58 GMT";
Expires = "Sat, 08 May 2010 21:15:58 GMT";
Server = GSE;
"Transfer-Encoding" = Identity;
"X-Content-Type-Options" = nosniff;
"X-Frame-Options" = SAMEORIGIN;
"X-Xss-Protection" = "1; mode=block";
}
<errors xmlns='
http://schemas.google.com/g/2005'>
<error>
<domain>GData</domain>
<code>InvalidEntryException</code>
<internalReason>Could not convert document.</internalReason>
</error>
</errors>
--
You received this message because you are subscribed to the Google Groups "Google Data APIs Objective-C Client Library Discussion" group.
To post to this group, send email to
gdata-objec...@googlegroups.com.
To unsubscribe from this group, send email to
gdata-objectivec-...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/gdata-objectivec-client?hl=en.