APIs & Integrations

SamKreeke
Participant

My CRM card extension action responds with internal error and error code 500

SOLVE

Hi there,

 

I've got a CRM card extension on my Contacts without any results or data inside of it. However, there is a primaryAction button which sends a POST request to my own Betty Blocks application which keeps returning a response with an error code of 500.

Screenshot 2021-01-07 at 2.28.25 PM.png

Screenshot 2021-01-07 at 1.19.29 PM.png

Screenshot 2021-01-07 at 1.02.11 PM.pngScreenshot 2021-01-07 at 1.02.24 PM.png

 

 

I have tested a couple of scenario's and it seems that the reason why I'm getting a response with the error code 500 is because I send another request (which is successful) within my Betty Blocks application which the HubSpot request has to wait for to complete. The time it takes for this request to complete is only about 5 seconds. And even though I return a JSON template with a "message" and response code of 200, I receive a response code of 500.

Screenshot 2021-01-07 at 1.17.54 PM.png

Screenshot 2021-01-07 at 1.17.42 PM.png

 

Does anyone have an idea on how to solve this?

1 Accepted solution
tjoyce
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

My CRM card extension action responds with internal error and error code 500

SOLVE

@SamKreeke - You mention the request is taking around 5 seconds... The HS API appears to have a timeout of 5 seconds. https://community.hubspot.com/t5/APIs-Integrations/CRM-Extension-Timeout/td-p/237711

 

Could this possibly be related to the errors you're experiencing?

View solution in original post

6 Replies 6
tjoyce
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

My CRM card extension action responds with internal error and error code 500

SOLVE

@SamKreeke - Are you able to change the Timeout Seconds in BB? 

https://docs.bettyblocks.com/en/articles/998108-action-event-reference

0 Upvotes
SamKreeke
Participant

My CRM card extension action responds with internal error and error code 500

SOLVE

Yes, my timeout in BB for that request is set to 20 seconds. @tjoyce 

0 Upvotes
tjoyce
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

My CRM card extension action responds with internal error and error code 500

SOLVE

@SamKreeke - You mention the request is taking around 5 seconds... The HS API appears to have a timeout of 5 seconds. https://community.hubspot.com/t5/APIs-Integrations/CRM-Extension-Timeout/td-p/237711

 

Could this possibly be related to the errors you're experiencing?

SamKreeke
Participant

My CRM card extension action responds with internal error and error code 500

SOLVE

This could just be my problem yes. Little weird that I get an internal error instead of HubSpot telling me that the request has timed out. But thanks for helping out! @tjoyce 

SamKreeke
Participant

My CRM card extension action responds with internal error and error code 500

SOLVE

A configurable timeout setting/option would be nice though. The feature that I'm working on right now is completely broken because of such a problem...

0 Upvotes
natsumimori
Community Manager
Community Manager

My CRM card extension action responds with internal error and error code 500

SOLVE

Hi @SamKreeke ,

 

Thank you for reaching out to the HubSpot Community.

I wanted to tag in some Community contributors here: @HenryCipolla and @tjoyce , would you mind sharing your advice for @SamKreeke ?

0 Upvotes