dongtong1226
2017-03-10 22:37
浏览 72
已采纳

Google客户端PHP API ERR_EMPTY_RESPONSE错误

I am having a very difficult time trying to track down an error when calling Googles $client->refreshToken().

The server is returning a ERR_EMPTY_RESPONSE 324 run time error, but I cant seem to catch the error.

Here is my code:

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

图片转代码服务由CSDN问答提供 功能建议

在调用Googles $ client-&gt;时,我很难尝试追踪错误。 refreshToken()

服务器返回ERR_EMPTY_RESPONSE 324运行时错误,但我似乎无法捕获错误。

这是我的代码:

  $ ref = $ this-&gt; client-&gt; getRefreshToken(); 
try {
 $ this-&gt; client-&gt; refreshToken($ ref);  //&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; ERROR HERE 
}} catch(\ Exception $ e){
 if($ debug){
 print_r  ($ e);  
 print_r($ this);  
} 
返回false; 
} 
   
 
  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • doupan6648 2017-03-11 16:53
    已采纳

    The problem was a recently published an update to the NSS package for CentOS 7 systems which was resulting in an Aache error

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

    The issue was resolved by restarting the Apache and FPM services.

    评论
    解决 无用
    打赏 举报
  • 查看更多回答(2条)

相关推荐 更多相似问题