# Getting connection reset (HTTP IO exception) issue while calling API

**URL:** <https://community.hubspot.com/t/getting-connection-reset-http-io-exception-issue-while-calling-api/79444>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [April 17, 2023, 10:45am UTC](https://community.hubspot.com/t/getting-connection-reset-http-io-exception-issue-while-calling-api/79444 "2023-04-17T10:45:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PPSL](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@PPSL](https://community.hubspot.com/u/PPSL)\
**Post date:** [April 17, 2023, 10:45am UTC](https://community.hubspot.com/t/getting-connection-reset-http-io-exception-issue-while-calling-api/79444/1 "2023-04-17T10:45:17Z")

</div>

Hi Team,

We are getting connection reset issue frequently while trying to access HubSpot API, Below are the errors we are getting, Any information regarding this issue will be helpful.

**REST\_REQUEST\_URL** :“[https://api.hubapi.com/crm/v3/objects/contacts/search",“\*\*REST\_REQUEST\_BODY\*\*”:"{\\“limit\\”:100,\\“after\\”:0,\\“sorts\\”:\[{\\“propertyName\\”:\\“createdate\\”,\\“direction\\”:\\“ASCENDING\\”}](https://api.hubapi.com/crm/v3/objects/contacts/search%22,%22 **REST%5C_REQUEST%5C_BODY** %22:%22%7B%5C%5C%22limit%5C%5C%22:100,%5C%5C%22after%5C%5C%22:0,%5C%5C%22sorts%5C%5C%22:%5C%5B%7B%5C%5C%22propertyName%5C%5C%22:%5C%5C%22createdate%5C%5C%22,%5C%5C%22direction%5C%5C%22:%5C%5C%22ASCENDING%5C%5C%22%7D)],\“properties\”:[\“checkjan\”,\“company\_size\”,\“custom1212\”],\“filterGroups\”:[{\“filters\”:[{\“highValue\”:0,\“propertyName\”:\“createdate\”,\“value\”:0,\“operator\”:\“BETWEEN\”}]}]}”}}

**Error** - “details”:{“message”:"Request failed with Http IO exception: “,“logData”:{“ExceptionMessage”:“Connection reset”}} , “exceptionTrace”:” java.net.SocketException: Connection reset\n at java.base/java.net.SocketInputStream.read(Unknown Source)\n at java.base/java.net.SocketInputStream.read(Unknown Source)\n at java.base/sun.security.ssl.SSLSocketInputRecord.read(Unknown
