# Getting 400 Bad Request when fetching contacts

**URL:** <https://community.hubspot.com/t/getting-400-bad-request-when-fetching-contacts/99965>\
**Category:** APIs & Integrations\
**Tags:** contacts, timeline-and-extensions-apis\
**Created:** [February 12, 2024, 1:35pm UTC](https://community.hubspot.com/t/getting-400-bad-request-when-fetching-contacts/99965 "2024-02-12T13:35:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KanchanaK](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@KanchanaK](https://community.hubspot.com/u/KanchanaK)\
**Post date:** [February 12, 2024, 1:35pm UTC](https://community.hubspot.com/t/getting-400-bad-request-when-fetching-contacts/99965/1 "2024-02-12T13:35:51Z")

</div>

Hi Team,

Sometimes, we facing below error while trying to fetch contacts.

{“status\_code”:400,“response”:“Remote host terminated the handshake”}

API : GET - [https://api.hubapi.com/contacts/v1/lists/all/contacts/all](https://api.hubapi.com/contacts/v1/lists/all/contacts/all)

Could you please let us know the cause behind this error?

---

<div class="post-metadata">

**Author:** ![dsmarion](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dsmarion/32/7509_2.png) [@dsmarion](https://community.hubspot.com/u/dsmarion)\
**Post date:** [February 12, 2024, 2:36pm UTC](https://community.hubspot.com/t/getting-400-bad-request-when-fetching-contacts/99965/2 "2024-02-12T14:36:14Z")

</div>

Hmmmm. I don’t know what is causing your specifc error (400 is a very general failiure) but I would suggest you switch to using the current version of the APIs (v3). [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/contacts)
