Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drive.file().get(key) fails with spreadsheet keys from google-apps-script #859

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link
Collaborator

Version of google-api-java-client (e.g. 1.15.0-rc)?

v2-rev82-1.15.0-rc



Java environment (e.g. Java 6, Android 2.3, App Engine)?

App-Engine



Describe the problem.

Was working fine, then stopped working.


        Drive driveService = new Drive.Builder(TRANSPORT, JSON_FACTORY, credential).setApplicationName("CellMaster.com.au").build();
        File file = driveService.files().get(this.spreadsheetKey).execute();

Just noticed it now fails. I think it broke sometime in the last week or so. It 
fails with the execute(), it produces a 404 error. It gives the error when I 
use with the short spreadsheetKey that is produced by google apps script. The 
key produced by this google-apps-script code:

   SpreadsheetApp.getActiveSpreadsheet().getId();


But it works fine with a manual copy of the spreadsheet key from the url, such 
as
https://docs.google.com/spreadsheet/ccc?key=0AkGlO9jJLGO8dHJrSE0wTEF2VXRSdGRlNVQ
aaVRad0E

Note: the error is happening with old style spreadsheets, the 400,000 cell 
spreadsheets. I am not using the new style as they don't support GData yet.


How would you expect it to be fixed?

I don't want getting the key to be a manual process. So hopping you will make 
it work again. I suspect this stopped working in the last week, but the last 
time I am sure it worked was about be about 3 weeks ago.

Original issue reported on code.google.com by InstantW...@gmail.com on 17 Feb 2014 at 7:18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant