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

status = 200 when file not found #1

Open
ritalui opened this issue Jul 31, 2012 · 0 comments
Open

status = 200 when file not found #1

ritalui opened this issue Jul 31, 2012 · 0 comments
Labels

Comments

@ritalui
Copy link
Owner

ritalui commented Jul 31, 2012

Using Google Drive API's drive.files.list call with parameter 'q' to search for a file by name, when the file is not found, Google API returns status value 200 which means success. Thus, the success code path was executed and it eventually raised Rails error.

Using Google's API explorer for testing, https://developers.google.com/apis-explorer/#s/drive/v2/drive.files.list, the API call should return status value 400.

Currently, Gemfile.lock shows google-api-client 0.4.3 is loaded for the app. We changed the Gemfile to force google-api-client 0.4.4 to be loaded. (0.4.4 is the lastest.) Same problem exists with 0.4.4 api client.

Investigation is required.

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

No branches or pull requests

1 participant