Google客户端PHP API错误\u空\u响应错误

Google客户端PHP API错误\u空\u响应错误,php,error-handling,google-api,google-api-client,google-oauth,Php,Error Handling,Google Api,Google Api Client,Google Oauth,在调用Google$client->refreshToken时,我很难找到一个错误 服务器正在返回ERR\u EMPTY\u响应324运行时错误,但我似乎无法捕获错误 这是我的密码: $ref = $this->client->getRefreshToken(); try { $this->client->refreshToken($ref); // <<<<<<<<<<<<ERROR HER

在调用Google$client->refreshToken时,我很难找到一个错误

服务器正在返回ERR\u EMPTY\u响应324运行时错误,但我似乎无法捕获错误

这是我的密码:

$ref = $this->client->getRefreshToken();
try {
    $this->client->refreshToken($ref); // <<<<<<<<<<<<ERROR HERE
} catch (\Exception $e) {
     if($debug){
        print_r( $e ); 
        print_r( $this ); 
     }
    return false;
}

问题是最近发布的CentOS 7系统NSS包更新导致Aache错误

/usr/sbin/httpd: symbol lookup error: /lib64/libnsssysinit.so: undefined symbol: PR_GetEnvSecure

问题通过重新启动Apache和FPM服务得到解决。

重新启动您的httpd/Apache服务,一切都会好起来的!如果要在不中断的情况下重新启动,apachectl应该足够好:

apachectl graceful 

重新启动HTTPD服务对AWS-EC2服务器有效

以root用户身份登录 $sudo su

重启HTTPD $service httpd重启