# Intermittent connection reset when calling the API https://api.hubapi.com/contacts/v1/contact/email

**URL:** <https://community.hubspot.com/t/intermittent-connection-reset-when-calling-the-api-https-api-hubapi-com-contacts-v1-contact-email/30355>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [January 18, 2021, 2:32pm UTC](https://community.hubspot.com/t/intermittent-connection-reset-when-calling-the-api-https-api-hubapi-com-contacts-v1-contact-email/30355 "2021-01-18T14:32:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![graceMO](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gracemo/32/43030_2.png) [@graceMO](https://community.hubspot.com/u/graceMO)\
**Post date:** [January 18, 2021, 2:32pm UTC](https://community.hubspot.com/t/intermittent-connection-reset-when-calling-the-api-https-api-hubapi-com-contacts-v1-contact-email/30355/1 "2021-01-18T14:32:37Z")

</div>

![36628i81E050FC502DA9ED.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/9/f99196c386f27570da4f06c89e0cf1bc10843354.png)

We keep getting intermittent connection reset error when trying to access the contact lookup API via email.

[https://api.hubapi.com/contacts/v1/contact/email/testcomp18@\*\*bleep\*\*.com/profile/?hapikey=\*\*\*\*\*\*](https://api.hubapi.com/contacts/v1/contact/email/testcomp18@ **bleep**.com/profile/?hapikey=e15f5478-b20f-43fe-9efb-15db998d293e) in the testing environment. (refer to attached picture for timing). Usually after a few more tries, the URL will works. Would like to know what could be the cause of this frequent behavior suddenly happening in the hubspot staging environment. Thanks.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 19, 2021, 6:27pm UTC](https://community.hubspot.com/t/intermittent-connection-reset-when-calling-the-api-https-api-hubapi-com-contacts-v1-contact-email/30355/2 "2021-01-19T18:27:32Z")

</div>

Hey @graceMO

Are you still receiving this reset issue?

Looks like it is with multiple contacts. Is that correct?

---

<div class="post-metadata">

**Author:** ![graceMO](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gracemo/32/43030_2.png) [@graceMO](https://community.hubspot.com/u/graceMO)\
**Post date:** [January 21, 2021, 11:35am UTC](https://community.hubspot.com/t/intermittent-connection-reset-when-calling-the-api-https-api-hubapi-com-contacts-v1-contact-email/30355/3 "2021-01-21T11:35:43Z")

</div>

Hi Dennis,

Yes we are still encountering this connection reset issue. The connection reset error is intermittent.

The error is random and happening to different contacts. But for the same contact, the API will work sometimes and sometimes will hit the connection reset issue.

Thanks,

Grace

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 21, 2021, 4:06pm UTC](https://community.hubspot.com/t/intermittent-connection-reset-when-calling-the-api-https-api-hubapi-com-contacts-v1-contact-email/30355/4 "2021-01-21T16:06:09Z")

</div>

@himanshurauthan , have you seen anything like this? 🤔

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [January 22, 2021, 5:24am UTC](https://community.hubspot.com/t/intermittent-connection-reset-when-calling-the-api-https-api-hubapi-com-contacts-v1-contact-email/30355/5 "2021-01-22T05:24:44Z")

</div>

@dennisedson ,

Yes, this issue is discussed here:

[https://community.hubspot.com/t5/APIs-Integrations/Hubspot-refuses-connection-intermittently/td-p/235680\](https://community.hubspot.com/t5/APIs-Integrations/Hubspot-refuses-connection-intermittently/td-p/235680%5C), and we have to handle it in our client-side code for now, until the HubSpot team resolves it.

Thanks,  
Himanshu

---

<div class="post-metadata">

**Author:** ![graceMO](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gracemo/32/43030_2.png) [@graceMO](https://community.hubspot.com/u/graceMO)\
**Post date:** [January 22, 2021, 5:30am UTC](https://community.hubspot.com/t/intermittent-connection-reset-when-calling-the-api-https-api-hubapi-com-contacts-v1-contact-email/30355/6 "2021-01-22T05:30:16Z")

</div>

@himanshurauthan / @dennisedson Thanks for the reply. Seems like no other choice for now.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 22, 2021, 2:59pm UTC](https://community.hubspot.com/t/intermittent-connection-reset-when-calling-the-api-https-api-hubapi-com-contacts-v1-contact-email/30355/7 "2021-01-22T14:59:07Z")

</div>

I am doing some searching internally to see if this is on anyone’s radar 👍

---

<div class="post-metadata">

**Author:** ![graceMO](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gracemo/32/43030_2.png) [@graceMO](https://community.hubspot.com/u/graceMO)\
**Post date:** [March 9, 2021, 2:31pm UTC](https://community.hubspot.com/t/intermittent-connection-reset-when-calling-the-api-https-api-hubapi-com-contacts-v1-contact-email/30355/8 "2021-03-09T14:31:01Z")

</div>

Hi all,

We are encountering this issue again using our production account and it occurs almost 50% of the time since 2 March 2021. Wonder is there any downtime or deployment in hubspot that might have cause this.

---

<div class="post-metadata">

**Author:** ![AndreyStroganov](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@AndreyStroganov](https://community.hubspot.com/u/AndreyStroganov)\
**Post date:** [November 8, 2022, 7:21am UTC](https://community.hubspot.com/t/intermittent-connection-reset-when-calling-the-api-https-api-hubapi-com-contacts-v1-contact-email/30355/9 "2022-11-08T07:21:38Z")

</div>

it seems like HubSpot team just don’t do anything about this issue for years. And I wonder why they always mark these kind of reports as “solved”.

I have the same error few dozens time a day:

```lia-code-sample
Error message: I/O error on POST request for "https://api.hubapi.com/communication-preferences/v3/subscribe": Connection reset; nested exception is java.net.SocketException: Connection reset
org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://api.hubapi.com/communication-preferences/v3/subscribe": Connection reset; nested exception is java.net.SocketException: Connection reset

Caused by: java.net.SocketException: Connection reset
 at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
 at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
 at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478)
 at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472)
 at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)
 at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1449)
 at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1060)

```
