GET endpoint works in postman, but SideCard Action returns error


#1

I have an endpoint set up on my site, that fetches information from another source then updates their hubspot contact via the hubspot contact API.

I have this endpoint set as a sidecard action. The endpoint works via Postman, but the action doesn't work.

"actions": [
{
"type": "CONFIRMATION_ACTION_HOOK",
"httpMethod": "GET",
"uri": "https://mysite.com/contact/update?email=bh@hubspot.com",
"label": "Enrich from Clearbit",
"associatedObjectProperties": [
"email"
],
"confirmationMessage": "Are you sure you want to update this contact?",
"confirmButtonText": "Yes",
"cancelButtonText": "No"
}
]

the request made when confirming the action:
fetch("https://api.hubspot.com/extensions/sales-objects/v1/actions?portalId=4929475&clienttimeout=14000", {"credentials":"include","headers":{},"referrer":"https://api.hubspot.com/cors-preflight-iframe/","referrerPolicy":"no-referrer-when-downgrade","body":"{"applicationId":180772,"applicationName":"Hubspot - Clearbit Integration ","integrationName":"Hubspot - Clearbit Integration ","associatedObjectProperties":["email"],"httpMethod":"GET","uri":"https://mysite.com/contact/update?email=bh@hubspot.com","associatedObjectId":51,"associatedObjectType":"CONTACT","objectId":51,"objectTypeId":52668}","method":"POST","mode":"cors"});

the response:
{"status":"error","message":"internal error","correlationId":"d2938995-ab7c-4bb6-a73d-fdb91651a5a1","requestId":"4f427e7a38a91ce1b2c52055c6b1598a"}

Is there anyway I can debug this further?
Thanks in advance!


#3

Hi @matthew,

Happy to continue the conversation in the original topic.


#4