PATCH crm/v3/objects/contacts/{email}?idProperty=email fails inconsistently

Hello Team,

PATCH crm/v3/objects/contacts/{email}?idProperty=email fails sometimes.
Gives
I/O error on PATCH request for \“[https://api.hubapi.com/crm/v3/objects/contacts/{some-email}\\](https://api.hubapi.com/crm/v3/objects/contacts/{some-email}\)”: Connection reset; nested exception is java.net.SocketException: Connection reset
while on other environment, it gives 404 resource not found. The contact can be seen on the hubspot portal.
I added retry mechanism and it worked on 2nd time for those failed calls. Can someone help here, thanks!!

@SJani,

The 404 “Resource not found” error usually happens when the API endpoint is unable to find the specified contact, even though it exists in the HubSpot portal. This may be due to:

  1. Invalid or improperly formatted endpoint URL
  2. API connection issues between HubSpot and your application

Your retry mechanism’s success on the second attempt means that the issues are likely due to temporary connection problems rather than permanent configuration errors.