Hubspot refuses connection intermittently


The emails are failing intermittently due to connection error from Hubspot.

2018-02-21 06:14:18,464 [http-nio-8080-exec-9] ERROR  Failed to send email due to an unexpected error:
org.springframework.web.client.ResourceAccessException: I/O error on POST request for "{apiKey}":Connection reset; nested exception is Connection reset.

Thanks in advance.


Hi @rohand,

Thanks for your patience here, this post slipped under my radar. Can you give me some more info on these errors? Do you have more verbose logging, maybe with the error code(s)? Is this only happening with the one endpoint, or is it affecting requests across multiple services?


Hi Derek,

Unfortunately, there are no more details in the logs and no error codes.
This error occurs when calling one endpoint - send transactional email{apiKey}

As mentioned, the failure is intermittent and does not occur for a specific email template.


I am having the same issue, but it is happening quite frequently. I see it almost 50% of the time.

I/O error on POST request for "": Connection reset; nested exception is Connection reset.

Any thoughts?


@brian-voicebase Clearly, this is really a server side issue but hubspot refused to resolve it.

I had to implement a hack at client side - explicitly check for stale connections and keep the connection socket alive. Hope this helps.