salimoha / googlecl

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

Google docs upload error #182

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce the problem
----------------------------------------------

$ google docs edit --editor=vim --title="testdoc"

Modify file then save and exit from vim (:wq) 

I exepected a confirmation message but I got the following error
-----------------------------------------------------------------

Traceback (most recent call last):
  File "/usr/bin/google", line 463, in <module>
    main()
  File "/usr/bin/google", line 457, in main
    run_once(options, args)
  File "/usr/bin/google", line 356, in run_once
    task.run(client, options, args)
  File "/usr/lib/python2.6/site-packages/googlecl/docs/service.py", line 439, in _run_edit
    client.edit_doc(doc_entry, editor, format_ext)
  File "/usr/lib/python2.6/site-packages/googlecl/docs/service.py", line 121, in edit_doc
    self.Put(mediasource, doc_entry.GetEditMediaLink().href)
  File "/usr/lib/python2.6/site-packages/gdata/service.py", line 1394, in Put
    media_source=media_source, converter=converter)
  File "/usr/lib/python2.6/site-packages/gdata/service.py", line 1357, in PostOrPut
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 400, 'body': '<!DOCTYPE HTML PUBLIC 
"-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad 
Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a 
request that this server could not understand.<br />\n</p>\n</body></html>\n', 
'reason': 'Bad Request'}

Version Details
-----------------------
python2.6
elementtree-1.2.6
googlecl-0.9.7
gdata-2.0.10

Additional information.
-----------------------------
I performed this test using Cygwin.

Thanks
Aneesh

Original issue reported on code.google.com by anees...@gmail.com on 28 Jun 2010 at 2:48

GoogleCodeExporter commented 9 years ago
Additional information.
-----------------------------

Here is my proxy settings.

export http_proxy=http://10.*.*.*:8080
export https_proxy=http://10.*.*.*:8080

Original comment by anees...@gmail.com on 28 Jun 2010 at 2:52

GoogleCodeExporter commented 9 years ago
Can you try using the version in the trunk, and run the command with the 
--debug flag?

Original comment by tom.h.mi...@gmail.com on 24 Jul 2010 at 1:25

GoogleCodeExporter commented 9 years ago

Original comment by tom.h.mi...@gmail.com on 24 Jul 2010 at 1:30