Their API automatically creates some classes on the fly, and errors are created when they are created.
I ended up after the debugging process to get errors like this:
try {
$job = $bq->jobs->insert(PROJECT_ID, $job);
$status = new Google_Service_Bigquery_JobStatus();
$status = $job->getStatus();
if ($status->count() != 0) {
$err_res = $status->getErrorResult();
die($err_res->getMessage());
}
} catch (Google_Service_Exception $e) {
echo $e->getMessage();
exit;
}
- , Status . , , dryRun .
$config->setDryRun(true);