tienfuc / gdcmdtools

Google drive command-line tools
BSD 2-Clause "Simplified" License
57 stars 4 forks source link

Failed to upload empty file #80

Closed tienfuc closed 8 years ago

tienfuc commented 8 years ago

ERROR:gdput:<HttpError 400 when requesting https://www.googleapis.com/upload/drive/v2/files?uploadType=resumable&convert=true&alt=json returned "Bad Request"> Traceback (most recent call last): File "gdput.py", line 215, in response = puter.run() File "/opt/home/ctf/src/gdcmdtools/gdcmdtools/put.py", line 119, in run result = getattr(self, self.target_type+"_put")() File "/opt/home/ctf/src/gdcmdtools/gdcmdtools/put.py", line 456, in doc_put return self.generic_put(True) File "/opt/home/ctf/src/gdcmdtools/gdcmdtools/put.py", line 433, in generic_put status, service_response = request.next_chunk(num_retries=10) File "/usr/local/lib/python2.7/dist-packages/oauth2client/util.py", line 140, in positional_wrapper return wrapped(_args, *_kwargs) File "/usr/local/lib/python2.7/dist-packages/googleapiclient/http.py", line 880, in next_chunk return self._process_response(resp, content) File "/usr/local/lib/python2.7/dist-packages/googleapiclient/http.py", line 907, in _process_response raise HttpError(resp, content, uri=self.uri) googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/upload/drive/v2/files?uploadType=resumable&convert=true&alt=json returned "Bad Req uest">