APIs & Integrations

jxlio
Contributeur

Response deserialization error on CRM Extension

Been fiddling with this for hours with no luck.

I’m running the php code from my test server. The resulting JSON looks like it’s supposed to work, but I’m not sure what I’m doing wrong.

(Full Disclosure, I’m not a trained developer, just a marketing director with some coding experience and hacking work ethic.)

0 Votes
6 Réponses
gotmike
Contributeur de premier rang

Response deserialization error on CRM Extension

good to hear.

the crm extensions api is still pretty fresh off the press. so there are some quirks to it.

however, my experience with the folks at hubspot is that they are always improving the product, thus problems like this tend to go away in time.

0 Votes
gotmike
Contributeur de premier rang

Response deserialization error on CRM Extension

@Jeremy_Ledford – I have run into this issue and it had to do with the NULL values. If you have an Object Type defined, I believe it requires you to provide either a valid value, no value at all (ie - don’t pass “trackingNumber”: null, just omit “trackingNumber” entirely) or pass an empty string (if the field expects a string).

I could be wrong on this, but that’s what I seem to remember happening.

What language are you using?

0 Votes
jxlio
Contributeur

Response deserialization error on CRM Extension

That did the trick. Thanks Cre!

0 Votes
jxlio
Contributeur

Response deserialization error on CRM Extension

I will give that a shot and see if it works, thanks!

0 Votes
jxlio
Contributeur

Response deserialization error on CRM Extension

0 Votes
Dadams
HubSpot Employee
HubSpot Employee

Response deserialization error on CRM Extension

Hi @Jeremy_Ledford

Do you have an example of the JSON you’re returning?

0 Votes