|
@@ 440-443 (lines=4) @@
|
| 437 |
|
$jobId = $json['data'][0]['details']['id']; |
| 438 |
|
|
| 439 |
|
// We don't care about the job status right now, it will be checked later |
| 440 |
|
} else { |
| 441 |
|
$this->logger->error('Cannot create bulk read query for module ' . $apiModuleName . ': status: ' . $response->getStatusCode() . '. Status: ' . $response->getBody()->getContents()); |
| 442 |
|
break; |
| 443 |
|
} |
| 444 |
|
|
| 445 |
|
if ($jobId === null) { |
| 446 |
|
$this->logger->error('JobID cannot be null. json:' . $resultStr); |
|
@@ 482-485 (lines=4) @@
|
| 479 |
|
$this->logger->error('Unsupported response: ' . $resultStr); |
| 480 |
|
break; |
| 481 |
|
} |
| 482 |
|
} else { |
| 483 |
|
$this->logger->error('Cannot get bulk job status query for module ' . $apiModuleName . ': status: ' . $response->getStatusCode() . '. Status: ' . $response->getBody()->getContents()); |
| 484 |
|
break; |
| 485 |
|
} |
| 486 |
|
sleep(15); |
| 487 |
|
} |
| 488 |
|
|
|
@@ 550-553 (lines=4) @@
|
| 547 |
|
$this->logger->error('Error when extracting zip file: ' . $zipErrorMessage); |
| 548 |
|
break; |
| 549 |
|
} |
| 550 |
|
} else { |
| 551 |
|
$this->logger->error('Cannot download results for module ' . $apiModuleName . ': status: ' . $response->getStatusCode() . '. Status: ' . $response->getBody()->getContents()); |
| 552 |
|
break; |
| 553 |
|
} |
| 554 |
|
|
| 555 |
|
// Step 4: Save data |
| 556 |
|
if (!$canProcessCsv) { |