angelazno / google-gdata

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

404 error attempting to download any file #440

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
>What steps will reproduce the problem?
1. Start DocListExporter.  Log in.
2. Attempt to download any Document file in any format. 

>What is the expected output? What do you see instead?

An exception is thrown on this line
Stream stream = this.request.Download(d, type);
in Form1.cs.   
The exception is "GDataRequestException was unhandled"
The inner exception is "The remote server returned an error: (404) Not Found."
I get the same exception trying to do a request.Download() in my own code.

>What version of the product are you using? On what operating system?

Windows 7.
There doesn't seem to be a product version number.  The DocListExporter.csproj 
is from 10/27/2009.

Original issue reported on code.google.com by trentmhe...@gmail.com on 8 Nov 2010 at 10:43

GoogleCodeExporter commented 8 years ago
Here's the fix.

Google.Documents.Document.Download()
has this line
queryUri = baseDomain + "feeds/download/documents/Export?docID=" + 
document.ResourceId + "&exportFormat=" + type.ToString(); 

That doesn't work.  This does:
                    queryUri = baseDomain + "feeds/download/documents/export/Export?id=" + document.ResourceId.Replace("document:", "") +"&exportFormat=" + type.ToString(); 

Original comment by mhenry1...@gmail.com on 9 Nov 2010 at 4:33

GoogleCodeExporter commented 8 years ago
I just tested this with the latest release and it is working correctly.

Original comment by ccherub...@google.com on 15 Dec 2010 at 12:18