Response Deserialization Error

I’m making a CARD to show records from an external database on the DEALS detailed view , but i’m getting “Deserialization error on response” , my Json response is :

{"results":{"objectId":"28308","title":"UPS Proyecto Armstrong C4 ","link":null,"creado":"2020-07-29"}}

with only one record just for test , and i defined the properties on the card definition interface :


Properties of the card

The app id is: 226339 it’s a testing app , Do i missing some required property ?

Hi @dcabrera

I would try changing null to “” (empty quotes).

Did that fix it?

Mike

Same error even with fixed sample value :

{"results":{"objectId":"28308","title":"UPS Proyecto Armstrong C4 ","link":"https:\/\/exampleapp.com","creado":"2020-07-29"}}

Hi @dcabrera

Is your “creado” property a default HubSpot Property? Or your Custom Property?

If it’s a HubSpot Default Property you probably can not set the property from the API.

If it’s your Custom Property, and it is a Date Picker, then I would try sending a Unix Microtime*.

Warning – HubSpot dates are in Micro Seconds not Seconds (like a normal Unix Timestamp).

Have fun

Mike

The problem wasn’t any of the properties defined on the CARD , i’ve just added values for settingsAction and primaryAction to de data at the end of the Json estructure and it’s working now.