我已经使用 Zend Gdata 好几年了。
然而,今天当我未更改的代码执行以下命令时
$query = $this->gp->newAlbumQuery();
我收到以下错误
exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 403 Authorization required' in /shared/zend/ZendFramework-1.12.13/library/Zend/Gdata/App.php:717 Stack trace: #0 /shared/zend/ZendFramework-1.12.13/library/Zend/Gdata.php(221): Zend_Gdata_App->performHttpRequest('GET', 'https://picasaw...', Array, NULL, NULL, NULL) #1 /shared/zend/ZendFramework-1.12.13/library/Zend/Gdata/App.php(883): Zend_Gdata->performHttpRequest('GET', 'https://picasaw...', Array)
我认为这是因为身份验证失败。我检查过,我的凭据都很好,并且以下身份验证成功,没有异常
$client = Zend_Gdata_ClientLogin::getHttpClient($this->config['username'],
$this->config['password'],
Zend_Gdata_Photos::AUTH_SERVICE_NAME);
我看到Zend Gdata仍然是1.12.13版本。不过,最近的发布日期是 20/05/2015。所以我使用这个新版本进行了更新。但错误还是一样。
所以我所知道的是我已经通过了身份验证,但是newAlbumQuery
方法引发上述异常。
还有其他人在使用 Zend Gdata 时遇到过这个问题吗?有没有人找到修复或解决方法?