# API Search seems to be down - Getting 403 and 502

**URL:** <http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878>\
**Category:** API Issues\
**Created:** [May 8, 2024, 8:05am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878 "2024-05-08T08:05:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![effahid](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/effahid/32/2045_2.png) [@effahid](http://forum.companieshouse.gov.uk/u/effahid)\
**Post date:** [May 8, 2024, 8:05am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/1 "2024-05-08T08:05:20Z")

</div>

Hi  
The search service seems down . 403 was being received in response to search queries but logging into [https://identity.company-information.service.gov.uk/oauth2/user/signin](https://identity.company-information.service.gov.uk/oauth2/user/signin) shows a 502 Gateway error . I believe there was an identity service related issue a few weeks ago which prevented users from logging in, so this might be related.

Can this be looked into please

---

<div class="post-metadata">

**Author:** ![phillips\_chris](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/p/48db29/32.png) [@phillips\_chris](http://forum.companieshouse.gov.uk/u/phillips_chris)\
**Post date:** [May 8, 2024, 8:06am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/2 "2024-05-08T08:06:46Z")

</div>

Today we’re also getting 403 consistently

---

<div class="post-metadata">

**Author:** ![tiago.salgado](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/t/f9ae1b/32.png) [@tiago.salgado](http://forum.companieshouse.gov.uk/u/tiago.salgado)\
**Post date:** [May 8, 2024, 8:13am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/3 "2024-05-08T08:13:59Z")

</div>

We are seeing the same issues reported since 8:14am … @MArkWilliams tagging you for awareness in case you can provide some update on what is happening.

Thanks

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [May 8, 2024, 8:20am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/4 "2024-05-08T08:20:09Z")

</div>

There was a release at 08:55 that caused a number of 5XX errors for a few minutes. It’s all back ok now. If you have anything more specific, and later than 09:01, please let us know.

---

<div class="post-metadata">

**Author:** ![tiago.salgado](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/t/f9ae1b/32.png) [@tiago.salgado](http://forum.companieshouse.gov.uk/u/tiago.salgado)\
**Post date:** [May 8, 2024, 8:23am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/5 "2024-05-08T08:23:50Z")

</div>

> [@MArkWilliams](#):
>
> e let us know.

We are still seeing errors and as mentioned it started 8:14am, so a bit earlier than the 08:55am you mentioned the release was pushed.

---

<div class="post-metadata">

**Author:** ![effahid](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/effahid/32/2045_2.png) [@effahid](http://forum.companieshouse.gov.uk/u/effahid)\
**Post date:** [May 8, 2024, 8:24am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/6 "2024-05-08T08:24:34Z")

</div>

Yep , still seeing 403s.  
Also, [https://identity.company-information.service.gov.uk/oauth2/user/signin](https://identity.company-information.service.gov.uk/oauth2/user/signin) still shows a 502 Gateway error when signing in to the developer account

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [May 8, 2024, 8:26am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/7 "2024-05-08T08:26:29Z")

</div>

What type of errors?  
I have just called the API a few times, no issues. The CHS web service uses the AOI aswell and there are no issues reported there.  
There was a firewall rule configuration change at 08:00hrs this morning. What type of errors are you getting? are you getting ANY data from us?

---

<div class="post-metadata">

**Author:** ![ash](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@ash](http://forum.companieshouse.gov.uk/u/ash)\
**Post date:** [May 8, 2024, 8:29am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/8 "2024-05-08T08:29:18Z")

</div>

We’re just getting 403: Forbidden across the board. This is from multiple locations with multiple keys. No data being returned.

---

<div class="post-metadata">

**Author:** ![ruta.makunaite](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@ruta.makunaite](http://forum.companieshouse.gov.uk/u/ruta.makunaite)\
**Post date:** [May 8, 2024, 8:30am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/9 "2024-05-08T08:30:07Z")

</div>

We have also been getting 403 errors to all  
GET [https://api.company-information.service.gov.uk/advanced-search/companies](https://api.company-information.service.gov.uk/advanced-search/companies)  
GET [https://api.company-information.service.gov.uk/company/](https://api.company-information.service.gov.uk/company/)

requests since about 8 AM.

---

<div class="post-metadata">

**Author:** ![tiago.salgado](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/t/f9ae1b/32.png) [@tiago.salgado](http://forum.companieshouse.gov.uk/u/tiago.salgado)\
**Post date:** [May 8, 2024, 8:31am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/10 "2024-05-08T08:31:17Z")

</div>

We’ve been seeing those errors from our production server but if we attempt in a local machine it seems to work ok.

This is what we get

```auto
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>

```

Any advice?

---

<div class="post-metadata">

**Author:** ![ruta.makunaite](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@ruta.makunaite](http://forum.companieshouse.gov.uk/u/ruta.makunaite)\
**Post date:** [May 8, 2024, 8:33am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/11 "2024-05-08T08:33:27Z")

</div>

We have the same - works fine locally but not fine on prod.

---

<div class="post-metadata">

**Author:** ![john.nolan](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@john.nolan](http://forum.companieshouse.gov.uk/u/john.nolan)\
**Post date:** [May 8, 2024, 8:33am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/12 "2024-05-08T08:33:45Z")

</div>

@MArkWilliams we’re also seeing 4xx response codes from [https://xmlgw.companieshouse.gov.uk/v1-0/xmlgw/Gateway](https://xmlgw.companieshouse.gov.uk/v1-0/xmlgw/Gateway).

We’re not getting past the handshake so I’m guessing it is probably infrastructure related?

---

<div class="post-metadata">

**Author:** ![mayak](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/m/eb9ed0/32.png) [@mayak](http://forum.companieshouse.gov.uk/u/mayak)\
**Post date:** [May 8, 2024, 8:34am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/13 "2024-05-08T08:34:14Z")

</div>

Hi Mark, we have also been receiving errors when calling [https://api.company-information.service.gov.uk/company/](https://api.company-information.service.gov.uk/company/) from our production server.

Exception message: “The remote server returned an error: (403) Forbidden.”  
Exception status: “ProtocolError”  
Http protocol: 1.1

Can you please provide further details on the firewall configuration change made this morning? Is there anything we need to configure on our side?

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [May 8, 2024, 8:36am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/14 "2024-05-08T08:36:20Z")

</div>

No, that is the XML gateway, not for this forum.

---

<div class="post-metadata">

**Author:** ![philip1](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/p/b5ac83/32.png) [@philip1](http://forum.companieshouse.gov.uk/u/philip1)\
**Post date:** [May 8, 2024, 8:37am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/15 "2024-05-08T08:37:31Z")

</div>

Same here we are getting 403’s on every api call  
example @ 09:33 UK time:  
Could not retrieve result from remote endpoint [[https://api.companieshouse.gov.uk/company/12556773](https://api.companieshouse.gov.uk/company/12556773)], The remote server returned an error: (403) Forbidden.

---

<div class="post-metadata">

**Author:** ![john.nolan](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@john.nolan](http://forum.companieshouse.gov.uk/u/john.nolan)\
**Post date:** [May 8, 2024, 8:40am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/16 "2024-05-08T08:40:15Z")

</div>

We’re also seeing the same for the company profile API endpoint. Just wanted to confirm that it isn’t restricted to the API - seems to be across the board for CH services.

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [May 8, 2024, 8:41am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/17 "2024-05-08T08:41:33Z")

</div>

There was a firewall change that looks like it may have blocked some cloud addresses.  
Please hang on while I speak to the network team to ‘fix’ this…

---

<div class="post-metadata">

**Author:** ![philip1](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/p/b5ac83/32.png) [@philip1](http://forum.companieshouse.gov.uk/u/philip1)\
**Post date:** [May 8, 2024, 8:45am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/18 "2024-05-08T08:45:34Z")

</div>

Working for us now - Thanks!

---

<div class="post-metadata">

**Author:** ![ash](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@ash](http://forum.companieshouse.gov.uk/u/ash)\
**Post date:** [May 8, 2024, 8:51am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/19 "2024-05-08T08:51:06Z")

</div>

Yeah, we’re back now too

---

<div class="post-metadata">

**Author:** ![effahid](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/effahid/32/2045_2.png) [@effahid](http://forum.companieshouse.gov.uk/u/effahid)\
**Post date:** [May 8, 2024, 8:53am UTC](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878/20 "2024-05-08T08:53:11Z")

</div>

Looks like it is working now. Thanks

[Next page](http://forum.companieshouse.gov.uk/t/api-search-seems-to-be-down-getting-403-and-502/7878.md?page=2)
