# Time out when counting products

**URL:** <https://forums.ordoro.com/t/time-out-when-counting-products/466>\
**Category:** Bug Reports\
**Created:** [September 24, 2019, 12:22pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466 "2019-09-24T12:22:15Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [September 24, 2019, 12:22pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/1 "2019-09-24T12:22:15Z")

</div>

Hello!

It started some days ago:

https://\*\*\*\*_ **:** _@api.ordoro.com/product/counts/`**resulted in a`504 Gateway Time-out` response:\*\*

I am running it at 1 AM EST and getting this error basically every day in the last 8 days.

Thanks!

Sergio

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [September 24, 2019, 3:20pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/2 "2019-09-24T15:20:53Z")

</div>

Thank you for the heads up, we will be looking into this issue.

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [September 25, 2019, 12:57pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/3 "2019-09-25T12:57:32Z")

</div>

Hey Sofia!

Today I got this one:

```auto
Client error: `GET **:*** @api.ordoro.com/product/?status=active&sort=sku&limit=100&` resulted in a `400 BAD REQUEST` response:

{"error_message": "The input field 'status' was not expected.", "param": null}

```

I’ve been running both the above and the `api.ordoro.com/product/counts` for months. THere were no changes at our side.

Thanks and have a great day!

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [September 25, 2019, 2:30pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/4 "2019-09-25T14:30:57Z")

</div>

Hi, was this at 1am as well? We saw this error corresponding with a release we made in the afternoon, but it should have cleared up quickly.

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [September 25, 2019, 3:50pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/5 "2019-09-25T15:50:35Z")

</div>

Hi!  
That one happened when we tried to re import the data today around 8 AM.

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [September 25, 2019, 4:18pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/6 "2019-09-25T16:18:56Z")

</div>

Hmm, What time zone are you in? We don’t have any notices of this error post 6pm CST 09/24.

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [September 25, 2019, 4:19pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/7 "2019-09-25T16:19:45Z")

</div>

If this is still an issue, please provide the request ids returned in the header so we can look into this further.

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [September 25, 2019, 5:26pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/8 "2019-09-25T17:26:56Z")

</div>

Sorry. Timezone is EST

I tried now and got the first error:  
…api.ordoro.com/product/counts/`resulted in a`504 Gateway Time-out` response:

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [September 26, 2019, 2:10am UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/9 "2019-09-26T02:10:24Z")

</div>

Hey Sofia.

I’ve just tried both APIs again:

`...@api.ordoro.com/product/counts/` worked 3 out of 3 tries, what is good.

However,

```auto
....api.ordoro.com/product/?status=active

```

returns

```auto
{
    "error_message": "The input field 'status' was not expected.",
    "param": null
}

```

I tried  
`....api.ordoro.com/product/?active=true`  
and  
`....api.ordoro.com/product/?active=1` with no success.

Thanks!

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [September 26, 2019, 1:30pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/10 "2019-09-26T13:30:10Z")

</div>

Hey Sofia, any news?

I’ve just tried `api.ordoro.com/product/counts/`and it timed out again:  
`504 Gateway Time-out`

Also  
`api.ordoro.com/product/?status=active`  
is still saying:

````auto
{
    "error_message": "The input field 'status' was not expected.",
    "param": null
}```
````

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [September 26, 2019, 4:12pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/11 "2019-09-26T16:12:16Z")

</div>

Actually, you are making the wrong request for the product endpoint. it should be `active=true`.

[https://ordoro.docs.apiary.io/#reference/product/product/get](https://ordoro.docs.apiary.io/#reference/product/product/get)

Hope that helps,

Sophie

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [September 26, 2019, 4:13pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/12 "2019-09-26T16:13:14Z")

</div>

I believe this is the post that outlines the changes: [Breaking changes to product endpoint](https://forums.ordoro.com/t/breaking-changes-to-product-endpoint/435)

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [September 26, 2019, 5:48pm UTC](https://forums.ordoro.com/t/time-out-when-counting-products/466/13 "2019-09-26T17:48:03Z")

</div>

Hey Sofia, thanks for clarifying the status/active change. It works.

`@api.ordoro.com/product/counts/` looks to be working now. I will keep an eye on it and let you know if we have any issue.

Thanks!
