Tips, Tricks & Best Practices

baernhardj
Contributor

CRM Api: value for HTTP request timeout?

SOLVE

Hi

 

I have custom code (C#) which is getting data from HubSpot CRM via the CRM API and a private app.

Sometimes the API returns the response faster, sometimes it takes more time.

What is the best value for the request timeout?

In C# is the default value 100 sec.

 

The question popped up due to technical problems in the HubSpot system this week (25.09.).

 

Thanks

0 Upvotes
1 Accepted solution
KhushbooRevOps
Solution
Participant

CRM Api: value for HTTP request timeout?

SOLVE

Hi @baernhardj,

I’d recommend setting your timeout to something like 60–90 seconds. The default 100 sec is usually fine, but if you’re seeing timeouts due to recent issues, lowering it a bit might help.

You can also implement retry logic, such as retrying failed requests 2–3 times with exponential backoff.

That way, if HubSpot is slow or having temporary issues, your code can handle it without needing long timeouts.

I hope it helps, let me know if you need to talk!

Khushboo Pokhriyal

Growth & Operations

GroRapid Labs

LinkedIn | 9315044754 | Email | Website

View solution in original post

3 Replies 3
KhushbooRevOps
Solution
Participant

CRM Api: value for HTTP request timeout?

SOLVE

Hi @baernhardj,

I’d recommend setting your timeout to something like 60–90 seconds. The default 100 sec is usually fine, but if you’re seeing timeouts due to recent issues, lowering it a bit might help.

You can also implement retry logic, such as retrying failed requests 2–3 times with exponential backoff.

That way, if HubSpot is slow or having temporary issues, your code can handle it without needing long timeouts.

I hope it helps, let me know if you need to talk!

Khushboo Pokhriyal

Growth & Operations

GroRapid Labs

LinkedIn | 9315044754 | Email | Website

baernhardj
Contributor

CRM Api: value for HTTP request timeout?

SOLVE

Hi

 

Thanks for your reply.

I'm considering to implement the retry logic.

 

Best regards

0 Upvotes
doperation
Member

CRM Api: value for HTTP request timeout?

SOLVE

@KhushbooRevOpsmcdvoice wrote:

Hi @baernhardj,

I’d recommend setting your timeout to something like 60–90 seconds. The default 100 sec is usually fine, but if you’re seeing timeouts due to recent issues, lowering it a bit might help.

You can also implement retry logic, such as retrying failed requests 2–3 times with exponential backoff.

That way, if HubSpot is slow or having temporary issues, your code can handle it without needing long timeouts.

I hope it helps, let me know if you need to talk!

Khushboo Pokhriyal

Growth & Operations

GroRapid Labs

LinkedIn | 9315044754 | Email | Website


Thank you for the insightful recommendation on the timeout settings! I appreciate your suggestion to implement retry logic with exponential backoff as well. This will definitely help manage the variability in response times from the HubSpot API.

 

0 Upvotes