Google drive file list fails with 500 error

32 views
Skip to first unread message

Kyle d'Oliveira

unread,
Jan 23, 2014, 2:16:55 PM1/23/14
to google-drive...@googlegroups.com
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.

Harsh Dev

unread,
May 15, 2014, 6:03:17 PM5/15/14
to google-drive...@googlegroups.com
I'm having this issue with Java sdk. I'm using the 1.18.0-rc one and this issue happens when i attempt to fetch files.list.

The ODD part here is it only happens for 2/3 users in my domain. For me its fine but I'm using a service account for impersonation and that fails with this error. Occasionally it also throws 503s at me. I've implemented exponential backoff, but it doesnt seem to help.

Lastly, this same code was working fine yesterday and today(May 15, 2014) it isnt.

I'd really appreciate some help as its blocking a lot of stuff for me.


Harsh Dev

unread,
May 15, 2014, 7:04:48 PM5/15/14
to google-drive...@googlegroups.com
It seems like it was actually a google server error. I attempted the same queries in the browser api and 75% of them returned a 500 as well.
It seems to be fixed now though.
Reply all
Reply to author
Forward
0 new messages