APIs & Integrations

GMaltsev
Participant

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

SOLVE

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?
0 Upvotes
1 Accepted solution
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

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

SOLVE

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

 

himanshurauthan_0-1663057943847.png

 

Digital Marketing & Inbound Expert In Growth Hacking Technology

View solution in original post

5 Replies 5
GMaltsev
Participant

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

SOLVE

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

HS-associations-request-error2.png

0 Upvotes
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

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

SOLVE

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

 

himanshurauthan_0-1663057943847.png

 

Digital Marketing & Inbound Expert In Growth Hacking Technology
GMaltsev
Participant

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

SOLVE

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.HS associations API 4.png

0 Upvotes
GMaltsev
Participant

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

SOLVE

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.

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

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

SOLVE

Hi, @GMaltsev 👋 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

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot