我在調用Google語法$client->refreshToken()
時試圖追查錯誤非常困難。Google客戶端PHP API ERR_EMPTY_RESPONSE錯誤
服務器返回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;
}