• Créditos da HubSpot: Desbloqueie ferramentas poderosas para o crescimento

    Dúvidas?

CRM Api: value for HTTP request timeout?

baernhardj
Colaborador(a)

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 Avaliação positiva
1 Solução aceita
KhushbooP11
Solução
Participante

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

Exibir solução no post original

3 Respostas 3
KhushbooP11
Solução
Participante

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
Colaborador(a)

Hi

 

Thanks for your reply.

I'm considering to implement the retry logic.

 

Best regards

0 Avaliação positiva
doperation
Membro

@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 Avaliação positiva