mindyjw / gdocbackup

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

The remote server returned an error: (400) Bad Request #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
".\GDocBackup_0.7.6.187_CMD\GDocBackupCMD.exe" -mode=backup 
-username=user@MYDOWNMAIN.com -passwordEncFile=.\gdocbackup.password 
-destDir="%GoogleDocsDirectory%" -docF=doc -sprsF=xls -presF=ppt -drawF=png 
-downloadAll

Most xls are fine, but some through errors.

LOG> 007 : DOC-ERROR: (attempt 0) Google.GData.Client.GDataRequestException: 
Execution of request failed: https://docs.g
oogle.com/a/MYGOOGLEAPPSHERE.com/spreadsheets/export?id=LONG_VALUE_HERE&exportFo
rmat=xls ---> Sy
stem.Net.WebException: The remote server returned an error: (400) Bad Request.
   at System.Net.HttpWebRequest.GetResponse()
   at Google.GData.Client.GDataRequest.Execute()
   --- End of inner exception stack trace ---
   at Google.GData.Client.GDataRequest.Execute()
   at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)
   at Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince, String etag, Int64& contentLength)
   at Google.GData.Client.Service.Query(Uri queryUri)
   at Google.Documents.DocumentsRequest.Download(Document document, String exportFormat)
   at GDocBackupLib.Backup.ExecBackupSingleUser(String username)

Original issue reported on code.google.com by testvo...@rodneybeede.com on 27 Jul 2014 at 11:27

GoogleCodeExporter commented 9 years ago
This issue is due to the file extension.  Google now appears to want 
&exportFormat=xlsx and not &exportFormat=xls in the URL.

Original comment by zane.pe...@blackbaud.com on 8 Aug 2014 at 5:10

GoogleCodeExporter commented 9 years ago
Is this issue fixed? 
Only newly created doc will hit this error when running GDocBackup.

Original comment by jstes...@gmail.com on 26 Aug 2014 at 8:17

GoogleCodeExporter commented 9 years ago
I just posted an issue which includes a source workaround for this:

https://code.google.com/p/gdocbackup/issues/detail?id=112

(Unbelievably, I somehow failed to spot this issue (111) before I posted my 
own! Arguably, the two issues could/should be merged.)

The issue *should* only affect "new Sheets" (i.e. those created by default 
after March/April 2014, or earlier if you opted-in to early rollout).

Zane, I wish I'd seen your comment hours ago, I could have saved myself a lot 
of grief. :)

Original comment by jas...@gmail.com on 2 Sep 2014 at 5:51

GoogleCodeExporter commented 9 years ago

Original comment by fht...@gmail.com on 2 Sep 2014 at 8:41

GoogleCodeExporter commented 9 years ago
Any chance of getting a new build cut and released for download?

Original comment by contac...@rodneybeede.com on 15 Oct 2014 at 2:49

GoogleCodeExporter commented 9 years ago
Just published a BETA with the fix. Try it and let me know if it works.
https://drive.google.com/folderview?id=0B9kSHSg5lGq4dDRsQ3lUVTdmaGM&usp=sharing

Original comment by fht...@gmail.com on 15 Oct 2014 at 6:35

GoogleCodeExporter commented 9 years ago
New build works great!  Thanks!

Original comment by contac...@rodneybeede.com on 15 Oct 2014 at 5:47