Hello
I have tool, that take data from db and for each record making a request to CH Api to check information.
So here can be approx N thousands consecutive requests (each request to do 2 request per iteration, for company profile and officers).
Sometimes https://api.companieshouse.gov.uk/company/{company_no} returns invalid json for company profile.
On current moment I have broken JSON after approx 360 requests
At last run I have problem for company number 00173955.
I received following for api.companieshouse.gov.uk/company/00173955
status: 200
array(
'etag' => 'a92a239043c5b396603f6e354ddc97d59c871c8d',
'registered_office_address' =>
stdClass::__set_state(array(
)),
'can_file' => false,
)
and following for api.companieshouse.gov.uk/company/00173955/officers
status: 200
array(
'total_results' => 0,
'links' =>
stdClass::__set_state(array(
)),
'start_index' => 0,
'etag' => '',
'items_per_page' => 35,
'active_count' => 0,
'kind' => 'officer-list',
'resigned_count' => 0,
'items' =>
array (
),
)
Please contact with me if you need more information.
It looks like I can reproduce it.
Thank you
Dmitry Golubev