# CRM Extensions API - Response deserialization error

**URL:** <https://community.hubspot.com/t/crm-extensions-api-response-deserialization-error/20260>\
**Category:** APIs & Integrations\
**Tags:** contacts, timeline-and-extensions-apis\
**Created:** [April 21, 2020, 2:32pm UTC](https://community.hubspot.com/t/crm-extensions-api-response-deserialization-error/20260 "2020-04-21T14:32:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfwmtech](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mfwmtech/32/30191_2.png) [@mfwmtech](https://community.hubspot.com/u/mfwmtech)\
**Post date:** [April 21, 2020, 2:32pm UTC](https://community.hubspot.com/t/crm-extensions-api-response-deserialization-error/20260/1 "2020-04-21T14:32:16Z")

</div>

Hello! We had a CRM Card that worked until last Friday. The extension still works when pointed to a lower environment we have. On our production environment we get a “Response deserialization error”. The json payloads between environments and they are identical. We believe this might be issue with how our production environment is configured. Could we get more information as to what is causing the deserailization error? Below is a copy of the json payload we return. Thanks for your help!

```auto
{
 "results": [
 {
 "objectId": 7070707,
 "title": "Service",
 "properties": [
 {
 "label": "Price",
 "value": 98.00,
 "dataType": "CURRENCY",
 "currencyCode": "USD"
 },
 {
 "label": "Auto Renewal",
 "value": "True",
 "dataType": "STRING"
 },
 {
 "label": "Refund Status",
 "value": "Past MBG",
 "dataType": "STRING"
 },
 {
 "label": "Start Date",
 "value": "2019-02-18",
 "dataType": "DATE"
 },
 {
 "label": "End Date",
 "value": "2021-02-18",
 "dataType": "DATE"
 }
 ]
 }
 ],
 "totalCount": 1
}

```

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [April 22, 2020, 7:20am UTC](https://community.hubspot.com/t/crm-extensions-api-response-deserialization-error/20260/2 "2020-04-22T07:20:24Z")

</div>

Hey @mfwmtech,

I was able to see that the following:

```auto
{
"results" : [
{
"objectId" : 1,
"title" : "TEST TITLE",
"properties" : [
{
"label" : "Price",
"value" : 98,
"dataType" : "CURRENCY",
"currencyCode" : "USD"
},
{
"label" : "Auto Renewal",
"value" : "True",
"dataType" : "STRING"
},
{
"label" : "Refund Status",
"value" : "Past MBG",
"dataType" : "STRING"
},
{
"label" : "Start Date",
"value" : "2019-02-18",
"dataType" : "DATE"
},
{
"label" : "End Date",
"value" : "2021-02-18",
"dataType" : "DATE"
}
]
}
],
"totalCount" : 1
}

```

works fine for me. In order for me to further troubleshoot this, do you mind sharing the following with me:

1. The app ID

2. The portal ID that has the app installed

---

<div class="post-metadata">

**Author:** ![mfwmtech](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mfwmtech/32/30191_2.png) [@mfwmtech](https://community.hubspot.com/u/mfwmtech)\
**Post date:** [April 22, 2020, 1:34pm UTC](https://community.hubspot.com/t/crm-extensions-api-response-deserialization-error/20260/3 "2020-04-22T13:34:14Z")

</div>

Hi Wendy!

Thanks for your quick response. Below is the information you requested. Thanks!

1. The app ID : **216037**

2. The portal ID that has the app installed **6069836**

Also our developer portal id is: **7050004**

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [April 23, 2020, 1:26am UTC](https://community.hubspot.com/t/crm-extensions-api-response-deserialization-error/20260/4 "2020-04-23T01:26:32Z")

</div>

Hey @mfwmtech,

When I took a look at the data fetch url for the member services card, I noticed that when I attempt to access the url, it redirects me to the root domain of the page.

I believe this is likely the caused of the deserialization error. HubSpot will send a data fetch request and the request should return the card properties associated with the current CRM object.

Could you ensure that there’s no redirect set up on the data fetch url and see if it works?

---

<div class="post-metadata">

**Author:** ![mfwmtech](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mfwmtech/32/30191_2.png) [@mfwmtech](https://community.hubspot.com/u/mfwmtech)\
**Post date:** [April 23, 2020, 3:42pm UTC](https://community.hubspot.com/t/crm-extensions-api-response-deserialization-error/20260/5 "2020-04-23T15:42:03Z")

</div>

Hi @WendyGoh

Good catch! Our API endpoints are behind a private firewall, which is not contained in applicaiton code but our infrastructure. Is there a way we could get a Hubspot’s IP Address to allowlist?

Thanks!

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [April 24, 2020, 3:02am UTC](https://community.hubspot.com/t/crm-extensions-api-response-deserialization-error/20260/6 "2020-04-24T03:02:15Z")

</div>

Hey @mfwmtech,

Currently, while there isn’t a way to allowlist the data fetch url, you can however allowlist your action URLs under the ‘_Custom actions_’ tab:

 ![customActions.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/0/e030d0117de3dc44233b8cc218504789b7d09a16.png)

---

<div class="post-metadata">

**Author:** ![mfwmtech](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mfwmtech/32/30191_2.png) [@mfwmtech](https://community.hubspot.com/u/mfwmtech)\
**Post date:** [April 27, 2020, 3:24pm UTC](https://community.hubspot.com/t/crm-extensions-api-response-deserialization-error/20260/7 "2020-04-27T15:24:54Z")

</div>

No problem! We were able to use the `X-Hubspot-Signature` instead! Thanks for your help!
