N8n executions on loop causing error

All of a sudden single execution is running multiple times.

Making Multiple Entries in MySQL Database, Multiple push in Gotify.

n8n version: 0.93.0

Gotify:

My Workflow:

Did you check in WooCommerce if there are for some reason multiple Webhook-Triggers? Because that is the only thing I can think of right now.

Possibly a bug in WooCommerce.

I have created an issue, Let’s see how it goes.

Will update this post too.

Great thanks. But did you check if multiple webhook URLs are set in WooCommerce?
Because if there is only one webhook URL registered but it gets called multiple times it would be a WooCommerce bug. If there are multiple webhook URLs registered it would be an n8n bug.

@jan I’m confused man.

I’m using WooCommerce Trigger Node which uses Consumer Key, Consumer Secret, and URL.

  • But I never created a webhook inside WooCommerce Store.

  • So n8n will create a webhook inside WooCommerce with the credentials provided?

  • Why I’m asking this because. I noticed the word β€˜n8n’ inside the webhook tab of WooCommerce. (I removed everything, Yes. Multiple webhook)

Yes exactly. That is how almost all the third-party Trigger-Nodes work. n8n takes automatically care of creating and deleting webhooks in the application if a workflow gets activated or deactivated.

Ah ok, so there were multiple ones. If you now deleted all of them and deactivate and reactivate your workflow it should create a new one. But only one. And then it should again just trigger just once.

What is the possible cause of multiple webhook being created and not getting deleted?

And what are the minimum server requirements you prefer for n8n?
Asking this because, This will affect and create any problem like this?

Update:

n8n is actually creating multiple webhook (duplicate)

1 Like

Honestly not 100% sure. That should theoretically not happen.

Server specs should not matter here.

There is actually just one duplicate, not two. Only the last two ones have the same webhook-URL. So I guess the first one is for another workflow. n8n creates a webhook for each Trigger-Node you create in n8n.

We have to investigate why this is happening.

1 Like

@jan Issue Solved

Here is my mistake.

  • I set the Workflow to active state which created a new webhook
  • Then I executed the workflow which created one more webhook

This is the main cause of the issue. It’s not related to WooCommerce nor n8n.

Thanks for your time. Everything works great.

1 Like

Thanks a lot for this additional information! Is really helpful.

But would still be an n8n bug as it should no matter what accumulate multiple webhooks. I already created an internal ticket and we will look into it.

1 Like

@mcnaveen do you have a Woocommerce sandbox that I can use for testing? Fixed the issue but have not been able to test it.

1 Like

Sorry for the delay bro. Will send you in Private Message.

Update: Sent bro. @RicardoE105 Please check inbox

We just released [email protected] which should fix the bug.

1 Like

OMG, It was a surprise. Have this Watermelon :watermelon: