CRM Api: value for HTTP request timeout?

baernhardj
Mitwirkender/Mitwirkende

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 Akzeptierte Lösung
KhushbooP11
Lösung
Teilnehmer/-in

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

Lösung in ursprünglichem Beitrag anzeigen

3 Antworten 3
KhushbooP11
Lösung
Teilnehmer/-in

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
Mitwirkender/Mitwirkende

Hi

 

Thanks for your reply.

I'm considering to implement the retry logic.

 

Best regards

0 Upvotes
doperation
Mitglied

@KhushbooP11mcdvoice 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