We have many users using an integration with google drive. Around 2014-01-22 23:00 UTC the list action the drive started returning a 500 error while the other actions seem to be fine.
Here is an example of the problem. This is in Ruby, using the google-api-client gem version 0.6.4 from
https://github.com/google/google-api-ruby-client. The library version we are using is fixed and hasn't been upgraded at all, so i do not think this bug comes from the library.
client = Google::APIClient.new(:authorization => :oauth_1, :application_name => "Test", :application_version => "1.0.0")
client.authorization.client_credential_key = OAUTH_CREDENTIALS[:google][:key]
client.authorization.client_credential_secret = OAUTH_CREDENTIALS[:google][:secret]
client.key = OAUTH_CREDENTIALS[:google][:api_key]
drive = client.discovered_api("drive", "v2")
client.authorization.token_credential_secret = <User's secret>
client.authorization.token_credential_key = <User's key>
drive = client.discovered_api("drive", 'v2')
result = client.execute(:api_method => drive.files.get, :parameters => {"fileId" => "XXXXXXXXXXXXXXXXX"})
# This is successful. We get a 200 response as well as the proper file in the body of the response.
1.9.3p484 :017 > result.status
=> 200
1.9.3p484 :019 >
result.data.id => "XXXXXXXXXXXXXXXXX"
result = client.execute(:api_method => drive.files.list)
# This gives a 500 response with no message in the body.
# This error is consistent and continues to happen on every list request
1.9.3p484 :022 > result.status
=> 500
1.9.3p484 :023 > result.body
=> "{\n \"error\": {\n \"code\": 500,\n \"message\": null\n }\n}\n"
Does anyone know what is wrong here or if anything has changed on the Google side of things?
Everything was working perfectly for many months before hand and all of a sudden things have gone bad.