|
@@ 358-361 (lines=4) @@
|
| 355 |
|
$jobId = $json['data'][0]['details']['id']; |
| 356 |
|
|
| 357 |
|
// We don't care about the job status right now, it will be checked later |
| 358 |
|
} else { |
| 359 |
|
$this->logger->error('Cannot create bulk read query for module ' . $apiModuleName . ': status: ' . $response->getStatusCode() . '. Status: ' . $response->getBody()->getContents()); |
| 360 |
|
break; |
| 361 |
|
} |
| 362 |
|
|
| 363 |
|
if ($jobId === null) { |
| 364 |
|
$this->logger->error('JobID cannot be null. json:' . $resultStr); |
|
@@ 400-403 (lines=4) @@
|
| 397 |
|
$this->logger->error('Unsupported response: ' . $resultStr); |
| 398 |
|
break; |
| 399 |
|
} |
| 400 |
|
} else { |
| 401 |
|
$this->logger->error('Cannot get bulk job status query for module ' . $apiModuleName . ': status: ' . $response->getStatusCode() . '. Status: ' . $response->getBody()->getContents()); |
| 402 |
|
break; |
| 403 |
|
} |
| 404 |
|
sleep(15); |
| 405 |
|
} |
| 406 |
|
|
|
@@ 468-471 (lines=4) @@
|
| 465 |
|
$this->logger->error('Error when extracting zip file: ' . $zipErrorMessage); |
| 466 |
|
break; |
| 467 |
|
} |
| 468 |
|
} else { |
| 469 |
|
$this->logger->error('Cannot download results for module ' . $apiModuleName . ': status: ' . $response->getStatusCode() . '. Status: ' . $response->getBody()->getContents()); |
| 470 |
|
break; |
| 471 |
|
} |
| 472 |
|
|
| 473 |
|
// Step 4: Save data |
| 474 |
|
if (!$canProcessCsv) { |