2
使用基於Zend FW的Youtube API。在頁面加載經常收到錯誤Zend框架youtube api超時問題
Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 503 <errors xmlns='http://schemas.google.com/g/2005'><error>
或者
Read timed out after 10 second
Google搜索了一下,發現有用的提醒:超時設置爲180,但它並不能幫助。再一次,這個錯誤發生在不是每次都是,但是經常是。
$yt = new Zend_Gdata_YouTube();
$yt->getHttpClient()->setConfig(array('timeout'=>180));
如何處理該問題?