2012-01-25 44 views
-1

我對Google Plus Api比較新,但是我遵循每條規則將G-Plus API集成到我的WEB中。但每當我陷入這個問題:Google Api Oath異常問題

Fatal error: Uncaught exception 'apiAuthException' with message 'Error refreshing the OAuth2 token, message: ''' in C:\AppServ\www\googleplus-source\google-api-php-client\src\auth\apiOAuth2.php:203 
Stack trace: 
#0 C:\AppServ\www\googleplus-source\google-api-php-client\src\io\apiCurlIO.php(51): apiOAuth2->sign(Object(apiHttpRequest)) 
#1 C:\AppServ\www\googleplus-source\google-api-php-client\src\io\apiREST.php(55): apiCurlIO->authenticatedRequest(Object(apiHttpRequest)) 
#2 C:\AppServ\www\googleplus-source\google-api-php-client\src\service\apiServiceResource.php(148): apiREST::execute(Object(apiServiceRequest)) 
#3 C:\AppServ\www\googleplus-source\google-api-php-client\src\contrib\apiPlusService.php(204): apiServiceResource->__call('get', Array) 
#4 C:\AppServ\www\googleplus-source\google-plus-access.php(40): PeopleServiceResource->get('me') 
#5 C:\AppServ\www\googleplus-source\index.php(2): include_once('C:\AppServ\www\...') 
#6 {main} thrown in C:\AppServ\www\googleplus-source\google-api-php-client\src\auth\apiOAuth2.php on line 203 

什麼可能是這個錯誤的原因?

+3

沒有代碼就很難調試錯誤。 – afuzzyllama

+1

您應該發佈導致此錯誤的代碼,因爲問題很可能在那裏。 – sth

回答

0

可能是這個錯誤的原因是什麼?

這樣做的原因誤差(致命錯誤)在錯誤消息中給出:uncaught異常。這意味着an exception­Docs已被拋出並未被捕獲。這會導致致命的錯誤。

最有可能的情況是,在異常消息中突出顯示的問題的根本原因是錯誤配置和/或錯誤的API使用。由於您沒有在您的問題中發佈任何代碼,因此您應該首先閱讀API文檔,並仔細檢查您對API的使用情況以及它的配置。