# Encountering 504 even when requesting single record

**URL:** <https://community.hubspot.com/t/encountering-504-even-when-requesting-single-record/92621>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [October 25, 2023, 10:22pm UTC](https://community.hubspot.com/t/encountering-504-even-when-requesting-single-record/92621 "2023-10-25T22:22:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sglue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@sglue](https://community.hubspot.com/u/sglue)\
**Post date:** [October 25, 2023, 10:22pm UTC](https://community.hubspot.com/t/encountering-504-even-when-requesting-single-record/92621/1 "2023-10-25T22:22:07Z")

</div>

Hi,

I’m running into 504 errors when listing archived companies. This happens even if I set the `limit` to 1.  
`/crm/v3/objects/company?limit=1&archived=true`  
This call works fine when I set archived=false, but not when set to true.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 26, 2023, 10:30pm UTC](https://community.hubspot.com/t/encountering-504-even-when-requesting-single-record/92621/2 "2023-10-26T22:30:58Z")

</div>

Hey, @sglue 👋 I hope you got this worked out. If not, I have a suggestion.

Next step – can you double-check your request URL? Your example shows `/crm/v3/objects/ **company**?limit=1&archived=true` vs what the documentation uses `crm/v3/objects/ **companies**?limit=1&archived=true`

I ran a quick test using the endpoint doc example and got back the expected result.

Request:

```lia-code-sample
curl --request GET \
 --url 'https://api.hubapi.com/crm/v3/objects/companies?limit=1&archived=true' \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

```

Response:

```lia-code-sample
HTTP 200

{
 "results": [
 {
 "id": "17824303529",
 "properties": {
 "createdate": "2023-10-26T22:19:15.916Z",
 "domain": null,
 "hs_lastmodifieddate": "2023-10-26T22:21:01.313Z",
 "name": "test to delete"
 },
 "createdAt": "2023-10-26T22:19:15.916Z",
 "updatedAt": "2023-10-26T22:21:01.313Z",
 "archived": true,
 "archivedAt": "2023-10-26T22:21:55.918Z"
 }
 ]
}

```

Have fun building! —Jaycee

---

<div class="post-metadata">

**Author:** ![sglue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@sglue](https://community.hubspot.com/u/sglue)\
**Post date:** [October 26, 2023, 10:38pm UTC](https://community.hubspot.com/t/encountering-504-even-when-requesting-single-record/92621/3 "2023-10-26T22:38:29Z")

</div>

Sorry -- I actually meant `crm/v3/objects/ **companies**?limit=1&archived=true` and not `crm/v3/objects/ **company**?limit=1&archived=true`.  
Either way, I am getting the 504.
