Describe the problem/error/question
Endless execution of WA - n8n webhook call against single message and sending 100s of repeated messages
What is the error message (if any)?
No error message, endless execution of webhook calls… getting 100s of messages for single request
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
Welcome to the community
I am not sure I fully understand the issue here, is the webhook node running multiple times or the WhatsApp node? Do you also have a screenshot of an execution where it has ran multiple times as the ones you have posted only show it happening once.
Thank you Jon for your response…
Actually both nodes run infinite… i got 200+ template message as response…
- User sent hai to WhatsApp API Number
- Webhook process the request and response with a WhatsApp template message
- When i sent hai message to the WA, i am getting infinite template message
Note : -
Changed settings “Run Once” both node (still run infinite)
Enable timeout to 1 second (still runs infinite)
That is a bit worrying as the node is not showing that happening looking at your images.
One node would finish before the next starts so it sounds like there is more to this. If you manually run the WhatsApp node does it also send a bunch of messages?
WA manual submission without webhook even causing infinite execution. BUT MESSAGE TEMPLETE IS RECEIVED ONLY ONCE.
Couple of webhook testing caused almost 3000 execution from my n8n account??? Its frustrating.
You have circled the executions on the left… is that the multiple runs you are seeing?
Can you share the version of n8n you are running and how you have it installed? It would also be handy to know how you are calling the webhook as looking at that I would say the webhook has been called multiple times so looks like it could be an issue outside of n8n.
Yes, you are right… webhook call is also making even i remove connection to WA API… now remove the webhook and add On-click node to execute manually… It works fine… but It takes around 1 minute to receive WhatsApp template message…
Could you please help me to rectify my WA webhook issue…
Now i am getting infinite message template and execution… Please help
Hey @Jimshad_vk is your Meta app currently in development or live?
Dear Community Team,
My meta app is on Live mode
Webhook configuration is done & succeed as well (calling webhook endpoint returns hub.challege key, it require only one time for configuration… i tried to remove webhook response node and run, still infinite execution is happening… PLEASE HELP IF ANY CHANGES REQUIRED)
Webhook subscription taken for all activities
Webhook call and response node
WhatsApp template message is sent successfully
Infinite execution is created for single request
WhatsApp template message
PLEASE HELP IF ANY CHANGES REQUIRED IN MY WORKFLOW TO AVOID INFINITE EXECUTION
Try using the SplitinBatch node and set it to 1. Might do the trick
Do you see the reason for infinite execution reason?..
Isnt because not validating the webhook response criteria…
Where do i use Split in Batch node?.. could you please advice
Split in Batches will probably not help as you only have one input item, The issue here is that something is calling your webhook multiple times this is not n8n running endlessly.
What is actually calling your webhook? If it is the Meta callback service that is probably going to be your issue and it would be worth speaking to them to find out why they are sending so many requests.
The endless execution is caused by the message you send from from n8n. Immediatly after the webhook you need to out an IF node and check if the the messages property is an array with only 1 object inside. If yes it is a message coming from the user else it is a system message and you dont have to do anything. Consider that every message you send generates 2 system messages notified to the hook in this causes your infinite loop.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.