GOGETMUSCLE Community HS SDK contact search working, update returns Object not found

HS SDK contact search working, update returns Object not found

Hi,

I am using the HS SDK (Node.js) to create and update contacts. In the recent few weeks, I encountered an interesting error that occurs sometimes (let’s say a few hundred times per thousand).
The contacts were created in HS sometimes a few minutes before, but in many cases, the contact exists on the HS side for months.

The code makes a call for the user, via the `

crm.contacts.searchApi.doSearch

` request, searching for a contact by email. The response is clear, the contact does indeed exist:

CollectionResponseWithTotalSimplePublicObjectForwardPaging {
total: 1,
results: [
SimplePublicObject {
createdAt: 2025-09-12T11:03:52.204Z,
archived: false,
id: ‘XXXXXXXXX’,
properties: [Object],
updatedAt: 2025-10-01T02:23:36.480Z
}
]
}

And logged into HS and searched in the contacts as well to show the contact. Everything is present, fine as-is.

After the search request is done, within 1 second, the implementation does another request to update the contact (by email address)

‘crm.contacts.basicApi.update’,

But for this, it got an error response

{“total”:1,”results”:[{“createdAt”:”2025-09-12T11:03:52.204Z”,”archived”:false,”id”:”[REDACTED]817″,”properties”:{“createdate”:”2025-09-12T11:03:52.204Z”,”email”:”john.doe@gmail.com”,”firstname”:”John”,”hs_object_id”:”[REDACTED]817″,”lastmodifieddate”:”2025-09-23T17:45:43.067Z”,”lastname”:”Doe”},”updatedAt”:”2025-09-23T17:45:43.067Z”}]}”,{“code”:404,”body”:{“status”:”error”,”message”:”Object not found. objectId are usually numeric.”,”correlationId”:”[REDACTED]”,”context”:{“id”:[“john.doe%40gmail.com?idProperty=email”]},”category”:”OBJECT_NOT_FOUND”},”headers”:{“access-control-allow-credentials”:”false”,”cf-cache-status”:”DYNAMIC”,”cf-ray”:”[REDACTED]”,”connection”:”keep-alive”,”content-encoding”:”gzip”,”content-type”:”application/json;charset=utf-8″,”date”:”Tue, 23 Sep 2025 18:06:50 GMT”,”nel”:”{“success_fraction”:0.01,”report_to”:”cf-nel”,”max_age”:604800}”,”report-to”:”{“endpoints”:[{“url”:”https://a.nel.cloudflare.com/report/v4?s=[REDACTED]”}],”group”:”cf-nel”,”max_age”:604800}”,”server”:”cloudflare”,”set-cookie”:”__cf_bm=[REDACTED]; path=/; expires=Tue, 23-Sep-25 18:36:50 GMT; domain=.hubapi.com; HttpOnly; Secure; SameSite=None”,”strict-transport-security”:”max-age=31536000; includeSubDomains; preload”,”transfer-encoding”:”chunked”,”vary”:”origin, Accept-Encoding”,”x-hubspot-correlation-id”:”[REDACTED]”,”x-hubspot-notfound”:”true”,”x-hubspot-ratelimit-interval-milliseconds”:”10000″,”x-hubspot-ratelimit-max”:”110″,”x-hubspot-ratelimit-remaining”:”105″,”x-hubspot-ratelimit-secondly”:”11″,”x-hubspot-ratelimit-secondly-remaining”:”10″}}

The SDK version is `

@hubspot/api-client”: “^11.0.0”

The code was used in the previous 6 months with literal millions of contacts, and this error did not occur.

The first time it was seen on the 22nd of August, 2025, then a few times in the first week of September, and since ~25th of September, the percentage has gone up from less than 1% to 5%.

Comparing different contacts, there is no difference in the data set nor in timing, how much time spans between a creation, search, and update.

Also, all the failure has the same message, the same structure, and no differences present.

Has anyone else countered this issue?

Leave a Reply

Your email address will not be published.

Related Post

2FA Issues2FA Issues

How can I get technical support with 2FA issues when the bot keeping telling me to log into the platform and open a ticket.  The bot then gives a email