Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Document List API 308 Resume Incomplete
    primarykey
    data
    text
    <p>I am working with the Google Document List API to upload a file along with meta-data.</p> <p>I have it working perfectly so long as the file is less than 512KB. After 512KB I have to send it in 512KB chunks. After each chunk I get a HTTP Status Code of 308 sent back, which is correct.</p> <p>However, after I have sent the final request I still get a 308 response, instead of the 201 response I expect. Below are the HTTP Headers sent and received. Maybe someone else can see what I am missing.</p> <pre><code>POST /feeds/upload/create-session/default/private/full HTTP/1.1 Host: docs.google.com Accept: */* Content-Type: application/atom+xml Authorization: Bearer &lt;CODE&gt; GData-Version: 3.0 Content-Type: application/atom+xml X-Upload-Content-Length: 1436480 X-Upload-Content-Type: text/csv Content-Length: 302 HTTP/1.1 200 OK Server: HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) Location: https://docs.google.com/feeds/upload/create-session/default/private/full?upload_id=&lt;ID&gt; Date: Fri, 14 Sep 2012 17:34:50 GMT Pragma: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Cache-Control: no-cache, no-store, must-revalidate Content-Length: 0 Content-Type: text/html; charset=UTF-8 PUT /feeds/upload/create-session/default/private/full?upload_id=&lt;ID&gt; HTTP/1.1 Host: docs.google.com Accept: */* Authorization: Bearer &lt;CODE&gt; GData-Version: 3.0 Content-Type: text/csv Content-Range: bytes 0-524288/1436480 Content-Length: 524288 Expect: 100-continue HTTP/1.1 308 Resume Incomplete Server: HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) Range: bytes=0-524287 X-Range-MD5: 8f470cff00adda7c22b8b34287d2cc1b Date: Fri, 14 Sep 2012 17:34:52 GMT Pragma: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Cache-Control: no-cache, no-store, must-revalidate Content-Length: 0 Content-Type: text/html; charset=UTF-8 PUT /feeds/upload/create-session/default/private/full?upload_id=&lt;ID&gt; HTTP/1.1 Host: docs.google.com Accept: */* Authorization: Bearer &lt;CODE&gt; GData-Version: 3.0 Content-Type: text/csv Content-Range: bytes 524288-1048576/1436480 Content-Length: 524288 Expect: 100-continue HTTP/1.1 308 Resume Incomplete Server: HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) Range: bytes=0-1048575 X-Range-MD5: 4af215a3ff92258bb1c8d05dc52cf77d Date: Fri, 14 Sep 2012 17:34:54 GMT Pragma: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Cache-Control: no-cache, no-store, must-revalidate Content-Length: 0 Content-Type: text/html; charset=UTF-8 PUT /feeds/upload/create-session/default/private/full?upload_id=&lt;ID&gt; HTTP/1.1 Host: docs.google.com Accept: */* Authorization: Bearer &lt;CODE&gt; GData-Version: 3.0 Content-Type: text/csv Content-Length: 387904 Expect: 100-continue HTTP/1.1 308 Resume Incomplete Server: HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) Range: bytes=0-1048575 X-Range-MD5: 4af215a3ff92258bb1c8d05dc52cf77d Date: Fri, 14 Sep 2012 17:34:55 GMT Pragma: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Cache-Control: no-cache, no-store, must-revalidate Content-Length: 0 Content-Type: text/html; charset=UTF-8 </code></pre> <p><strong>EDIT</strong></p> <p>Here are the last Headers if I make the Content Range be sent on the last PUT request.</p> <pre><code>PUT /feeds/upload/create-session/default/private/full?upload_id=&lt;ID&lt; HTTP/1.1 Host: docs.google.com Accept: */* Authorization: Bearer &lt;CODE&gt; GData-Version: 3.0 Content-Type: text/csv Content-Range: bytes 1048576-1436480/1436480 Content-Length: 387904 Expect: 100-continue Got HTTP/1.1 400 Bad Request Server: HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) Content-Type: text/html; charset=UTF-8 Date: Fri, 14 Sep 2012 19:12:06 GMT Pragma: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Cache-Control: no-cache, no-store, must-revalidate Content-Length: 15 Connection: close </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload