Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.91 KB | None | 0 0
  1. 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'
  2.  
  3. reply: 'HTTP/1.1 400 Bad Request\r\n'
  4. header: Server: HTTP Upload Server Built on Aug 27 2012 16:17:38 (1346109458)
  5. header: Content-Type: text/html; charset=UTF-8
  6. header: Date: Sun, 02 Sep 2012 12:32:48 GMT
  7. header: Pragma: no-cache
  8. header: Expires: Fri, 01 Jan 1990 00:00:00 GMT
  9. header: Cache-Control: no-cache, no-store, must-revalidate
  10. header: Content-Length: 15
  11.  
  12. Traceback (most recent call last):
  13.   File "coll.py", line 301, in <module>
  14.     main()
  15.   File "coll.py", line 293, in main
  16.     doc = client.UpdateResource(doc, media=ms, new_revision=True)
  17.   File "/usr/lib/python2.7/dist-packages/gdata/docs/client.py", line 344, in update_resource
  18.     uri_params=uri_params, **kwargs)
  19.   File "/usr/lib/python2.7/dist-packages/gdata/client.py", line 1151, in update_file
  20.     auth_token=auth_token, method='PUT')
  21.   File "/usr/lib/python2.7/dist-packages/gdata/client.py", line 1085, in upload_file
  22.     start_byte, self.file_handle.read(self.chunk_size))
  23.   File "/usr/lib/python2.7/dist-packages/gdata/client.py", line 1044, in upload_chunk
  24.     raise error
  25. gdata.client.RequestError: Server responded with: 400, Invalid Request
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement