Error when fetching data for a custom CRM card

I am new to HubSpot app development. I have registered a developer account and created a private app for my organization. Within that app, I created a CRM card, and a custom string property for that card. The card shows up on deals in my organization as expected, but I am struggling to have any information appear on the card.
The error on the card is:

“There was a problem displaying this content. Try refreshing the page. If this problem continues, contact your app developer for support.”

In my developer account, under “Monitoring”, I can see that the data is being requested based on the timestamps of the error messages. The error message is “Response missing attributes”.

This is the data returned by my data fetch url:

{
 "results": [
 {
 "objectID": "12345",
 "title": "My Document Link",
 "link": "https://my_app_site.com/test",
 "mydocumentlink": "https://my_app_site.com/test" }
 ]
}

Two questions:

  1. Is there a way to get more detailed error messages?
  2. What is missing from my data response?

OK, I solved question #2. The problem was that “objectID” should be “ObjectId” (case matters).

So, back to question #1: where can I find more details when I get an error like this? I assume there is a more detailed error log somewhere that would have told me which attribute was missing? Thank you! :slightly_smiling_face: