title: Google App Engine + Google Drive API causes ERROR:root:php failure (255)
body: <p>In my setup I am using PHP (Zend Framework 2). Everything works fine, and also the Exceptions are working in my application properly. The issue is that when I call the Google Drive API (through Google PHP library) my app freezes for about 60seconds and then server log prints out:</p>
  
  <pre><code>ERROR:root:php failure (255) with:
  stdout:
  X-Powered-By: PHP/5.5.26
  Expires: Thu, 19 Nov 1981 08:52:00 GMT
  Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  Pragma: no-cache
  Content-type: text/html
  </code></pre>
  
  <p>Additionally it starts outputting so much pure php code that PHPStorm complains:</p>
  
  <pre><code>too much output to process
  </code></pre>
  
  <p>And the output just does not stop, it just goes on. It seems to output whole code base in the log and makes the local GAE server crash. But what is important is that the first object that is outputted is actually a Google Service Exception:</p>
  
  <pre><code>object(Google_Service_Exception)#453 (8) {
    ["errors":protected]=&gt;
    array(1) {
      [0]=&gt;
      array(5) {
        ["domain"]=&gt;
        string(6) "global"
        ["reason"]=&gt;
        string(8) "notFound"
        ["message"]=&gt;
        string(60) "File not found: xxxxxxx"
        ["locationType"]=&gt;
        string(5) "other"
        ["location"]=&gt;
        string(4) "file"
      }
    }
    ["message":protected]=&gt;
    string(320) "{
   "error": {
    "errors": [
     {
      "domain": "global",
      "reason": "notFound",
      "message": "File not found: xxxxxxx",
      "locationType": "other",
      "location": "file"
     }
    ],
    "code": 404,
    "message": "File not found: xxxxxxx"
   }
  }
  </code></pre>
  
  <p>My question is what the hell is happening? Why when there is an exception or error on the Google Drive Client side, this happens every time. Otherwise it is working perfectly. Shouldn't it just throw the exception? I am lost.</p>