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

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=****** 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.

Hey @graceMO

Are you still receiving this reset issue?

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

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

@himanshurauthan , have you seen anything like this? :thinking:

@dennisedson ,

Yes, this issue is discussed here:

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

Thanks,
Himanshu

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

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

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.

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:

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)