APIs & Integrations

matthew2
Member

GET endpoint works in postman, but SideCard Action returns error

SOLVE

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,"associatedObjectTyp..."});

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!

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

GET endpoint works in postman, but SideCard Action returns error

SOLVE

Hi @matthew,

Happy to continue the conversation in the original topic.

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
1 Reply 1
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

GET endpoint works in postman, but SideCard Action returns error

SOLVE

Hi @matthew,

Happy to continue the conversation in the original topic.

Isaac Takushi

Associate Certification Manager
0 Upvotes