500 error for advanced search

Hi,
I’m getting 500 response for https://api.companieshouse.gov.uk/advanced-search/companies endpoint from yesterday.

We are experiencing the same problem.

In the website also the Advanced Search is not working.

Hmm… Advanced Search in the website worked Ok for me just now (+01 09:06). The following give results and no error:

https://find-and-update.company-information.service.gov.uk/advanced-search/get-results?companyNameIncludes=&companyNameExcludes=&registeredOfficeAddress=&incorporationFromDay=&incorporationFromMonth=&incorporationFromYear=&incorporationToDay=&incorporationToMonth=&incorporationToYear=&sicCodes=&type=eeig&dissolvedFromDay=&dissolvedFromMonth=&dissolvedFromYear=&dissolvedToDay=&dissolvedToMonth=&dissolvedToYear=

https://find-and-update.company-information.service.gov.uk/advanced-search/get-results?companyNameIncludes=greggs&companyNameExcludes=&registeredOfficeAddress=&incorporationFromDay=&incorporationFromMonth=&incorporationFromYear=&incorporationToDay=&incorporationToMonth=&incorporationToYear=&sicCodes=&dissolvedFromDay=&dissolvedFromMonth=&dissolvedFromYear=&dissolvedToDay=&dissolvedToMonth=&dissolvedToYear=

1 Like

Thanks for the notification. Yes now it is working fine in website and API too.

Hi,
I’m also getting 500 response for https://api.companieshouse.gov.uk/advanced-search/companies endpoint.

It is working now. Please check.

I’m seeing the same problem, not just with Advanced Search but with some of the other endpoints too

For example:

https://api.company-information.service.gov.uk/company/12345

throws 500 (I’m expecting a 404)

I’m pretty sure this is not a problem with the way we do authentication as it has worked fine many times before.

Also, the following query works fine when authenticated in exactly the same way:

https://api.company-information.service.gov.uk/search/officers?q=John+Doe

Seems to be an issue with that company id (12345). It was intended to be a non-existent company and return 404 but started returning 500, possibly something was changed in the endpoint that expects a particular format.
Putting in a real company id in returns fine.
No longer a problem now that I can ping the endpoint to test authentication.

Yes, invalid company codes (e.g. less than 8 characters long) apparently give you an 500 error, rather 404 not found code you get for ones which merely don’t exist yet.

See thread here:

1 Like