ERROR: Execution stopped at this node (may have run out of memory)

Hello !

So I a working on a workflow that udpate hubspot transactions and some contacts in brevo when a Stripe subscription is canceled.

I had introduced this workflow in a bigger one that was handling a lot of nodes as it was dealing with all of the subscription cases. It’s at this moment that one of my nodes send me the “Error : Execution stopped at this node”.

As my workflow was a lot, I decided to split the cases and give these nodes their own workflow to simplify. The issue is that I keep getting these errors despite my workflow being so simple ! I tried simplifying the workflow by removing a node and then it’s the following node that gets the error.

Other odd thing, when i tested out on my own on the stripe test environment, everything was good. Anyone to help ?

Please share your workflow

Share the output returned by the last node

ERROR: Execution stopped at this node

n8n may have run out of memory while executing it. More context and tips on how to avoid this in the docs

Information on your n8n setup

  • **n8n version:Cloud
  • Running n8n via n8n cloud
  • **Operating system:Windows

Hi @Romain_Mangattale - sorry you’re running into this!

How much data are you processing when the workflow execution stops? If you’re processing a lot of data to or from Hubspot/Brevo, you may absolutely be running into issues with memory limits, and may need to split this into further subworkflows.

Could you give an example of the data you’re processing? Of course, please don’t post any sensitive information and redact it :see_no_evil:

Hi @EmeraldHerald

Yes of course, here are a few examples I am receiving through my nodes (those are test data). As you see, this workflow only deals with one item at the time and the following data :slight_smile: :

  • Stripe 1 : Subscription cancellation object
[
  {
    "id": "evt_1NVV3XF5CE5e82O7LChbyr43",
    "object": "event",
    "api_version": "2022-11-15",
    "created": 1689752659,
    "data": {
      "object": {
        "id": "sub_1NVV0bF5CE5e82O7P8rlgLev",
        "object": "subscription",
        "application": null,
        "application_fee_percent": null,
        "automatic_tax": {
          "enabled": true
        },
        "billing_cycle_anchor": 1689752477,
        "billing_thresholds": null,
        "cancel_at": null,
        "cancel_at_period_end": false,
        "canceled_at": 1689752659,
        "cancellation_details": {
          "comment": null,
          "feedback": null,
          "reason": "cancellation_requested"
        },
        "collection_method": "charge_automatically",
        "created": 1689752477,
        "currency": "eur",
        "current_period_end": 1692430877,
        "current_period_start": 1689752477,
        "customer": "cus_OI5AoOeNuLqgx5",
        "days_until_due": null,
        "default_payment_method": "pm_1NVV0bF5CE5e82O7k27wCDLL",
        "default_source": null,
        "default_tax_rates": [],
        "description": null,
        "discount": null,
        "ended_at": 1689752659,
        "items": {
          "object": "list",
          "data": [
            {
              "id": "si_OI5AgpPLhovyDj",
              "object": "subscription_item",
              "billing_thresholds": null,
              "created": 1689752478,
              "metadata": {},
              "plan": {
                "id": "price_1Mk3ghF5CE5e82O7eF2AlhSC",
                "object": "plan",
                "active": true,
                "aggregate_usage": null,
                "amount": 2900,
                "amount_decimal": "2900",
                "billing_scheme": "per_unit",
                "created": 1678446039,
                "currency": "eur",
                "interval": "month",
                "interval_count": 1,
                "livemode": false,
                "metadata": {},
                "nickname": null,
                "product": "prod_NV3oxkQ7PVT6e9",
                "tiers_mode": null,
                "transform_usage": null,
                "trial_period_days": null,
                "usage_type": "licensed"
              },
              "price": {
                "id": "price_1Mk3ghF5CE5e82O7eF2AlhSC",
                "object": "price",
                "active": true,
                "billing_scheme": "per_unit",
                "created": 1678446039,
                "currency": "eur",
                "custom_unit_amount": null,
                "livemode": false,
                "lookup_key": null,
                "metadata": {},
                "nickname": null,
                "product": "prod_NV3oxkQ7PVT6e9",
                "recurring": {
                  "aggregate_usage": null,
                  "interval": "month",
                  "interval_count": 1,
                  "trial_period_days": null,
                  "usage_type": "licensed"
                },
                "tax_behavior": "exclusive",
                "tiers_mode": null,
                "transform_quantity": null,
                "type": "recurring",
                "unit_amount": 2900,
                "unit_amount_decimal": "2900"
              },
              "quantity": 1,
              "subscription": "sub_1NVV0bF5CE5e82O7P8rlgLev",
              "tax_rates": []
            }
          ],
          "has_more": false,
          "total_count": 1,
          "url": "/v1/subscription_items?subscription=sub_1NVV0bF5CE5e82O7P8rlgLev"
        },
        "latest_invoice": "in_1NVV0bF5CE5e82O7ykTAgvpq",
        "livemode": false,
        "metadata": {},
        "next_pending_invoice_item_invoice": null,
        "on_behalf_of": null,
        "pause_collection": null,
        "payment_settings": {
          "payment_method_options": null,
          "payment_method_types": null,
          "save_default_payment_method": "off"
        },
        "pending_invoice_item_interval": null,
        "pending_setup_intent": null,
        "pending_update": null,
        "plan": {
          "id": "price_1Mk3ghF5CE5e82O7eF2AlhSC",
          "object": "plan",
          "active": true,
          "aggregate_usage": null,
          "amount": 2900,
          "amount_decimal": "2900",
          "billing_scheme": "per_unit",
          "created": 1678446039,
          "currency": "eur",
          "interval": "month",
          "interval_count": 1,
          "livemode": false,
          "metadata": {},
          "nickname": null,
          "product": "prod_NV3oxkQ7PVT6e9",
          "tiers_mode": null,
          "transform_usage": null,
          "trial_period_days": null,
          "usage_type": "licensed"
        },
        "quantity": 1,
        "schedule": null,
        "start_date": 1689752477,
        "status": "canceled",
        "test_clock": null,
        "transfer_data": null,
        "trial_end": null,
        "trial_settings": {
          "end_behavior": {
            "missing_payment_method": "create_invoice"
          }
        },
        "trial_start": null
      }
    },
    "livemode": false,
    "pending_webhooks": 1,
    "request": {
      "id": "req_i3kgthw9hl1xlU",
      "idempotency_key": null
    },
    "type": "customer.subscription.deleted"
  }
]
  • Stripe 2 : Customer object
