谷歌Api誓言异常问题


Google Api Oath Exception Issues

我是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的使用情况及其配置。