title: Frequent HTTP 500 Internal Errors with Google Drive drive.files.get API
body: <p>We have a service which is highly dependent on Google Drive (it uses <a href="https://developers.google.com/api-client-library/python/" rel="nofollow noreferrer">the Python SDK</a>), our service goes through Google Drive collections and files.</p>
  <p>Checking the production log, we found that there are many HTTP 500 Server Internal Errors when we call Google Drive's <code>drive.files.get</code> API endpoint. The error rate is about 0.5%. After investigating, I found that the extreme case is continuous 9 HTTP 500 failure in one hour.</p>
  <p>The exceptions look like this:</p>
  <pre><code>  File &quot;/home/xxxxxx/xxxxxxx/storage.py&quot;, line 1185, in get_file
      gdrive_file = self.client.files().get(fileId='0Bxn2GmQxR4zHYlNvaUlFNjl6MkE', fields='id,title,modifiedDate,createdDate,fileSize,mimeType,downloadUrl,labels').execute()
    File &quot;/usr/lib/python2.7/dist-packages/apiclient/http.py&quot;, line 389, in execute
      raise HttpError(resp, content, self.uri)
  HttpError: &lt;HttpError 500 when requesting https://www.googleapis.com/drive/v2/files/0Bxn2GmQxR4zHYlNvaUlFNjl6MkE?fields=id%2Ctitle%2CmodifiedDate%2CcreatedDate%2CfileSize%2CmimeType%2CdownloadUrl%2Clabels&amp;alt=json returned &quot;Internal Error&quot;&gt;
  </code></pre>
  <p>Our service is hosted on Amazon Web Service, in the US WEST-2 data center.</p>
  <p>Has anyone had a similar issue? Any help is appreciated.</p>