APIs & Integrations

JZhao
Participant

How do I know what wrong with my card fetch data API?

I installed an app and it has a card. When I open the card it sends a fetch request to my backend to get the content of the card. It worked last week but I see this error this week when I open the card:

 

There was a problem reaching Demo Company Card. Please refresh the page to try again or contact the app developer for support.
 
I am able to see mt backend service is called and it returns this json:
 
{"results":[{"objectId":1,"title":"Transaction History","key1":"value1","key2":"value2","key3":"value3","actions":[{"type":"IFRAME","width":890,"height":748,"uri":"https://d2ia90nkm06xne.cloudfront.net","label":"Query transaction history"}]},{"objectId":2,"title":"Deposit History","actions":[{"type":"IFRAME","width":890,"height":748,"uri":"","label":"Query desposit history"}]}]}
 
I wonder what I should look at for this error.
8 Replies 8
RMones
Contributor | Platinum Partner
Contributor | Platinum Partner

How do I know what wrong with my card fetch data API?

Hi @JZhao ,

 

You have an empty 'uri' in the actions array of the Deposit History. That's causing the error.

 

{
  "results": [
    {
      "objectId": 1,
      "title": "Transaction History",
      "key1": "value1",
      "key2": "value2",
      "key3": "value3",
      "actions": [
        {
          "type": "IFRAME",
          "width": 890,
          "height": 748,
          "uri": "https://d2ia90nkm06xne.cloudfront.net",
          "label": "Query transaction history"
        }
      ]
    },
    {
      "objectId": 2,
      "title": "Deposit History",
      "actions": [
        {
          "type": "IFRAME",
          "width": 890,
          "height": 748,
          "uri": "",
          "label": "Query desposit history"
        }
      ]
    }
  ]
}

 

 

JZhao
Participant

How do I know what wrong with my card fetch data API?

Thanks for checking it. But how do I know if empty uri causing an issue? Is there any log I can search for in case there are any other errors in the json data?

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

How do I know what wrong with my card fetch data API?

There is a monitoring tab that was pointed out in this post

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

How do I know what wrong with my card fetch data API?

Maybe @SamKreeke has some thoughts for you

0 Upvotes
JZhao
Participant

How do I know what wrong with my card fetch data API?

@dennisedson  @MatthewShepherd

Is there any update on this issue I can get help? Thanks.

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

How do I know what wrong with my card fetch data API?

@MatthewShepherd , do have any thoughts on what is going on here?

0 Upvotes
JZhao
Participant

How do I know what wrong with my card fetch data API?

Is there any log I can see what's the error?

0 Upvotes
JZhao
Participant

How do I know what wrong with my card fetch data API?

Can I get help from anyone? Thanks.

0 Upvotes