angelazno / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Delete GDocs item ERROR! #454

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When delete just uploaded DocumentEntry item raise ERROR "The remote server 
returned an error: (412) Precondition Failed."

Sample Code: 
var DR=new DocumentRequest(...);
var de = DR.Service.UploadDocument(filename, docname); //Return new uploaded 
DocumentEntry right?
 de.Delete(); // Raise ERROR 412! Only occurred when not refresh documententry item from server.

What's wrong in it? How to delete DE without refresh the current document list.

Original issue reported on code.google.com by G.Talk.G on 15 Dec 2010 at 1:01

GoogleCodeExporter commented 8 years ago
Any one here?

Original comment by G.Talk.G on 18 Dec 2010 at 12:28

GoogleCodeExporter commented 8 years ago

Original comment by ccherub...@google.com on 19 Dec 2010 at 1:42

GoogleCodeExporter commented 8 years ago
I managed to reproduce the issue, there's something wrong with ETags that I'm 
still investigating.
I'll update this issue as soon as I have more news.

Original comment by ccherub...@google.com on 4 Mar 2011 at 12:13

GoogleCodeExporter commented 8 years ago
This is a known issue and it's due to an asynchronous operation on our side.
The workaround is to re-fetch until the etag matches, then delete the document.

Original comment by ccherub...@google.com on 8 Mar 2011 at 7:23