Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- send: 'PUT /feeds/upload/create-session/default/private/full/document%3A1bMTgRSnFEFUy8AL3CPl4uXGdiudxZlyeTJqucCvWo7E?new-revision=true&upload_id=AEnB2Urs_01FYQBl01nZ19U1ocFl7DEOHeYxRkvhKFKlqScJXXtCJQiFDa2dQWgOPsqxGnnundxsEc_K0gt3-eCgzzG9gttdZA HTTP/1.1\r\nHost: docs.google.com\r\nAccept-Encoding: identity\r\nGData-Version: 3.0\r\nContent-Length: 0\r\nUser-Agent: GDataDocumentsListAPISample-v1.0 gdata-py/2.0.17\r\nContent-Range: bytes 0--1/63\r\nContent-Type: text/plain\r\nAuthorization: GoogleLogin auth=DQAAAMMAAADTosD5fq9MhOJv1w23bm2BWnc12DX6lvK38-hq2lNeqI7d_PlQKLvjaX9xCSspqZeBWO0Q-K2MayxJHU8RXjGR_2Q8TNsdhknkG_scgiZrHV0WZYSSaX9xc-omIc2GMWE2-9X0bMTs2RPmGm6yNAIOSgPbSOFA10QJ64UkEPTMv-OUPs3S-lzNWOgZfL5JQH2VC5l7sSEqhUKAoAHvE-8JUUUEKg7JHQbj0yyDrU1CzSrs1CAfKGyZKm5teus-qWvql07_8ARIZibFJC3PliSb\r\n\r\n'
- reply: 'HTTP/1.1 400 Bad Request\r\n'
- header: Server: HTTP Upload Server Built on Aug 27 2012 16:17:38 (1346109458)
- header: Content-Type: text/html; charset=UTF-8
- header: Date: Sun, 02 Sep 2012 12:32:48 GMT
- header: Pragma: no-cache
- header: Expires: Fri, 01 Jan 1990 00:00:00 GMT
- header: Cache-Control: no-cache, no-store, must-revalidate
- header: Content-Length: 15
- Traceback (most recent call last):
- File "coll.py", line 301, in <module>
- main()
- File "coll.py", line 293, in main
- doc = client.UpdateResource(doc, media=ms, new_revision=True)
- File "/usr/lib/python2.7/dist-packages/gdata/docs/client.py", line 344, in update_resource
- uri_params=uri_params, **kwargs)
- File "/usr/lib/python2.7/dist-packages/gdata/client.py", line 1151, in update_file
- auth_token=auth_token, method='PUT')
- File "/usr/lib/python2.7/dist-packages/gdata/client.py", line 1085, in upload_file
- start_byte, self.file_handle.read(self.chunk_size))
- File "/usr/lib/python2.7/dist-packages/gdata/client.py", line 1044, in upload_chunk
- raise error
- gdata.client.RequestError: Server responded with: 400, Invalid Request
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement