tienfuc / gdcmdtools

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

http errors #95

Open tshrinivasan opened 8 years ago

tshrinivasan commented 8 years ago

Getting http error or internal server error sometimes.

see the error messages.

uploading page_00044.pdf to google Drive. INFO:main:Running gdput.py -t ocr -f 0B1OpcVV-vRSWi1SbmtsaHVGU28 page_00044.pdf | tee page_00044.log Traceback (most recent call last): Uploading file: page_00044.pdf File size: 83.1KB File "/usr/local/bin/gdput.py", line 252, in response = puter.run() File "/usr/local/lib/python2.7/dist-packages/gdcmdtools/put.py", line 120, in run result = getattr(self, self.target_type + "put")() File "/usr/local/lib/python2.7/dist-packages/gdcmdtools/put.py", line 505, in ocr_put return self.generic_put(True) File "/usr/local/lib/python2.7/dist-packages/gdcmdtools/put.py", line 485, in generic_put service_response = request.execute() 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 729, in execute raise HttpError(resp, content, uri=self.uri) googleapiclient.errors.HttpError: INFO:__main:

INFO:main:

uploading page_00002.pdf to google Drive. INFO:main:Running gdput.py -t ocr -f 0Bzu8oam42f2mWi1qazc3aUhHU1E page_00002.pdf | tee page_00002.log Uploading file: page_00002.pdf File size: 5.0KB Traceback (most recent call last): File "/usr/local/bin/gdput.py", line 252, in response = puter.run() File "/usr/local/lib/python2.7/dist-packages/gdcmdtools/put.py", line 120, in run result = getattr(self, self.target_type + "_put")() File "/usr/local/lib/python2.7/dist-packages/gdcmdtools/put.py", line 505, in ocr_put return self.generic_put(True) File "/usr/local/lib/python2.7/dist-packages/gdcmdtools/put.py", line 485, in generic_put service_response = request.execute() 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 729, in execute raise HttpError(resp, content, uri=self.uri) googleapiclient.errors.HttpError: <HttpError 500 when requesting https://www.googleapis.com/upload/drive/v2/files?uploadType=multipart&convert=true&alt=json returned "Internal Error"> INFO:main:

I think this errors are from google and solution is not in our control.

Just want to know about developers thoughts on this.