Too many requests at once from Hubspot : best practice? (Heroku server crashing)

Hey guys,
Hope everyone is doing great

Describe the issue/error/question

When a Hubspot WF is triggered it pushes data to a Webhook.
I get it in n8n and then I set a value and patch the object on Hubspot using the API.

My WF works with individual calls / small volume.
However my server crashes when I get over a handful of companies to process.

Basically Hubspot is sending too many requests at once.
It seems that using WAIT nodes or subworkflows does not change a thing.

I tried putting a WAIT step in the Hubspot WF however all companies move to that step pretty much at the same time so it’s not of great value.

Am I missing something here?
Thanks for the help

What is the error message (if any)?

Please share the workflow

(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 0.209.4
  • Database you’re using (default: SQLite): Heroku PostGre
  • Running n8n with the execution process [own(default), main]: default
  • Running n8n via [Docker, npm,, desktop app]: Heroku

Hey @Maxime_Mathey,

If Hubspot is sending a lot of requests to your instance and crashing it maybe there needs to be a delay on the Hubspot side.

One thing maybe worth doing is seeing if you can update your Heroku instance to one with more resources.

Hey @Jon,
Thanks for the feedback,

Unfortunately I don’t have a Dev Ops Team and n8n is on my dev team budget.
So I cannot upgrade my dyno considering the next pricing is 20-500$ as per usage (which I don’t know how to control and cannot predict accurately).

n8n cloud also does not offer enough executions.

I’ll try one more thing:

  • Add a Google Sheet step in my Hubspot Workflow
  • Call the data from Gsheet and add a split in batches in n8n
  • Call a subworkflow for each batch and boucle over this

I think it might work.

I’ll write here the solution I found :slight_smile:

Have a great week-end


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.