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));
如何处理该问题?