Google 客户端 PHP API ERR_EMPTY_RESPONSE 错误
Google Client PHP API ERR_EMPTY_RESPONSE Error
我在调用 Google 时很难找到错误 $client->refreshToken()
。
服务器返回 ERR_EMPTY_RESPONSE 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 graceful 应该就可以了:
apachectl graceful
重新启动 HTTPD 服务对 AWS-EC2 服务器有效。
- 以根用户身份登录
$sudo su
- 重新启动 HTTPD
$service httpd 重启
我在调用 Google 时很难找到错误 $client->refreshToken()
。
服务器返回 ERR_EMPTY_RESPONSE 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 graceful 应该就可以了:
apachectl graceful
重新启动 HTTPD 服务对 AWS-EC2 服务器有效。
- 以根用户身份登录
$sudo su
- 重新启动 HTTPD
$service httpd 重启