[
  {
    "id": "cus_OI5AoOeNuLqgx5",
    "object": "customer",
    "address": {
      "city": "REDACTED",
      "country": "FR",
      "line1": "REDACTED",
      "line2": null,
      "postal_code": "33320",
      "state": null
    },
    "balance": 0,
    "created": 1689752477,
    "currency": "eur",
    "default_source": null,
    "delinquent": false,
    "description": null,
    "discount": null,
    "email": "rREDACTED",
    "invoice_prefix": "5EB57817",
    "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
    },
    "livemode": false,
    "metadata": {},
    "name": "REDACTEDt",
    "phone": "REDACTED",
    "preferred_locales": [
      "fr-FR"
    ],
    "shipping": null,
    "tax_exempt": "none",
    "test_clock": null
  }
]
  • Hubspot 1 : Customer
[
  {
    "id": "79099451",
    "properties": {
      "createdate": "2023-05-15T08:19:57.157Z",
      "email": "REDACTED",
      "firstname": "REDACTED",
      "hs_object_id": "79099451",
      "lastmodifieddate": "2023-07-19T07:41:23.477Z",
      "lastname": "REDACTED"
    },
    "createdAt": "2023-05-15T08:19:57.157Z",
    "updatedAt": "2023-07-19T07:41:23.477Z",
    "archived": false
  }
]```

- **Hubspot 2** : Transaction

[
{
“id”: “14223322266”,
“properties”: {
“amount”: null,
“closedate”: null,
“createdate”: “2023-07-19T07:41:22.419Z”,
“dealname”: “REDACTED”,
“dealstage”: “66066309”,
“hs_lastmodifieddate”: “2023-07-19T07:41:43.767Z”,
“hs_object_id”: “14223322266”,
“pipeline”: “28789604”
},
“createdAt”: “2023-07-19T07:41:22.419Z”,
“updatedAt”: “2023-07-19T07:41:43.767Z”,
“archived”: false
}
]


On Brevo side, i am just updating some data so I dont process anything else. Also, when I tested this workflow with Test Stripe, it was definitely working !

Thanks for your help !
1 Like

Hi @Romain_Mangattale - it’s hard to say what would be causing you to have memory errors, I’m afraid. You can take a peek at Memory-related errors | n8n Docs in order to optimise your workflows.

As you’re on Cloud, if you aren’t already on the Pro plan, you could also consider upgrading in order to have more memory to your workflows :bowing_man:

1 Like