Php 谷歌Api誓言异常问题

Php 谷歌Api誓言异常问题,php,Php,我对Google Plus Api比较新,但我遵循了每一条规则,将G-Plus Api集成到我的WEB中。但每次我被困在这个问题上: 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\api

我对Google Plus Api比较新,但我遵循了每一条规则,将G-Plus Api集成到我的WEB中。但每次我被困在这个问题上:

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
这一错误的原因可能是什么

这一错误的原因可能是什么

错误消息中给出了此错误(致命错误)的原因:未捕获异常。这意味着被扔了,没有被抓住。这将导致致命错误


在您的情况下,异常消息中突出显示的问题的根本原因很可能是配置错误和/或API使用错误。由于您的问题中没有发布任何代码,您应该先阅读API文档,并仔细检查API的使用情况及其配置。

没有代码就很难调试错误。您应该发布导致此错误的代码,因为问题很可能存在。