Error: Cannot construct instance of `com.hubspot.inbounddb.associations.base.PublicFetchAssociations

Hello!

From today, I’ve started to get the following error:

{

“status”: “error”,

“message”: "Invalid input JSON on line 1, column 46: Cannot construct instance of `com.hubspot.inbounddb.associations.base.PublicFetchAssociationsBatchRequest$Json` (although at least one Creator exists):

no

String-argument constructor/factory method to deserialize from String value (‘8864691022’)",

“correlationId”: “97ea35ed-75aa-4b78-b408-c4ae45cf2785”

}

My request:

POST /crm/v4/associations/company/contact/batch/read

Authorization: Bearer […]

Content-Type: application/json

{“properties”:[],“idProperty”:null,“inputs”:[“8864691022”,“9397112642”,“9397112643”],

“archived”:null,“limit”:100,“after”:0

}

The requests like this have worked properly before.

Please tell me, what’s happened?

Hi, @GMaltsev :waving_hand: Thanks for reaching out. Hey, @himanshurauthan @Kevin-C @Bryantworks have you dealt with this issue? Or do you have any troubleshooting tips @GMaltsev might consider?

Thank you very much! — Jaycee

Hello again!
Please fix this bug, because it prevents to use entire our (DEAR/Cin7) integration with HubSpot. This error remains unfixed for 4 days already. Documentation of Associations API v4 also doesn’t contain any useful information about batched reading of associations (but this information was present there in the spring). Instead of this, it now describes batch reading and creating of some abstract “objects”.
Please rollback your changes from Aug 17, or fix the bug mentioned in the initial post asap.
We have hundreds of customers who use our HubSpot integration, and all of them can’t sync anything since last Wednesday.

Thanks.

Hello @himanshurauthan , @Kevin-C , @Bryantworks !
The issue has not been resolved yet. Is there any hope that it will ever be fixed?

Apollogies for the delay @GMaltsev. So the input array must have a key named id to work properly like this:

Thank you, Himanshu, this is a working solution.
The next time the HS dev team initiates any changes to the API, please reflect these changes in the relevant documentation. At the moment, it still contains useless template text instead of real requests like yours.